| 40 | } |
| 41 | |
| 42 | void draw_message() { |
| 43 | if (message_dirty) { |
| 44 | static std::string str = std::string("DFHack: ") + plugin_name + " active"; |
| 45 | Screen::paintString(Screen::Pen(' ', COLOR_LIGHTCYAN, COLOR_GREEN), 0, gps->dimy - 1, str); |
| 46 | for (int32_t i = 0; i < gps->dimx; ++i) |
| 47 | ((scdata*)screen)[i * gps->dimy + gps->dimy - 1].bg = 2; |
| 48 | |
| 49 | message_dirty = false; |
| 50 | } |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | DFhackCExport command_result plugin_init (color_ostream &out, std::vector <PluginCommand> &commands) |