diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-14 22:31:59 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-16 11:06:53 (GMT) |
| commit | 45ab8cca233a226f1e5acb36ab1d474b624e0487 (patch) | |
| tree | b48ad10e750a04a2c062686e4bd431162153af16 /src/graphics/Graphics.cpp | |
| parent | 8f58c61c69eaac8655d8894efd30433cc0f2a653 (diff) | |
| download | powder-45ab8cca233a226f1e5acb36ab1d474b624e0487.zip powder-45ab8cca233a226f1e5acb36ab1d474b624e0487.tar.gz | |
Add icons back to search buttons, fix positioning of them, disable my own / fav buttons when still loading saves
Diffstat (limited to 'src/graphics/Graphics.cpp')
| -rw-r--r-- | src/graphics/Graphics.cpp | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp index dde2701..2f83b78 100644 --- a/src/graphics/Graphics.cpp +++ b/src/graphics/Graphics.cpp @@ -865,16 +865,49 @@ void Graphics::draw_icon(int x, int y, Icon icon, unsigned char alpha, bool inve break; case IconClose: if(invert) - drawchar(x, y, 0xAA, 20, 20, 20, alpha); + drawchar(x, y, 0xAA, 20, 20, 20, alpha); else - drawchar(x, y, 0xAA, 230, 230, 230, alpha); + drawchar(x, y, 0xAA, 230, 230, 230, alpha); break; case IconVoteSort: + if (invert) + { + drawchar(x, y, 0xA9, 44, 48, 32, alpha); + drawchar(x, y, 0xA8, 32, 44, 32, alpha); + drawchar(x, y, 0xA7, 128, 128, 128, alpha); + } + else + { + drawchar(x, y, 0xA9, 144, 48, 32, alpha); + drawchar(x, y, 0xA8, 32, 144, 32, alpha); + drawchar(x, y, 0xA7, 255, 255, 255, alpha); + } + break; case IconDateSort: - case IconFolder: + if (invert) + { + drawchar(x, y, 0xA6, 32, 32, 32, alpha); + } + else + { + drawchar(x, y, 0xA6, 255, 255, 255, alpha); + } + break; + case IconMyOwn: + if (invert) + { + drawchar(x, y, 0x94, 192, 160, 64, alpha); + drawchar(x, y, 0x93, 32, 32, 32, alpha); + } + else + { + drawchar(x, y, 0x94, 192, 160, 64, alpha); + drawchar(x, y, 0x93, 255, 255, 255, alpha); + } + break; case IconSearch: - drawchar(x, y+1, 0x8E, 30, 30, 180, alpha); - drawchar(x, y+1, 0x8F, 255, 255, 255, alpha); + drawchar(x, y, 0x8E, 30, 30, 180, alpha); + drawchar(x, y, 0x8F, 255, 255, 255, alpha); break; case IconDelete: if(invert) |
