MCPcopy Create free account
hub / github.com/DFHack/dfhack / DEFINE_GET_FOCUS_STRING_HANDLER

Function DEFINE_GET_FOCUS_STRING_HANDLER

library/modules/Gui.cpp:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 static void getFocusStrings_##screen_type(const std::string &baseFocus, std::vector<std::string> &focusStrings, VIEWSCREEN(screen_type) *screen)
164
165DEFINE_GET_FOCUS_STRING_HANDLER(title)
166{
167 if (screen->managing_mods)
168 focusStrings.push_back(baseFocus + "/Mods");
169 else if (game->main_interface.settings.open)
170 focusStrings.push_back(baseFocus + "/Settings");
171
172 if (focusStrings.empty())
173 focusStrings.push_back(baseFocus + "/Default");
174}
175
176DEFINE_GET_FOCUS_STRING_HANDLER(new_region)
177{

Callers

nothing calls this directly

Calls 4

enum_item_keyFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected