Thread Tools Display Modes
12-25-10, 05:38 AM   #1
Ao-
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 9
How Can i change my Actionbar through Lua ?

Can someone help me out with how to change my actionbar through lua
lol i'm tired of using /ChangeActionBar # in macros >,<


Thank you
Ao-
  Reply With Quote
12-25-10, 08:35 AM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
I'm not really sure of what you want. You can use shift mousewheel to change the main actionbar, or you can add the extra bars under interface options.

What functionality are you looking for and why?
  Reply With Quote
12-25-10, 08:57 AM   #3
Ao-
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 9
Well what i was looking for was a stealth bar like rogues get i guess.. i got something working though

Code:
local editbox = CreateFrame("EditBox", "myEditBox", UIParent, "ChatFrameEditBoxTemplate")

if (UnitBuff("player", "prowl")) then
	editbox:SetText("/ChangeActionBar 2") 
	ChatEdit_SendText(editbox)
else
	editbox:SetText("/ChangeActionBar 1") 
	ChatEdit_SendText(editbox)
end
Really simple light weight druid stealth bar for the default UI
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How Can i change my Actionbar through Lua ?


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