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/graphics/Renderer.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/graphics/Renderer.cpp')
| -rw-r--r-- | src/graphics/Renderer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index 45bc15e..9c99bfa 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -923,14 +923,18 @@ void Renderer::DrawSigns() for (i=0; i < signs.size(); i++) if (signs[i].text.length()) { + char type = 0; std::string text = signs[i].getText(sim); + splitsign(signs[i].text.c_str(), &type); signs[i].pos(text, x, y, w, h); clearrect(x, y, w+1, h); drawrect(x, y, w+1, h, 192, 192, 192, 255); - if (splitsign(signs[i].text.c_str())) - drawtext(x+3, y+3, text, 0, 191, 255, 255); - else + if (!type) drawtext(x+3, y+3, text, 255, 255, 255, 255); + else if(type == 'b') + drawtext(x+3, y+3, text, 211, 211, 40, 255); + else + drawtext(x+3, y+3, text, 0, 191, 255, 255); x = signs[i].x; y = signs[i].y; |
