Thread Tools Display Modes
08-24-15, 08:48 AM   #1
Akiu
A Defias Bandit
Join Date: Aug 2015
Posts: 2
rotating main action bar

Hi, I was wondering if someone could help me with rotating the main action bar page to the right hand side of my screen, I can figure out the coords and placement and whatnot but I'm having trouble figuring out a script that I would use for it...

... I have this script:

/run for i,v in ipairs{"Left","Right"} do for i = 2, 12 do local n = "MultiBar"..v.."Button" local btn = _G[n..i] btn:ClearAllPoints() btn:SetPoint("LEFT", n..i - 1, "RIGHT", 6, 0) end end

What I want to do:Take ActionButton1-12 and move to the right hand side of my screen facing up

Rotate the ENTIRE MainMenuBar(MainMenuBarArtFrame) 180* to the right hand side of my screen

...So said buttons will appear facing upright and still have the border of the MainMenuBar

Last edited by Akiu : 08-24-15 at 08:50 AM.
  Reply With Quote
08-24-15, 07:26 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Possibly something like this:
Code:
MainMenuBarArtFrame:ClearAllPoints()
MainMenuBarArtFrame:SetPoint("RIGHT", UIParent)

local animGroup = MainMenuBarArtFrame:CreateAnimationGroup()
local anim = animGroup:CreateAnimation("Rotation")
anim:SetOrigin("BOTTOM", 0, 0)
anim:SetRotation(-90)
...though if the buttons are parented to the art frame then they'll get rotated too, so you'd either need to rotate them back, or use manual methods to move and rotate each art texture individually.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » rotating main action bar

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