WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   script to move extraactionbutton (https://www.wowinterface.com/forums/showthread.php?t=57649)

Mandraxon 11-01-19 03:46 AM

script to move extraactionbutton
 
Hey people,
I need a script to move and scale the extra actionbuttons (extra/zone/dreanor)
i want to use it in my LUA addon so i dont have to use the macro all the time.

what does the code need to be to scale and move the extraactionbuttons?
/Mandraxon

hasnogaems 11-20-19 02:34 PM

It will not exactly anser you question but https://www.curseforge.com/wow/addons/move-anything worked fine for me in the past.

Sylen 11-25-19 09:08 PM

Lua Code:
  1. ExtraActionButton1:ClearAllPoints()
  2. ExtraActionButton1:SetPoint("CENTER", UIParent, "CENTER", 0, -150) -- Set new position
  3. ExtraActionButton1:SetScale(1) --Scale the button
  4. ExtraActionButton1.style:SetAlpha(0) -- Hide background texture

I use this piece of code. I added the hide background texture option as i find it is not really needed and just clutters the screen. If you want to keep it just remove the last line.


All times are GMT -6. The time now is 10:36 PM.

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