Moai SDK
2.0
|
Inherits MOAILuaObject.
Function List | |
load | |
lookup | |
|
Load a text bundle from a .mo file.
function load ( MOAITextBundle self, MOAIDataBuffer buffer )
MOAITextBundle | self |
MOAIDataBuffer | buffer A MOAIDataBuffer containing the text bundle. |
function load ( MOAITextBundle self, string filename )
MOAITextBundle | self |
string | filename 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 )
MOAITextBundle | self |
string | key A text string to use as a "key" |