From 1f2502c8c28d930ac9946b651b2cee85b7d94816 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 22 Jul 2015 18:13:35 +0100 Subject: [PATCH] add recent messages to toolbar, closes #1423 --- data/language/english_uk.txt | 1 + resources/g2/58.png | Bin 0 -> 387 bytes src/config.c | 3 ++- src/config.h | 1 + src/localisation/string_ids.h | 1 + src/sprites.h | 2 ++ src/windows/options.c | 25 ++++++++++++++++++------- src/windows/top_toolbar.c | 25 +++++++++++++++++++++++-- 8 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 resources/g2/58.png diff --git a/data/language/english_uk.txt b/data/language/english_uk.txt index 1a0fe5c80d..a1993df8a2 100644 --- a/data/language/english_uk.txt +++ b/data/language/english_uk.txt @@ -3801,3 +3801,4 @@ STR_5464 :General STR_5465 :Climate STR_5466 :Staff STR_5467 :ALT + +STR_5468 :Show recent messages button on toolbar diff --git a/resources/g2/58.png b/resources/g2/58.png new file mode 100644 index 0000000000000000000000000000000000000000..38dab8711a2df7d76015e9dc6081c1f65d11d841 GIT binary patch literal 387 zcmeAS@N?(olHy`uVBq!ia0vp^5anMpauy~7sn6}@2!&#PCaD6J$0y(p9bGdh}z77RPhrfA7z?hlH2T&v{oc z_fr&8JYQ#v!F*>zpj fjqlsND5_xg@hGi&)v(GM7;p@pu6{1-oD!Menabled_widgets = enabledWidgets; @@ -785,6 +796,16 @@ static void window_top_toolbar_paint(rct_window *w, rct_drawpixelinfo *dpi) imgId = SPR_FINANCE; gfx_draw_sprite(dpi, imgId, x, y, 0); } + + // Draw news button + if (window_top_toolbar_widgets[WIDX_NEWS].type != WWT_EMPTY) { + x = w->x + window_top_toolbar_widgets[WIDX_NEWS].left + 3; + y = w->y + window_top_toolbar_widgets[WIDX_NEWS].top + 0; + if (widget_is_pressed(w, WIDX_NEWS)) + y++; + imgId = SPR_G2_TAB_NEWS; + gfx_draw_sprite(dpi, imgId, x, y, 0); + } } /* rct2: 0x006E3158 */