1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-21 23:03:04 +01:00

Add tooltips and new reload icon

This commit is contained in:
Ted John
2022-10-01 13:53:18 +01:00
parent 06e5b7cc1a
commit 9bb47d0aa1
6 changed files with 16 additions and 4 deletions

View File

@@ -3627,6 +3627,9 @@ STR_6519 :Extras
STR_6520 :Asset Packs
STR_6521 :Low Priority
STR_6522 :High Priority
STR_6523 :Decrease the priority of the selected asset pack.
STR_6524 :Increase the priority of the selected asset pack.
STR_6525 :Reload all assets in the game with the enabled asset packs.
#############
# Scenarios #

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

View File

@@ -550,6 +550,11 @@
"x_offset": 5,
"y_offset": 5
},
{
"path": "icons/reload.png",
"x_offset": 2,
"y_offset": 2
},
{
"path": "font/latin/ae-uc-small.png",
"y_offset": 0,

View File

@@ -38,9 +38,9 @@ enum WindowAssetPacksWidgetIdx {
static rct_widget WindowAssetPacksWidgets[] = {
WINDOW_SHIM(WINDOW_TITLE, WW, WH),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::Scroll, WindowColour::Secondary, SCROLL_VERTICAL),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_G2_ARROW_UP, STR_NONE),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_G2_ARROW_DOWN, STR_NONE),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_ROTATE_ARROW, STR_NONE),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_G2_ARROW_UP, STR_DECREASE_PRIOTITY_TIP),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_G2_ARROW_DOWN, STR_INCREASE_PRIOTITY_TIP),
MakeWidget({ 0, 0 }, { 0, 0 }, WindowWidgetType::FlatBtn, WindowColour::Secondary, SPR_G2_RELOAD, STR_RELOAD_ASSET_PACKS_TIP),
WIDGETS_END,
};
// clang-format on

View File

@@ -3910,6 +3910,9 @@ enum : uint16_t
STR_ASSET_PACKS = 6520,
STR_LOW_PRIORITY = 6521,
STR_HIGH_PRIORITY = 6522,
STR_DECREASE_PRIOTITY_TIP = 6523,
STR_INCREASE_PRIOTITY_TIP = 6524,
STR_RELOAD_ASSET_PACKS_TIP = 6525,
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
/* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings

View File

@@ -902,8 +902,9 @@ enum
SPR_G2_ARROW_UP = SPR_G2_BEGIN + 152,
SPR_G2_ARROW_DOWN = SPR_G2_BEGIN + 153,
SPR_G2_RELOAD = SPR_G2_BEGIN + 154,
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 154,
SPR_G2_CHAR_BEGIN = SPR_G2_BEGIN + 155,
SPR_G2_AE_UPPER = SPR_G2_CHAR_BEGIN,
SPR_G2_AE_LOWER = SPR_G2_CHAR_BEGIN + 1,