1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Finished window staff fire paint

This commit is contained in:
Duncan
2014-10-08 12:39:50 +01:00
committed by Duncan Frost
parent 719ca2ddd2
commit 3612f7f89d

View File

@@ -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
}
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);
}