|
Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAILuaObject.
Function List | |
| load | |
| lookup | |
Load a text bundle from a .mo file.
function load ( MOAITextBundle self, MOAIDataBuffer buffer )
| self | ( MOAITextBundle ) |
| buffer | ( MOAIDataBuffer ) A MOAIDataBuffer containing the text bundle. |
function load ( MOAITextBundle self, string filename )
| self | ( MOAITextBundle ) |
| filename | ( string ) The filename to load. |
Look up a string in the bundle (defaulting to the lookup string itself). In the case of defaulting, a false value is returned as the second value (useful for falling back to less-specific bundles if desirable).
function lookup ( MOAITextBundle self, string key )
| self | ( MOAITextBundle ) |
| key | ( string ) A text string to use as a "key" |