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

Function push_dfhack_focus_string

library/modules/Gui.cpp:937–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937static void push_dfhack_focus_string(dfhack_viewscreen *vs, std::vector<std::string> &focusStrings)
938{
939 auto name = vs->getFocusString();
940 if (name.empty())
941 name = "dfhack";
942 else if (string::npos == name.find("dfhack/"))
943 name = "dfhack/" + name;
944
945 focusStrings.push_back(name);
946}
947
948std::vector<std::string> Gui::getFocusStrings(df::viewscreen* top)
949{

Callers 1

getFocusStringsMethod · 0.85

Calls 3

getFocusStringMethod · 0.45
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected