Example code, this'll set the scale of spec buttons 2-<whatever the limit is> to be twice as large.
Lua Code:
local f = CreateFrame("Frame");
f:RegisterEvent("ADDON_LOADED");
f:SetScript("OnEvent", function(self, event, arg1)
-- These are not the addons you're looking for.
if(event ~= "ADDON_LOADED"
or arg1 ~= "Blizzard_TalentUI") then
return;
end
-- Hook function.
hooksecurefunc("PlayerTalentFrame_CreateSpecSpellButton", function(frame, index)
-- Determine the name of the created frame.
local scrollChild = frame.spellsScroll.child;
local name = scrollChild:GetName() .. "Ability" .. index;
local button = _G[name];
-- And now do what you need with the button!
print(button);
button:SetScale(2.0);
end);
-- In addition, note that SpellSpecButton1 SHOULD exist when the hook is already in place. So you'll need to do stuff to it now as well.
end);
Edit: Oh, you figured it out. Damn it