|
|
@ -1471,7 +1471,6 @@ static int gui_getMousePos(lua_State *L)
|
|
|
|
static const LuaWrapper::FunctionReg dfhack_gui_module[] = {
|
|
|
|
static const LuaWrapper::FunctionReg dfhack_gui_module[] = {
|
|
|
|
WRAPM(Gui, getCurViewscreen),
|
|
|
|
WRAPM(Gui, getCurViewscreen),
|
|
|
|
WRAPM(Gui, getDFViewscreen),
|
|
|
|
WRAPM(Gui, getDFViewscreen),
|
|
|
|
WRAPM(Gui, getCurFocus),
|
|
|
|
|
|
|
|
WRAPM(Gui, getSelectedWorkshopJob),
|
|
|
|
WRAPM(Gui, getSelectedWorkshopJob),
|
|
|
|
WRAPM(Gui, getSelectedJob),
|
|
|
|
WRAPM(Gui, getSelectedJob),
|
|
|
|
WRAPM(Gui, getSelectedUnit),
|
|
|
|
WRAPM(Gui, getSelectedUnit),
|
|
|
@ -1506,6 +1505,13 @@ static int gui_getFocusStrings(lua_State *state) {
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int gui_getCurFocus(lua_State *state) {
|
|
|
|
|
|
|
|
bool skip_dismissed = lua_toboolean(state, 1);
|
|
|
|
|
|
|
|
std::vector<std::string> cur_focus = Gui::getCurFocus(skip_dismissed);
|
|
|
|
|
|
|
|
Lua::PushVector(state, cur_focus);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int gui_autoDFAnnouncement(lua_State *state)
|
|
|
|
static int gui_autoDFAnnouncement(lua_State *state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool rv;
|
|
|
|
bool rv;
|
|
|
@ -1632,6 +1638,7 @@ static const luaL_Reg dfhack_gui_funcs[] = {
|
|
|
|
{ "revealInDwarfmodeMap", gui_revealInDwarfmodeMap },
|
|
|
|
{ "revealInDwarfmodeMap", gui_revealInDwarfmodeMap },
|
|
|
|
{ "getMousePos", gui_getMousePos },
|
|
|
|
{ "getMousePos", gui_getMousePos },
|
|
|
|
{ "getFocusStrings", gui_getFocusStrings },
|
|
|
|
{ "getFocusStrings", gui_getFocusStrings },
|
|
|
|
|
|
|
|
{ "getCurFocus", gui_getCurFocus },
|
|
|
|
{ NULL, NULL }
|
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|