| 67 | typedef int8_t UIColor; |
| 68 | |
| 69 | static inline void OutputString(UIColor color, int &x, int &y, const std::string &text, |
| 70 | bool newline = false, int left_margin = 0, const UIColor bg_color = 0, bool map = false) |
| 71 | { |
| 72 | Screen::paintString(Screen::Pen(' ', color, bg_color), x, y, text, map); |
| 73 | if (newline) |
| 74 | { |
| 75 | ++y; |
| 76 | x = left_margin; |
| 77 | } |
| 78 | else |
| 79 | x += text.length(); |
| 80 | } |
| 81 | |
| 82 | static 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) |
no test coverage detected