Hide action page arrows
Hi Scott,
Great to see you back. I was wondering if it's possible to either hide the Action Page arrows (at the end of the main action bar), or iclude an option to do so. I don't really see the need for them to be shown considering all actin bars are visible anyway. Plus, I use Quartz and have the Player bar to the left and Target to the right, and me being fussy with layout, like having things aesthetically even. Here is the code, in case you don't already know about it. Code:
/run local t,b={"Up","Down"}for _,direction in pairs(t)do b=_G["ActionBar"..direction.."Button"]b:SetScript("OnShow",b.Hide)b:Hide()end |
I am not sure if setting the OnShow script might not cause a taint problem. It might be better to just reparent them to nUI.BlizUI
It's kind of an edge use-case to change it in nUI5, but I'll be sure to include an option in nUI6 and you can do a simple edit in nUI or use a macro to do it in the meantime. The edit is very easy... open [ Interface > AddOns > nUI > Bars > nUI_ButtonBar.lua ] and locate the statement "if bar:GetName() == "nUI_ActionBar" then" at line 855 and make the following two highlighted changes... Code:
If you want to use a macro, just do this... Code:
/script ActionBarUpButton:SetParent( nUI.BlizUI ); ActionBarDownButton:SetParent( nUI.BlizUI ); |
Thanks Scott,
That did the trick :D |
Hey Scott,
I was playing around with your suggestion and decided to try something different, so instead of changing what you suggested I changed the following Code:
if bar:GetName() == "nUI_ActionBar" then |
Either way works... but I don't normally recommend changing the engine code... that's what the layout files are for... they are the "data" that drives the engine. The intent is always that you customize the UI by modifying the layout. That will absolutely be the case in nUI6.
|
Ahh, ok. Fair enough.
|
All times are GMT -6. The time now is 04:12 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI