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

Function OutputFilterString

plugins/uicommon.h:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static inline void OutputFilterString(int &x, int &y, const char *text, const char *hotkey, bool state, bool newline = false,
117 int left_margin = 0, int8_t hotkey_color = COLOR_LIGHTGREEN, bool map = false)
118{
119 OutputString(hotkey_color, x, y, hotkey, false, 0, 0, map);
120 OutputString(COLOR_WHITE, x, y, ": ", false, 0, 0, map);
121 OutputString((state) ? COLOR_WHITE : COLOR_GREY, x, y, text, newline, left_margin, 0, map);
122}
123
124static inline void OutputToggleString(int &x, int &y, const char *text, const char *hotkey, bool state, bool newline = true,
125 int left_margin = 0, int8_t color = COLOR_WHITE, int8_t hotkey_color = COLOR_LIGHTGREEN, bool map = false)

Callers

nothing calls this directly

Calls 1

OutputStringFunction · 0.85

Tested by

no test coverage detected