mirror of https://github.com/OpenRCT2/OpenRCT2.git
Change multiplayer toolbar image to framed globe, with pressed state.
This commit is contained in:
parent
4a34d2a6da
commit
57040c392c
Binary file not shown.
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -419,19 +419,16 @@
|
|||
"path": "icons/map_east_pressed.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/multiplayer_toolbar.png",
|
||||
"x_offset": 0,
|
||||
"y_offset": 0
|
||||
"path": "icons/multiplayer_toolbar.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/multiplayer_sync.png",
|
||||
"x_offset": 0,
|
||||
"y_offset": 0
|
||||
"path": "icons/multiplayer_toolbar_pressed.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/multiplayer_desync.png",
|
||||
"x_offset": 0,
|
||||
"y_offset": 0
|
||||
"path": "icons/multiplayer_sync.png"
|
||||
},
|
||||
{
|
||||
"path": "icons/multiplayer_desync.png"
|
||||
},
|
||||
{
|
||||
"path": "font/latin/ae-uc-small.png",
|
||||
|
|
|
@ -251,7 +251,7 @@ static rct_widget window_top_toolbar_widgets[] = {
|
|||
{ WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_TAB_TOOLBAR, STR_SCENARIO_OPTIONS_FINANCIAL_TIP },// Finances
|
||||
{ WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_TAB_TOOLBAR, STR_FINANCES_RESEARCH_TIP }, // Research
|
||||
{ WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_TAB_TOOLBAR, STR_SHOW_RECENT_MESSAGES_TIP }, // News
|
||||
{ WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_TAB_TOOLBAR, STR_SHOW_MULTIPLAYER_STATUS_TIP }, // Network
|
||||
{ WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_G2_TOOLBAR_MULTIPLAYER, STR_SHOW_MULTIPLAYER_STATUS_TIP }, // Network
|
||||
{ WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, IMAGE_TYPE_REMAP | SPR_TAB_TOOLBAR, STR_TOOLBAR_CHAT_TIP }, // Chat
|
||||
|
||||
{ WWT_EMPTY, 0, 0, 10-1, 0, 0, 0xFFFFFFFF, STR_NONE }, // Artificial widget separator
|
||||
|
@ -996,13 +996,14 @@ static void window_top_toolbar_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
|||
y = w->y + window_top_toolbar_widgets[WIDX_NETWORK].top + 0;
|
||||
if (widget_is_pressed(w, WIDX_NETWORK))
|
||||
y++;
|
||||
imgId = SPR_G2_MULTIPLAYER_TOOLBAR;
|
||||
gfx_draw_sprite(dpi, imgId, x - 2, y - 2, 0);
|
||||
gCurrentFontSpriteBase = FONT_SPRITE_BASE_MEDIUM;
|
||||
|
||||
// Draw (de)sync icon.
|
||||
imgId = (network_is_desynchronised() ? SPR_G2_MULTIPLAYER_DESYNC : SPR_G2_MULTIPLAYER_SYNC);
|
||||
gfx_draw_sprite(dpi, imgId, x + 3, y + 11, 0);
|
||||
|
||||
// Draw number of players.
|
||||
int32_t player_count = network_get_num_players();
|
||||
gCurrentFontSpriteBase = FONT_SPRITE_BASE_MEDIUM;
|
||||
gfx_draw_string_right(dpi, STR_COMMA16, &player_count, COLOUR_WHITE | COLOUR_FLAG_OUTLINE, x + 23, y + 1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -838,11 +838,12 @@ enum
|
|||
SPR_G2_MAP_EAST = SPR_G2_BEGIN + 120,
|
||||
SPR_G2_MAP_EAST_PRESSED = SPR_G2_BEGIN + 121,
|
||||
|
||||
SPR_G2_MULTIPLAYER_TOOLBAR = SPR_G2_BEGIN + 122,
|
||||
SPR_G2_MULTIPLAYER_SYNC = SPR_G2_BEGIN + 123,
|
||||
SPR_G2_MULTIPLAYER_DESYNC = SPR_G2_BEGIN + 124,
|
||||
SPR_G2_TOOLBAR_MULTIPLAYER = SPR_G2_BEGIN + 122,
|
||||
SPR_G2_TOOLBAR_MULTIPLAYER_PRESSED = SPR_G2_BEGIN + 123,
|
||||
SPR_G2_MULTIPLAYER_SYNC = SPR_G2_BEGIN + 124,
|
||||
SPR_G2_MULTIPLAYER_DESYNC = SPR_G2_BEGIN + 125,
|
||||
|
||||
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 125,
|
||||
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 126,
|
||||
|
||||
SPR_G2_AE_UPPER = SPR_G2_CHAR_BEGIN,
|
||||
SPR_G2_AE_LOWER = SPR_G2_CHAR_BEGIN + 1,
|
||||
|
|
Loading…
Reference in New Issue