WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   OpenRDX: Community Chat (https://www.wowinterface.com/forums/forumdisplay.php?f=107)
-   -   Pulling the module version and printing it. (https://www.wowinterface.com/forums/showthread.php?t=42650)

unlimit 02-18-12 11:49 PM

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?

unlimit 02-18-12 11:59 PM

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. :D Closing this now.


All times are GMT -6. The time now is 02:40 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI