Thread Tools Display Modes
02-18-12, 11:49 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Pulling the module version and printing it.

lua Code:
  1. TRUESYS = RegisterVFLModule({
  2.     name = "TRUESYS";
  3.     title = "True Core";
  4.     description = "True Core";
  5.     parent = RDX;
  6. });
  7.  
  8. TRUESYS:LoadVersionFromTOC("TrueAui");

Say I'd like to print the module version of TRUESYS, how would I be able to do this?
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
 
02-18-12, 11:59 PM   #2
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
lua Code:
  1. function TRUESYS.GetVersion()
  2.     return TRUESYS.version[1] .. "." .. TRUESYS.version[2] .. "." .. TRUESYS.version[3];
  3. end
  4.  
  5. print(TRUESYS.GetVersion());
Just copying the one from RDX and changing the name works, cool.

and since you can compare a string with a string, makes it even better. Closing this now.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **

Last edited by unlimit : 02-19-12 at 12:34 AM.
 

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Pulling the module version and printing it.


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