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

Function OutputHotkeyString

plugins/uicommon.h:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static inline void OutputHotkeyString(int &x, int &y, const char *text, const char *hotkey, bool newline = false,
83 int left_margin = 0, int8_t text_color = COLOR_WHITE, int8_t hotkey_color = COLOR_LIGHTGREEN, bool map = false)
84{
85 OutputString(hotkey_color, x, y, hotkey, false, 0, 0, map);
86 string display(": ");
87 display.append(text);
88 OutputString(text_color, x, y, display, newline, left_margin, 0, map);
89}
90
91static inline void OutputHotkeyString(int &x, int &y, const char *text, df::interface_key hotkey,
92 bool newline = false, int left_margin = 0, int8_t text_color = COLOR_WHITE, int8_t hotkey_color = COLOR_LIGHTGREEN,

Callers 7

drawMethod · 0.85
OutputToggleStringFunction · 0.85
displayMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85

Calls 2

OutputStringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected