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

Function add_profile_tab_focus_string

library/modules/Gui.cpp:329–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328template<typename T>
329static void add_profile_tab_focus_string(
330 vector<string> & focusStrings, const string & base, T * bld)
331{
332 string fs = base + '/' + get_building_custom_name(bld);
333 switch (game->main_interface.view_sheets.active_sub_tab) {
334 case 0: fs += "Tasks"; break;
335 case 1: fs += "Workers"; break;
336 case 2: fs += "WorkOrders"; break;
337 default:
338 return;
339 }
340 focusStrings.push_back(fs);
341}
342
343static void add_main_interface_focus_strings(const string &baseFocus, vector<string> &focusStrings) {
344 std::string newFocusString;

Callers 1

Calls 1

get_building_custom_nameFunction · 0.85

Tested by

no test coverage detected