Thread Tools Display Modes
09-15-14, 01:03 AM   #1
DireKnack
A Murloc Raider
Join Date: Mar 2010
Posts: 4
[Help Request] CVar - "Cast Bar Underneath"

Hello, first time posting here. The Thread Name pretty much says it all but I cannot find a CVar for the "Cast Bar Underneath" option after right-clicking on the PlayerFrame (hovering over Move Frame next to Buffs on Top).

I've tried many google searches, wowinterface forum searches, as well as looking through the following sites:
http://www.wowwiki.com/Console_variables
http://wowpedia.org/Console_variables
http://wowprogramming.com/docs/cvars

I've also tried toggling this option and then checking the Config-cache.wtf within my WoW folder.

Am I way off the mark somehow or is this something that doesn't exist? If it does can someone point me in the right direction in finding this please?
  Reply With Quote
09-15-14, 01:19 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Run this:
Code:
/run hooksecurefunc("SetCVar", function(k, v) print("CVar", k, "changed to", v) end)
And then change the in-game option, and look at what's printed in your chat frame.

It may also not be a CVar at all, in which case your best bet is probably to look at the default UI code to see what function(s) are actually called when you toggle the option. It's probably in UnitPopup.lua, but I didn't actually look.
__________________
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.

Last edited by Phanx : 09-15-14 at 01:22 AM.
  Reply With Quote
09-15-14, 01:47 AM   #3
DireKnack
A Murloc Raider
Join Date: Mar 2010
Posts: 4
Originally Posted by Phanx View Post
Run this:
Code:
/run hooksecurefunc("SetCVar", function(k, v) print("CVar", k, "changed to", v) end)
And then change the in-game option, and look at what's printed in your chat frame.

It may also not be a CVar at all, in which case your best bet is probably to look at the default UI code to see what function(s) are actually called when you toggle the option. It's probably in UnitPopup.lua, but I didn't actually look.
You were spot on about it being inside the UnitPopup.lua for anyone who might have the same question in the future. I very much appreciate you Phanx, thank you!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » [Help Request] CVar - "Cast Bar Underneath"


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