MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / draw_tile_caption

Method draw_tile_caption

editor/WireframeGrWnd.cpp:384–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382void CWireframeGrWnd::OnNcPaint() { CGrWnd::OnNcPaint(); }
383
384void CWireframeGrWnd::draw_tile_caption(CDC *dc) {
385 if (!m_Movable) {
386 dc->SetBkMode(TRANSPARENT);
387 dc->SetTextColor(RGB(192, 192, 192));
388 if (Editor_view_mode == VM_TERRAIN)
389 dc->TextOut(10, 10, "Topographical", lstrlen("Topographical"));
390 else
391 dc->TextOut(10, 10, m_Name, lstrlen(m_Name));
392 }
393}
394
395// These functions handle special mouse operations within the wireframe window
396void EndWireframeSel(editorSelectorManager *esm);

Callers

nothing calls this directly

Calls 1

SetTextColorMethod · 0.80

Tested by

no test coverage detected