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

Function OutputLabelString

plugins/uicommon.h:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static inline void OutputLabelString(int &x, int &y, const char *text, const char *hotkey, const string &label, bool newline = false,
99 int left_margin = 0, int8_t text_color = COLOR_WHITE, int8_t hotkey_color = COLOR_LIGHTGREEN, bool map = false)
100{
101 OutputString(hotkey_color, x, y, hotkey, false, 0, 0, map);
102 string display(": ");
103 display.append(text);
104 display.append(": ");
105 OutputString(text_color, x, y, display, false, 0, 0, map);
106 OutputString(hotkey_color, x, y, label, newline, left_margin, 0, map);
107}
108
109static inline void OutputLabelString(int &x, int &y, const char *text, df::interface_key hotkey, const string &label, bool newline = false,
110 int left_margin = 0, int8_t text_color = COLOR_WHITE, int8_t hotkey_color = COLOR_LIGHTGREEN, bool map = false)

Callers

nothing calls this directly

Calls 2

OutputStringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected