Hello everyone!
I would create an addon that improves the default Blizzard UI but, because I'm a noob of lua scripts, I'm now stuck.
Here are the various problems I would like to resolve:
1-Hide MainActionBar and create a macro that can show the main action bar only to set keybinds
I'm using nMainBar and I would create an addon that hide the Main Bar (not the right side bar) so that I've plenty of space at the bottom of my UI, but I would also a button which can show again the action bar if i need to set key binds or switch skills. Is it possible to do so?
2-Change automatically position of Blizzard Raid Frames
Is there the possibility to change the position of Raid Frames depending on raid size? I want raid frame to be on the center of my screen but if the raid size increase (for example from 20 to 30 players) it still remains centered.
Until now what I've done for this addon:
Code:
RegisterStateDriver(ObjectiveTrackerFrame, "visibility", "[nocombat] show; hide")
TargetFrame.maxBuffs = 0
TargetFrame.maxDebuffs = 0
MAX_TARGET_BUFFS = 0
MAX_TARGET_DEBUFFS = 0
TargetFrame_UpdateAuras(TargetFrame)
UIErrorsFrame:SetAlpha(0)
hooksecurefunc("GameTooltip_SetDefaultAnchor", function (tooltip, parent)
tooltip:SetOwner(parent, "ANCHOR_NONE");
tooltip:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -30, 50);
end)
This will show Objective Tracker only when out of combat, will hide all buff/debuffs on target/player frames and will anchor tooltips to a specific position.
Any idea? And sorry for my english