WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Distance between buttons (https://www.wowinterface.com/forums/showthread.php?t=52264)

Trommy 05-02-15 03:40 PM

Distance between buttons
 
Is there script, which makes distance between buttons on panels is smaller?
(red marker on screen)

Seerah 05-02-15 04:25 PM

What are you using for your action bars? Those don't look like the default UI.

Trommy 05-02-15 04:41 PM

Quote:

Originally Posted by Seerah (Post 308572)
What are you using for your action bars? Those don't look like the default UI.

nMainBar. But standart UI-panels have distances too

Seerah 05-02-15 08:49 PM

Yes, but the default action bars aren't skinned and have art behind them. ;) And knowing what mod you use influences the response to your question. ;)

I haven't looked at the code for the action bars, though, so I'll let someone else answer you.

Trommy 05-03-15 12:24 AM

I know, that answers in addon thread is logically. But...i stay on this site ~2 years and know that in
"Addon Help/Support" help more faster than in addon comments...in general help, not ignore... I mean, some of my questions in addons comments stay last in thread from 2 year up to this day

SDPhantom 05-04-15 01:06 PM

This should work for the default UI if the mod is still based off it.
Code:

/run local s,t=0,{"ActionButton","MultiBarBottomLeftButton","MultiBarBottomRightButton"};=for i,j in ipairs(t) for k=2,12 do local b=_G[j..k];local p,f,r=b:GetPoint(1);b:SetPoint(p,f,r,s,0);end end
/run local s,t=0,{"MultiBarLeftButton","MultiBarRightButton"};=for i,j in ipairs(t) for k=2,12 do local b=_G[j..k];local p,f,r=b:GetPoint(1);b:SetPoint(p,f,r,0,-s);end end

Combined, these break the 255 character limit on macros, so they were split into horizontal and vertical macros respectively. If you want to adjust the spacing, go ahead and change the value of the local s. Increasing the value gives more spacing, decreasing will give less and can overlap buttons.

There's another problem that rises from this, the buttons will move toward the left or up depending on bar orientation.


All times are GMT -6. The time now is 04:35 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI