Grid uses the Blizzard secure group header system, which doesnt support units like target and focus that arent part of your group. Grid can show you when youre targeting someone in your group, and you could put your regular target and focus frames right next to Grid on the screen, but theres no way for Grid to show extra frames for those units. Some unit frame addons will even let you make a second target frame and customize it to look similar to your Grid setup so it blends in. Good luck!
You might try posting in the dedicated oUF forum over on WoWInterface. The creator of oUF doesnt check this thread anymore, and most people who are writing layouts and plugins for oUF are mainly posting in the new forum.
Anyway, since oUF doesnt include an element to track diminishing returns, creating one wouldnt really be specific to oUF. Youd basically just write a DR tracking addon, and then attach the frames or bars or icons to your oUF frames.
That way the messages will all go in the t[y] table and stay in the order they were received, so you can iterate over them and print them out in order like this:
for i, v in ipairs( whispers["Sender"] ) do
print( format( "Message #%d: %s", i, v ) )
end
Or you can see all the people who sent you whispers:
for k, v in pairs( whispers ) do
print( format( "%s has sent you %d whispers.", k, #v ) )
end
You could do something like CleanIcons and batch-process all the WoW icon graphics in Photoshop to be round.
It wouldnt be very practical though, since youd have to get everyone using your skin to download ~20 MB of icon files and put them in the right place (the Curse Client cant install things that dont go in the AddOns folder).
From the error message you posted, it looks like theres a problem with the localization in the latest version of the OneCore-1.0 library in OneBank3. Try going back to the last version, or wait for the author to update.
For tooltips, youd have to make each label a frame with a font string, instead of just a font string, and then set OnEnter and OnLeave scripts to show and hide the tooltip.
local function RemoveMadeByLines( tooltip )
local tooltipName = tooltip:GetName()
for i = 2, tooltip:NumLines() do
local line = _G[ tooltipName .. "TextLeft" .. i ]
local text = line:GetText()
if text and text:match( "^<Made by %S+>$" ) then
line:SetText( "" )
tooltip:Show()
break
end
end
end
for _, tooltip in pairs( {
"GameTooltip",
"ItemRefTooltip",
"ShoppingTooltip1",
"ShoppingTooltip2",
} ) do
if _G[ tooltip ] then
_G[ tooltip ]:HookScript( "OnTooltipSetItem", RemoveMadeByLines )
end
end
The function looks at the text on each line in the tooltip, starting at line 2. If it finds a line that matches the Made by pattern, it sets that lines text to nothing, calls the tooltips Show method to refresh the tooltip, and then stops looking.
The for loop goes through a list of common tooltips, checks if they exist, and hooks their OnTooltipSetItem script with the function. Then, every time a tooltip is told to show an item, it runs your function. Using HookScript instead of SetScript makes sure that you dont overwrite functions from other addons that want to do the same thing.
f.enter:SetScript( "OnEnterPressed", function( self )
local text = self:GetText()
-- Do something with the text here.
self:ClearFocus()
end )
f.enter:SetScript( "OnEscapePressed", function( self )
-- Do any cancel stuff here.
self:ClearFocus()
end )
Try getting rid of your ShowColorPicker and myColorCallback functions, and adding this at the end of your code:
colorButton.SetColor = function( self, newR, newG, newB )
[B][COLOR="DarkRed"]self.swatch[/COLOR][/B]:SetVertexColor( newR, newG, newB )
-- Update things in realtime here.
PlayerFrame.name:SetTextColor( newR, newG, newB )
if not ColorPickerFrame:IsShown() then
-- Color picker has been closed.
-- Update our internal storage.
r, g, b = newR, newG, newB
end
end
colorButton.cancelFunc = function()
colorButton:SetColor( colorButton.r, colorButton.b, colorButton.g )
end
colorButton.swatchFunc = function()
colorButton:SetColor( ColorPickerFrame:GetColor() )
end
colorButton:SetScript( "OnClick", function( self )
if ColorPickerFrame:IsShown() then
ColorPickerFrame:Hide()
else
self.r, self.g, self.b = r, g, b
UIDropDownMenuButton_OpenColorPicker( self )
ColorPickerFrame:SetFrameStrata( "TOOLTIP" )
ColorPickerFrame:Raise()
end
end )
The bold red part you might need to change. I dont use Blizzards OptionsCheckButtonTemplate template, so I dont know if self.swatch is a valid reference to the colored part of it.
0
0
Grid uses the Blizzard secure group header system, which doesnt support units like target and focus that arent part of your group. Grid can show you when youre targeting someone in your group, and you could put your regular target and focus frames right next to Grid on the screen, but theres no way for Grid to show extra frames for those units. Some unit frame addons will even let you make a second target frame and customize it to look similar to your Grid setup so it blends in. Good luck!
0
You might try posting in the dedicated oUF forum over on WoWInterface. The creator of oUF doesnt check this thread anymore, and most people who are writing layouts and plugins for oUF are mainly posting in the new forum.
Anyway, since oUF doesnt include an element to track diminishing returns, creating one wouldnt really be specific to oUF. Youd basically just write a DR tracking addon, and then attach the frames or bars or icons to your oUF frames.
0
Then each time you get a whisper from a person who hadnt whispered you before:
And each time you get a whisper from someone, add it to the table you made for them:
That way the messages will all go in the t[y] table and stay in the order they were received, so you can iterate over them and print them out in order like this:
Or you can see all the people who sent you whispers:
0
It wouldnt be very practical though, since youd have to get everyone using your skin to download ~20 MB of icon files and put them in the right place (the Curse Client cant install things that dont go in the AddOns folder).
0
From the error message you posted, it looks like theres a problem with the localization in the latest version of the OneCore-1.0 library in OneBank3. Try going back to the last version, or wait for the author to update.
0
Have you posted on the download page for sThreatMeter? Its not hosted on Curse or WowAce, so the author probably doesnt check these forums.
0
0
0
The function looks at the text on each line in the tooltip, starting at line 2. If it finds a line that matches the Made by pattern, it sets that lines text to nothing, calls the tooltips Show method to refresh the tooltip, and then stops looking.
The for loop goes through a list of common tooltips, checks if they exist, and hooks their OnTooltipSetItem script with the function. Then, every time a tooltip is told to show an item, it runs your function. Using HookScript instead of SetScript makes sure that you dont overwrite functions from other addons that want to do the same thing.
0
Heres a simple example:
0
I do this in my addon Item Tooltip Cleaner. The code is pretty simple, if you want to take a look.
0
0
The bold red part you might need to change. I dont use Blizzards OptionsCheckButtonTemplate template, so I dont know if self.swatch is a valid reference to the colored part of it.
0