WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Actionbar scaling/moving problem (https://www.wowinterface.com/forums/showthread.php?t=53768)

kaimox 06-23-16 05:43 PM

Frame scaling/moving problem
 
I'm trying to put some UI customizations into an addon. This is my first try at creating anything on my own.
I tried moving the actionbars with:

MainMenuBar:ClearAllPoints()
MainMenuBar:SetPoint("BOTTOMRIGHT",-80,0)
MainMenuBar.SetPoint = function() end

The new position worked but got repositioned just seconds later. I've read about creating a frame but the examples given there did not work either. Moving the ObjectiveTrackerFrame did not work at all.

Then I tried scaling (which would achieve almost the same result) with:

MainMenuBar:SetScale(0.9)

That works but now left and right MultiBar disappear right after loading.

I disabled all other modules (and all other addons) and I deleted all wtf files for my testing char but to no avail ...

Does anybody have working code snippets for moving or scaling the actionbars?

Edit: I was not careful enough when checking the loaded addons. The scaling issue is connected to Chocolatebar - maybe to LibJostle? There's some code checking scaling in it. Any way I can scale while keeping MultiBars and Chocolate?

Inspired by this thread http://www.wowinterface.com/forums/s...ad.php?t=49239 I tried:

MainMenuBar:SetUserPlaced(true)
MainMenuBar:SetScale(0.9)

Both Multibars were back but the scaling was gone.

MultiBarLeft:SetUserPlaced(true)
MultiBarLeft:Show()
MultiBarRight:SetUserPlaced(true)
MultiBarRight:Show()

... kept the scaling and the Multibars stayed - for 30 seconds. :-(

ChocolateBar has r57 of LibJostle, but there was only a toc update afterwards and no new release.

kaimox 06-26-16 01:44 PM

Now I'm getting confused: Scaling works on some toons and not on others (with all Multibars and ChocolateBars present on all of them). And today I started getting an error message on those where it's not working:
ActionBars.lua:8: Frame MultiBarLeft is not movable or resizable
[C]: in function `SetUserPlaced'
...\ActionBars.lua:8: in main chunk

Locals:
(*temporary) = MultiBarLeft {
0 = <userdata>
}
(*temporary) = true

Code is:
MainMenuBar:SetScale(0.9)
MultiBarLeft:SetUserPlaced(true)
MultiBarLeft:Show()
MultiBarRight:SetUserPlaced(true)
MultiBarRight:Show()

Can't anybody help?


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

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI