lua/wrappers/game/lua_dialogue.cpp
/**
	 * Sets the raw dialogue text.
	 * @param string text The new dialogue text.
	 * @returns am.dialogue This
	 */
Sets the raw dialogue text.
@param string text The new dialogue text.
Sets the raw dialogue text . @param string text The new dialogue text .
int Dialogue_text(lua_State *lua)
	{
		Dialogue *diag = castUData<Dialogue>(lua, 1);
		if (diag)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushstring(lua, diag->getText());
				return 1;
			}
			else if (lua_isstr(lua, 2))
			{
				diag->setText(lua_tostring(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "text", "string text");
		}
		return LuaState::expectedContext(lua, "text", "am.dialogue");
	}
int Dialogue_text ( lua_State * lua ) { Dialogue * diag = castUData < Dialogue > ( lua , 1 ) ; if ( diag ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , diag -> getText ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { diag -> setText ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the raw dialogue text.
Sets the raw dialogue text .