Quantcast Actionbar scaling/moving problem - WoWInterface
 
Thread Tools Display Modes
06-23-16, 05:43 PM   #1
kaimox
A Fallenroot Satyr
Join Date: Jun 2008
Posts: 23
Question 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.

Last edited by kaimox : 06-24-16 at 01:07 PM.
  Reply With Quote
06-26-16, 01:44 PM   #2
kaimox
A Fallenroot Satyr
Join Date: Jun 2008
Posts: 23
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?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Actionbar scaling/moving problem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off