mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 12:05:28 +01:00
move the internal preview to canvas (#18930)
* move the internal preview to canvas * use a helper * basic readme prep * . * . * transform better * byond can't handle icon states of large files... * move fully to the rust version * fix typing * just wtf. NO * fix the legacy path * keep it all centralized * tiny oversight * unit test rewrite * rename * fix bad layering * fixes a bunch of layering issues * artifact * move crash to log_runtime * missing overlay warning * why not
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
/datum/overlay_previews
|
||||
var/old_precolored = 'icons/mob/vore_fullscreens/ui_lists/screen_full_vore.dmi'
|
||||
var/base = 'icons/mob/vore_fullscreens/ui_lists/screen_full_vore_list_base.dmi'
|
||||
var/layer1 = 'icons/mob/vore_fullscreens/ui_lists/screen_full_vore_list_layer1.dmi'
|
||||
var/layer2 = 'icons/mob/vore_fullscreens/ui_lists/screen_full_vore_list_layer2.dmi'
|
||||
var/layer3 = 'icons/mob/vore_fullscreens/ui_lists/screen_full_vore_list_layer3.dmi'
|
||||
|
||||
/datum/belly_overlays
|
||||
var/belly_icon
|
||||
/*
|
||||
@@ -273,13 +280,3 @@
|
||||
|
||||
/datum/belly_overlays/synth_flesh_mono_hole
|
||||
belly_icon = 'icons/mob/vore_fullscreens/synth_flesh_mono_hole.dmi'
|
||||
|
||||
/datum/belly_overlays/yet_another_tumby
|
||||
belly_icon = 'icons/mob/vore_fullscreens/yet_another_tumby.dmi'
|
||||
|
||||
//Compatibility assets due to renames...
|
||||
/datum/belly_overlays/anim_belly
|
||||
belly_icon = 'icons/mob/vore_fullscreens/VBOanim_belly1.dmi'
|
||||
|
||||
/datum/belly_overlays/a_anim_belly
|
||||
belly_icon = 'icons/mob/vore_fullscreens/VBOanim_belly1.dmi'
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
var/obj/machinery/computer/C = item
|
||||
var/screen = initial(C.icon_screen)
|
||||
var/keyboard = initial(C.icon_keyboard)
|
||||
var/all_states = cached_icon_states(icon_file)
|
||||
var/all_states = icon_states_fast(icon_file)
|
||||
if (screen && (screen in all_states))
|
||||
transform.blend_icon(uni_icon(icon_file, screen), ICON_OVERLAY)
|
||||
if (keyboard && (keyboard in all_states))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
var/datum/universal_icon/I
|
||||
|
||||
var/icon_states_list = cached_icon_states(icon_file)
|
||||
var/icon_states_list = icon_states_fast(icon_file)
|
||||
if(icon_state in icon_states_list)
|
||||
I = uni_icon(icon_file, icon_state, SOUTH)
|
||||
var/c = initial(item.color)
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/datum/asset/spritesheet/vore
|
||||
name = "vore"
|
||||
|
||||
/datum/asset/spritesheet/vore/create_spritesheets()
|
||||
var/icon/downscaled = icon('icons/mob/screen_full_vore_list.dmi') // preserving save data
|
||||
downscaled.Scale(240, 240)
|
||||
InsertAll("", downscaled)
|
||||
|
||||
/datum/asset/spritesheet/vore_fixed //This should be getting loaded in the TGUI vore panel but the game refuses to do so, for some reason. It only loads the vore spritesheet.
|
||||
name = "fixedvore"
|
||||
|
||||
/datum/asset/spritesheet/vore_fixed/create_spritesheets() // preserving save data
|
||||
var/icon/downscaledVF = icon('icons/mob/screen_full_vore.dmi')
|
||||
downscaledVF.Scale(240, 240)
|
||||
InsertAll("", downscaledVF)
|
||||
Reference in New Issue
Block a user