Thread Tools Display Modes
11-28-15, 04:53 AM   #1
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Always show ActionBars - possible through code?

Was wondering if there's a way to programmatically toggle the cvar for always showing action bars, along with showing all 4 extra action bars. There seems to be a deliberate restriction on this, but I'm asking here anyway. Setting the CVar will do the trick, but only after reloading it seems.

This is what I've tried so far:
Lua Code:
  1. -- SetActionBarToggles(bar1, bar2, bar3, bar4, alwaysShow)
  2. SetActionBarToggles(1, 1, 1, 1, 1)
  3. SetActionBarToggles(true, true, true, true, true)
  4.  
  5. -- SetCVar("cvar", value [, "raiseEvent"])
  6. SetCVar("alwaysShowActionBars", 1, true)
  7. SetCVar("alwaysShowActionBars", true, true)
  8.  
  9. -- This is probably not safe, but it doesn't work anyway.
  10. MultiActionBar_ShowAllGrids()
__________________

Last edited by MunkDev : 11-28-15 at 06:30 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Always show ActionBars - possible through code?


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