View Single Post
02-21-24, 12:38 AM   #5
atshn
A Deviate Faerie Dragon
Join Date: Feb 2024
Posts: 19
Not working on Classic. Anything wrong with my hotkey additions?

Code:
for i=1, NUM_ACTIONBAR_SLOTS, 1 do
        local button = _G["ActionButton" .. i]);
                hooksecurefunc("ActionButton_UpdateHotkeys",function(self)
                    local hotkey = self.HotKey;
                     hotkey:SetFont("Fonts\\FRIZQT__.ttf", 12, "THICKOUTLINE")
                     hotkey:SetTextColor(1, 1, 1, 1)
                end)
    end

for i=1, NUM_PET_ACTION_SLOTS, 1 do
        local button = _G["PetActionButton" .. i]);
                hooksecurefunc("PetActionButton_SetHotKeys",function(self)
                    local hotkey = _G[self:GetName().."HotKey"];
                     hotkey:SetFont("Fonts\\FRIZQT__.ttf", 12, "THICKOUTLINE")
                     hotkey:SetTextColor(1, 1, 1, 1)
                end)
    end
  Reply With Quote