Moai SDK  2.0
MOAITextBundle Class Reference

Inherits MOAILuaObject.

Function List

load
 
lookup
 

Function Documentation

load

Load a text bundle from a .mo file.


function load ( MOAITextBundle self, MOAIDataBuffer buffer )

Parameters
MOAITextBundleself
MOAIDataBufferbuffer A MOAIDataBuffer containing the text bundle.
Returns
number size
Note

function load ( MOAITextBundle self, string filename )

Parameters
MOAITextBundleself
stringfilename The filename to load.
Returns
number size
Note
lookup

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 )

Parameters
MOAITextBundleself
stringkey A text string to use as a "key"
Returns
string value, boolean found