diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-10-29 19:43:02 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-10-29 19:43:02 (GMT) |
| commit | f2e28ee66721f9db1a6fe93604a7db3cbcb71199 (patch) | |
| tree | 28fbf3648046e29110b61676d233e8890647e4fb /src/gui/game/SignTool.cpp | |
| parent | e78dcae8517e3cc9efc4883935655d7098ab54b1 (diff) | |
| parent | 30d985ba7716238819185b96f811f7f6e5f4ffdb (diff) | |
| download | powder-f2e28ee66721f9db1a6fe93604a7db3cbcb71199.zip powder-f2e28ee66721f9db1a6fe93604a7db3cbcb71199.tar.gz | |
Merge branch 'feature_sparksigns' into develop
Diffstat (limited to 'src/gui/game/SignTool.cpp')
| -rw-r--r-- | src/gui/game/SignTool.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/game/SignTool.cpp b/src/gui/game/SignTool.cpp index 9cb389a..fdc1fb5 100644 --- a/src/gui/game/SignTool.cpp +++ b/src/gui/game/SignTool.cpp @@ -178,15 +178,19 @@ void SignWindow::DoDraw() { sign & currentSign = *iter; int x, y, w, h, dx, dy; + char type = 0; Graphics * g = ui::Engine::Ref().g; std::string text = currentSign.getText(sim); + splitsign(currentSign.text.c_str(), &type); currentSign.pos(text, x, y, w, h); g->clearrect(x, y, w+1, h); g->drawrect(x, y, w+1, h, 192, 192, 192, 255); - if (splitsign(currentSign.text.c_str())) - g->drawtext(x+3, y+3, text, 0, 191, 255, 255); - else + if (!type) g->drawtext(x+3, y+3, text, 255, 255, 255, 255); + else if(type == 'b') + g->drawtext(x+3, y+3, text, 211, 211, 40, 255); + else + g->drawtext(x+3, y+3, text, 0, 191, 255, 255); x = currentSign.x; y = currentSign.y; |
