Convert robot icons to iconforge, update iconforge to not break on them (#16793)

This commit is contained in:
ShadowLarkens
2024-12-31 06:32:35 -08:00
committed by GitHub
parent c1ae1bc4f9
commit ca3d2a40a8
15 changed files with 91 additions and 36 deletions
@@ -354,6 +354,8 @@
sprite_datum = module_sprites[1]
sprite_datum.do_equipment_glamour(module)
return
if(mind)
sprite_name = mind.name
if(!selecting_module)
var/datum/tgui_module/robot_ui_module/ui = new(src)
ui.tgui_interact(src)
@@ -23,7 +23,7 @@
/datum/tgui_module/robot_ui_module/ui_assets(mob/user)
return list(
get_asset_datum(/datum/asset/spritesheet/robot_icons)
get_asset_datum(/datum/asset/spritesheet_batched/robot_icons)
)
/datum/tgui_module/robot_ui_module/tgui_static_data()
@@ -49,6 +49,7 @@
if(is_borg_whitelisted(R, module_name))
modules |= module_name
data["possible_modules"] = modules
data["mind_name"] = R.mind.name
if(R.emagged)
data["theme"] = "syndicate"
else if (R.ui_theme)
@@ -60,7 +61,7 @@
var/list/data = ..()
var/mob/living/silicon/robot/R = host
var/datum/asset/spritesheet/robot_icons/spritesheet = get_asset_datum(/datum/asset/spritesheet/robot_icons)
var/datum/asset/spritesheet_batched/robot_icons/spritesheet = get_asset_datum(/datum/asset/spritesheet_batched/robot_icons)
data["currentName"] = new_name ? new_name : R.name
data["isDefaultName"] = !new_name
@@ -136,6 +137,7 @@
var/name = params["value"]
if(name)
new_name = sanitizeSafe(name, MAX_NAME_LEN)
R.sprite_name = new_name
. = TRUE
if("confirm")
R.apply_name(new_name)
@@ -24,6 +24,8 @@
var/has_custom_equipment_sprites = FALSE
var/vis_height = 32
var/pixel_x = 0
var/icon_x = 32
var/icon_y = 32
var/is_whitelisted = FALSE
var/whitelist_ckey
@@ -188,6 +190,8 @@
has_dead_sprite_overlay = TRUE
has_custom_equipment_sprites = TRUE
pixel_x = -16
icon_x = 64
icon_y = 32
/datum/robot_sprite/dogborg/do_equipment_glamour(var/obj/item/robot_module/module)
if(!has_custom_equipment_sprites)
@@ -207,6 +211,8 @@
has_dead_sprite_overlay = FALSE
has_custom_equipment_sprites = FALSE
vis_height = 64
icon_x = 64
icon_y = 64
// Default module sprite
@@ -19,6 +19,8 @@
has_dead_sprite = TRUE
has_dead_sprite_overlay = TRUE
pixel_x = -16
icon_x = 64
icon_y = 32
whitelist_ckey = "argonne"
whitelist_charname = "RUSS"
@@ -80,6 +82,8 @@
has_dead_sprite = TRUE
has_dead_sprite_overlay = TRUE
pixel_x = -16
icon_x = 64
icon_y = 32
whitelist_ckey = "jademanique"
whitelist_charname = "B.A.U-Kingside"
@@ -101,6 +105,8 @@
has_dead_sprite = TRUE
has_dead_sprite_overlay = TRUE
pixel_x = -16
icon_x = 64
icon_y = 32
whitelist_ckey = "lunarfleet"
whitelist_charname = "Clea-Nor"