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

Method draw_message

plugins/devel/renderer-msg.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
54DFhackCExport command_result plugin_init (color_ostream &out, std::vector <PluginCommand> &commands)

Callers

nothing calls this directly

Calls 1

PenClass · 0.50

Tested by

no test coverage detected