Thread Tools Display Modes
08-09-08, 07:36 AM   #1
Bouvi
A Chromatic Dragonspawn
 
Bouvi's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 195
Help with code change

API CHANGE

Settings and Preferences

* The following functions have been replaced with server-stored cvars: SetAutoLootDefault(), GetAutoLootDefault(), ShowNameplates(), HideNameplates(), ShowFriendNameplates(), HideFriendNameplates()
* Saving the settings on the server can be disabled by setting the "synchronizeSettings" cvar to 0. You can then use the new UploadSettings() and DownloadSettings() functions to manage synchronization manually.
* NEW value = GetCVarBool("cvar") - Returns the value of the cvar as 1 or nil instead of requiring you to compare the cvar value with "0" or "1"
* NEW name, defaultValue, serverStoredAccountWide, serverStoredPerCharacter = GetCVarInfo("cvar") - Returns information about the named cvar
* There is a new FOCUSCAST click modifier (with no default value) which will cause spells to be cast on your focus.

How do I get and set the values for AutoLootDefault now?
__________________
Bouvi
WoWi Member since June 2005 and darn proud of it!
  Reply With Quote
08-09-08, 10:00 AM   #2
Nexuapex
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 25
SetCVar("autoLootDefault", "...")
  Reply With Quote
08-09-08, 10:46 AM   #3
Bouvi
A Chromatic Dragonspawn
 
Bouvi's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 195
Thanks, got it turning either on or off. My question now is about the state. Will this work or do I need some other way to check?

if(GetCVar("autoLootDefault") == 1) then

Also trying to set the key.

This used to work: SetModifiedClick("AUTOLOOTTOGGLE", "SHIFT")

But no longer does.

Thanks,
__________________
Bouvi
WoWi Member since June 2005 and darn proud of it!
  Reply With Quote
08-09-08, 05:00 PM   #4
Bouvi
A Chromatic Dragonspawn
 
Bouvi's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 195
Thanks to the crew in the beta guild I have fixed everything. Thanks for the help all!!
__________________
Bouvi
WoWi Member since June 2005 and darn proud of it!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Help with code change


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