View Single Post
05-26-19, 07:57 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Have you tried just using SetCVar and use the return value and the event if necessary to continue the code process.

https://wow.gamepedia.com/API_C_CVar.SetCVar


The other option is to use the static variable NUM_LE_EXPANSION_LEVELS that is set to 1 for Classic and use that as a guide for Classic based functionality access and make any necessary changes using an if statement block, if you were hoping to have one source code base for both versions.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote