From 3612f7f89d240e78177b183a9746dae6a5eaede0 Mon Sep 17 00:00:00 2001 From: Duncan Date: Wed, 8 Oct 2014 12:39:50 +0100 Subject: [PATCH] Finished window staff fire paint --- src/window_staff_fire.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/window_staff_fire.c b/src/window_staff_fire.c index fdf729ef47..461c6de7bb 100644 --- a/src/window_staff_fire.c +++ b/src/window_staff_fire.c @@ -112,7 +112,7 @@ void window_staff_fire_open(rct_peep* peep){ * * rct2: 0x006C0B40 */ -static void window_shortcut_change_mouseup(){ +static void window_staff_fire_mouseup(){ short widgetIndex; rct_window *w; @@ -132,7 +132,7 @@ static void window_shortcut_change_mouseup(){ * * rct2: 0x006C0AF2 */ -static void window_shortcut_change_paint(){ +static void window_staff_fire_paint(){ rct_window *w; rct_drawpixelinfo *dpi; @@ -140,5 +140,13 @@ static void window_shortcut_change_paint(){ window_draw_widgets(w, dpi); - //To be finished -} \ No newline at end of file + rct_peep* peep = &g_sprite_list[w->number].peep; + + RCT2_GLOBAL(0x13CE952, uint16) = peep->name_string_idx; + RCT2_GLOBAL(0x13CE954, uint32) = peep->id; + + int x = w->x + WW / 2; + int y = w->y + (WH / 2) - 3; + + gfx_draw_string_centred_wrapped(dpi, (void*)0x13CE952, x, y, 196, STR_FIRE_STAFF_ID, 0); +}