Thanks to ComputerNerd for suggesting a solution for button skinning. (It is not "exactly" what I was looking for, but it will tide me over nicely until I manage to learn how to skin buttons myself). Appreciate the tip!
I am looking for some more ideas, first concerning kgpanels. I would like my chat frame panel to fade out as the chat fades out. I have set the Anchor and Parent to "ChatFrame1ResizeTopLeft", and I'm pretty sure this used to work before, but not any more. I guess I'll need to use a script for this purpose or am I just parenting it wrong? Don't even know how to start here.
My second issue is regarding SLDT Statline. I would like the Haste Rating module to show Haste % instead.
Code:
local statistics = {
["Haste Rating"] = L["Haste Rating"],
}
Code:
local function GetHasteRating()
-- 18, 19, 20 are shared Haste Rating
local color = SLDataText:GetColor()
local melee = GetCombatRating(18)
local range = GetCombatRating(19)
local spell = GetCombatRating(20)
local minHaste = min(melee, range)
minHaste = min(minHaste, spell)
return format("|cff%s%s|r %d", color, L["H"], minHaste)
end
Code:
local statFunc
local function RefreshStats()
if ( statFunc ) then statFunc = nil end
statFunc = {
["Haste Rating"] = GetHasteRating(),
}
end
I have no idea what to change in the script to accomplish that.
Thanks to anyone that replies!