-- rFilter_Zork: theme -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... local expressway = rLib.mediapath.."expressway.ttf" --check if the button template addon and the action button config theme is available if not rButtonTemplate_Zork_ActionButtonConfig then print(A,"rButtonTemplate_Zork_ActionButtonConfig not found","styling not possible") return else print(A,"styling buttons using rButtonTemplate_Zork_ActionButtonConfig") end local copyTable = rLib.CopyTable ----------------------------- -- Actionbutton Config ----------------------------- --load the default button theme local actionButtonConfig = copyTable(rButtonTemplate_Zork_ActionButtonConfig) --name, we use the default actionbutton.name fontstring and use it as our duration fontstring actionButtonConfig.name = { font = { expressway, 13, "OUTLINE"}, points = { {"LEFT", 0, 0 }, {"RIGHT", 0, 0 }, }, halign = "CENTER", valign = "MIDDLE", alpha = 1, } --hotkey, we use the default actionbutton.hotkey fontstring and use it as our extra value fontstring (100k absorb shield etc.) actionButtonConfig.hotkey = { font = { expressway, 11, "OUTLINE"}, points = { {"TOPRIGHT", 0, 0 }, {"BOTTOMLEFT", 0, 0 }, }, halign = "RIGHT", valign = "TOP", alpha = 1, } --count, aura stack count actionButtonConfig.count = { font = { expressway, 11, "OUTLINE"}, points = { {"BOTTOMRIGHT", 0, 0 }, {"BOTTOMLEFT", 0, 0 }, }, halign = "RIGHT", valign = "BOTTOM", alpha = 1, } ----------------------------- -- rButtonTemplate:StyleActionButton ----------------------------- --Style every single button we created local numBuffs, numDebuffs, numCooldowns = #rFilter.buffs, #rFilter.debuffs, #rFilter.cooldowns if numBuffs > 0 then for i, button in next, rFilter.buffs do rButtonTemplate:StyleActionButton(button,actionButtonConfig) end end if numDebuffs > 0 then for i, button in next, rFilter.debuffs do rButtonTemplate:StyleActionButton(button,actionButtonConfig) end end if numCooldowns > 0 then for i, button in next, rFilter.cooldowns do rButtonTemplate:StyleActionButton(button,actionButtonConfig) end end