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