Fixes certain broken icons in the outfit editor, stripping menu and multiple others (#93319)

## About The Pull Request

``icon2base64`` does not like animated icons and will display an atlas
in TGUI when one is passed into it

<img width="239" height="220" alt="JKneqDL9NH"
src="https://github.com/user-attachments/assets/47e0ffdf-c155-4c84-94ce-c23203281012"
/>

Additionally added some padding between the icon and the slot name in
the outfit editor because it annoyed me

## Changelog
🆑
fix: Fixed certain broken icons in the outfit editor, stripping menu and
multiple others
/🆑
This commit is contained in:
SmArtKar
2025-10-07 18:42:17 +02:00
committed by GitHub
parent 6206945cea
commit 975d3d47ae
9 changed files with 18 additions and 14 deletions
+4 -2
View File
@@ -55,7 +55,7 @@
"name" = initial(item.name),
"desc" = initial(item.desc),
// at this point initializing the item is probably faster tbh
"sprite" = icon2base64(icon(initial(item.icon), initial(item.icon_state))),
"sprite" = icon2base64(icon(initial(item.icon), initial(item.icon_state), frame = 1)),
)
return data
@@ -78,7 +78,9 @@
var/icon/dummysprite = get_flat_human_icon(null,
dummy_key = dummy_key,
showDirs = list(SOUTH),
outfit_override = drip)
outfit_override = drip,
no_anim = TRUE,
)
data["dummy64"] = icon2base64(dummysprite)
return data
+3 -1
View File
@@ -107,7 +107,9 @@ ADMIN_VERB_ONLY_CONTEXT_MENU(select_equipment, R_FUN, "Select Equipment", mob/ta
var/icon/dummysprite = get_flat_human_icon(null,
dummy_key = dummy_key,
outfit_override = selected_outfit)
outfit_override = selected_outfit,
no_anim = TRUE,
)
data["icon64"] = icon2base64(dummysprite)
data["name"] = target_mob