From a8a3432f31d09a1079a90cfb04296a877c9bc179 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 22 Feb 2025 20:30:26 +0100 Subject: [PATCH] Add new sprites for snow weather types (#23879) Co-authored-by: ZeeMaji <42477864+ZeeMaji@users.noreply.github.com> --- distribution/changelog.txt | 1 + resources/g2/icons/weather_blizzard.png | Bin 0 -> 347 bytes resources/g2/icons/weather_heavy_snow.png | Bin 0 -> 303 bytes resources/g2/icons/weather_snow.png | Bin 0 -> 286 bytes resources/g2/sprites.json | 12 ++++++++++++ src/openrct2/SpriteIds.h | 3 +++ src/openrct2/world/Climate.cpp | 6 +++--- 7 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 resources/g2/icons/weather_blizzard.png create mode 100644 resources/g2/icons/weather_heavy_snow.png create mode 100644 resources/g2/icons/weather_snow.png diff --git a/distribution/changelog.txt b/distribution/changelog.txt index f86453f475..c022777632 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Improved: [#23720] Text fields now allow cutting to clipboard (Ctrl+X) in addition to copy and paste. - Improved: [#23874] The load/save file browser window now uses icons for its action buttons. - Improved: [#23875] Rides forbidden to be modified or destroyed can now be edited with the All destructible cheat. +- Improved: [#23879] Unique weather icons for snow, heavy snow and blizzard. - Fix: [#1972, #11679] Vehicles passing by toilets can cause them to glitch (original bug). - Fix: [#9999, #10000, #10001, #10002, #10003] Truncated scenario strings when using Catalan, Czech, Japanese, Polish or Russian. - Fix: [#14486] Guests will fall through upwards sloped paths when making their way through a park entrance or ride exit (original bug). diff --git a/resources/g2/icons/weather_blizzard.png b/resources/g2/icons/weather_blizzard.png new file mode 100644 index 0000000000000000000000000000000000000000..cf00caf256142d71efed2aa2697f534a16923f77 GIT binary patch literal 347 zcmeAS@N?(olHy`uVBq!ia0y~yV31&7U=ZeDW?*30n`g_(z`(#VQwly}0M0)i(OE2nJ zIK$QJ;SEt0v1cAfmT_EOtKgk>YF*0b-O&PnQzsf-d{P&y5PoLOvk3mj{}^{)7O73> zexYdgXYwWGiTvFz64wf^?vT`(@%`)CuZzS(AHS}SPydl+qOm3M=qB0r!cg^pYx9n! z=S+=m*;aJ-PvcFc*{$BC$B&(Bu1kGj)AFpw?gxWZ7yC1>fanqi1_lOCS3j3^P6Eal|aXmSKfzgeTjYUAS#h6th{Jelj%LYl=qsHI2 z>~s$4dYf1L`d+b-;2FXBw#G+`zrWN>(Cm~Az7>;p#*XcgLE1aJ&Bu?ZBumeDY*zjK zjM?_So5GGV-+RP1Uo|ePvTFLm(Y0&!?w#Dz9L}VPurRT$Sj)3#&n5?^GfaH}x~ literal 0 HcmV?d00001 diff --git a/resources/g2/icons/weather_snow.png b/resources/g2/icons/weather_snow.png new file mode 100644 index 0000000000000000000000000000000000000000..b53bd8526b4ed5b635ddc49a8ef534f0bc744d4b GIT binary patch literal 286 zcmeAS@N?(olHy`uVBq!ia0y~yU=U$oU=U_uW?*1QT4d11z`(#C^k`v*)j0zj$)}_QQwIA6|X=_U-qdKff|66=Psv zU@Qsp3ubV5b|Z~}fnlbni(?4K_2dKwCO1Yl2?5O(BNmDD^#UR+r>(lu-{uvwuN1sJ z_t~|*)!|ALH1}0q6MrFuG%w6g=M#2-Ccd@PT88c z69-<*yO?BFeN#{0osG>gu)Nf~{Gh;u%$_EP0}31)`)5Z>IWd2H$IBETxS&v4LP4o# rw|Uc)CYJ?S2bC@{F%{fZ5M#JwuX880#NUj8fq}u()z4*}Q$iB}+U{&5 literal 0 HcmV?d00001 diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 275e21e400..d1e343f862 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -351,6 +351,18 @@ "x": 2, "y": 1 }, + { + "path": "icons/weather_snow.png", + "x": 3 + }, + { + "path": "icons/weather_heavy_snow.png", + "x": 1 + }, + { + "path": "icons/weather_blizzard.png", + "x": 1 + }, { "path": "loader/loader_hybrid_supports.png", "y": 10 diff --git a/src/openrct2/SpriteIds.h b/src/openrct2/SpriteIds.h index e4c69f3230..1428221f34 100644 --- a/src/openrct2/SpriteIds.h +++ b/src/openrct2/SpriteIds.h @@ -980,6 +980,9 @@ enum : ImageIndex SPR_G2_FOLDER_DEFAULT, SPR_G2_SYSTEM_BROWSER, SPR_G2_PEEP_ANIMATIONS, + SPR_G2_WEATHER_SNOW, + SPR_G2_WEATHER_HEAVY_SNOW, + SPR_G2_WEATHER_BLIZZARD, // G2 Loading progress diff --git a/src/openrct2/world/Climate.cpp b/src/openrct2/world/Climate.cpp index 638f51308e..3516e6d3cb 100644 --- a/src/openrct2/world/Climate.cpp +++ b/src/openrct2/world/Climate.cpp @@ -477,9 +477,9 @@ const WeatherTrait kClimateWeatherTraits[EnumValue(WeatherType::Count)] = { { -2, WeatherEffectType::Rain, 1, WeatherLevel::Light, SPR_WEATHER_LIGHT_RAIN }, // Rain { -4, WeatherEffectType::Rain, 2, WeatherLevel::Heavy, SPR_WEATHER_HEAVY_RAIN }, // Heavy Rain { 2, WeatherEffectType::Storm, 2, WeatherLevel::Heavy, SPR_WEATHER_STORM }, // Thunderstorm - { -10, WeatherEffectType::Snow, 1, WeatherLevel::Light, SPR_WEATHER_SNOW }, // Snow - { -15, WeatherEffectType::Snow, 2, WeatherLevel::Heavy, SPR_WEATHER_SNOW }, // Heavy Snow - { -20, WeatherEffectType::Blizzard, 2, WeatherLevel::Heavy, SPR_WEATHER_SNOW }, // Blizzard + { -10, WeatherEffectType::Snow, 1, WeatherLevel::Light, SPR_G2_WEATHER_SNOW }, // Snow + { -15, WeatherEffectType::Snow, 2, WeatherLevel::Heavy, SPR_G2_WEATHER_HEAVY_SNOW}, // Heavy Snow + { -20, WeatherEffectType::Blizzard, 2, WeatherLevel::Heavy, SPR_G2_WEATHER_BLIZZARD }, // Blizzard }; // clang-format on