mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
Fixes mod reskins not having their icon in radial menu when using different dmi path (#79357)
## About The Pull Request Changes repaint proc a bit so it actually supports `MOD_ICON_OVERRIDE` in reskins and shows their icons correctly ## Why It's Good For The Game It's good for downstreams that want to make new reskins for modsuits and place them in to different dmi's in short, fixes this  to this...  (left one has both skins using `MOD_ICON_OVERRIDE`, but each one has different icon file) ## Changelog 🆑 code: mod reskins now properly shows their icon when skins loaded from different .dmi /🆑 --------- Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
@@ -144,8 +144,9 @@
|
||||
balloon_alert(user, "no alternate skins!")
|
||||
return
|
||||
var/list/skins = list()
|
||||
for(var/mod_skin in mod.theme.skins)
|
||||
skins[mod_skin] = image(icon = mod.icon, icon_state = "[mod_skin]-control")
|
||||
for(var/mod_skin_name in mod.theme.skins)
|
||||
var/list/mod_skin = mod.theme.skins[mod_skin_name]
|
||||
skins[mod_skin_name] = image(icon = mod_skin[MOD_ICON_OVERRIDE] || mod.icon, icon_state = "[mod_skin_name]-control")
|
||||
var/pick = show_radial_menu(user, mod, skins, custom_check = CALLBACK(src, PROC_REF(check_menu), mod, user), require_near = TRUE)
|
||||
if(!pick)
|
||||
balloon_alert(user, "no skin picked!")
|
||||
|
||||
Reference in New Issue
Block a user