WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   MainMenuBar Scaling Help (https://www.wowinterface.com/forums/showthread.php?t=58506)

3njoi 12-29-20 08:06 PM

MainMenuBar Scaling Help
 
Hey,
Can anyone help me with scaling the default MainMenuBar?
/run MainMenuBar:SetScale(1.5) Works but in combat it scales down. I wanted to put inside my addon but I probably need to use hooksecurefunc but can't get it to work.

Anyone knows an easy way to scale it?
Thanks

3njoi 12-30-20 12:35 PM

Lua Code:
  1. if not InCombatLockdown() then
  2.     MainMenuBar:SetMovable(true)
  3.     MainMenuBar:SetUserPlaced(true)
  4.     MainMenuBar:ClearAllPoints()
  5.     MainMenuBar:SetPoint("CENTER",UIParent,"BOTTOM",0,38)
  6.     MainMenuBar:SetScale(1.4)
  7. end
This seems to work but sometimes after I leave or join an instance the mainmenu bar becomes unresponsive (doesnt allow me to click on it, doesnt show cds and keybinds are gone )

Fizzlemizz 12-30-20 01:47 PM

You might want to add:
Code:

MainMenuBar.ignoreFramePositionManager = true

3njoi 12-30-20 04:08 PM

Quote:

Originally Posted by Fizzlemizz (Post 338124)
You might want to add:
Code:

MainMenuBar.ignoreFramePositionManager = true

Thanks, do you have any idea why sometimes after taking a portal, using HS my bar becomes unresponsive like that? (SS)

There is no error its working fine after I /reload


All times are GMT -6. The time now is 12:52 PM.

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