Added: getContinentSheet lua function

ryzom/ark/features
Ulukyn 5 years ago
parent c22f8776f4
commit 586d84bc20

@ -470,6 +470,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions(NLGUI::CLuaState &ls)
ls.registerFunc("disableContextHelp", disableContextHelp);
ls.registerFunc("setWeatherValue", setWeatherValue);
ls.registerFunc("getWeatherValue", getWeatherValue);
ls.registerFunc("getContinentSheet", getContinentSheet);
ls.registerFunc("getCompleteIslands", getCompleteIslands);
ls.registerFunc("displayBubble", displayBubble);
ls.registerFunc("getIslandId", getIslandId);
@ -1787,6 +1788,21 @@ int CLuaIHMRyzom::getWeatherValue(CLuaState &ls)
return 1;
}
int CLuaIHMRyzom::getContinentSheet(CLuaState &ls)
{
const char *funcName = "getContinentSheet";
CLuaIHM::checkArgCount(ls, funcName, 0);
if (ContinentMngr.cur())
{
ls.push(ContinentMngr.cur()->SheetName);
return 1;
}
ls.push("");
return 1;
}
int CLuaIHMRyzom::getUICaller(CLuaState &ls)
{
//H_AUTO(Lua_CLuaIHM_getUICaller)

@ -63,6 +63,7 @@ private:
static int displayChatMessage(CLuaState &ls);
static int setWeatherValue(CLuaState &ls); // first value is a boolean to say automatic, second value ranges from of to 1 and gives the weather
static int getWeatherValue(CLuaState &ls); // get current real weather value (blend between server driven value & predicted value). Manual weather value is ignored
static int getContinentSheet(CLuaState &ls);
static int disableContextHelpForControl(CLuaState &ls); // params: CCtrlBase*. return: none
static int disableContextHelp(CLuaState &ls);
static int getServerSeason(CLuaState &ls); // get the last season sent by the server

Loading…
Cancel
Save