ThemeInfo.lua
From SMTheming Wiki
- Not to be confused with ThemeInfo.ini.
ThemeInfo.lua is a file used by members of the spinal shark collective (and some other themers) to have a theme be able to self-identify various pieces of information. It is related to ThemeInfo.ini but defines information differently.
History
The idea spawned from the early second prototype of StepMania dynamism, which included a Lua function returning the theme version. This was carried over into Synikal's F.A.Y.B.A.N. as well as shakesoda's optical and Midiman's StepMania: Strike. dubaiOne was the first theme to include the themeInfo table, though it did so in a file called 00 dubaiOne.lua, which also contained a bunch of other functions.
Examples
At its most basic, ThemeInfo.lua looks something like this:
themeInfo = { ProductCode = "KKI-GenericTheme", Name = "generic theme", Version = "1.0", Date = "20090523", };
Other fields may be added as necessary.
To access a value, use one of the two options below:
themeInfo[section] themeInfo.section
Where section is one of the keys in themeInfo. For example, themeInfo["Name"] gets you the theme name.

