mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Refactors screen objects to /atom/movable (#24068)
* introduce helper + remove unused proc * we love compatibility * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/alert.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/martial_arts/martial.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mining/lavaland/loot/tendril_loot.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/living_update_status.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/mecha/mecha.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * deconflict --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -44,7 +44,7 @@ SUBSYSTEM_DEF(debugview)
|
||||
C.debug_text_overlay.maptext = "<span class='maptext' style='background-color: #272727;'>[out_text]</span>"
|
||||
|
||||
/datum/controller/subsystem/debugview/proc/start_processing(client/C)
|
||||
C.debug_text_overlay = new /obj/screen/debugtextholder(null, C)
|
||||
C.debug_text_overlay = new /atom/movable/screen/debugtextholder(null, C)
|
||||
C.screen |= C.debug_text_overlay
|
||||
processing |= C
|
||||
|
||||
@@ -53,7 +53,7 @@ SUBSYSTEM_DEF(debugview)
|
||||
C.screen -= C.debug_text_overlay
|
||||
QDEL_NULL(C.debug_text_overlay)
|
||||
|
||||
/obj/screen/debugtextholder
|
||||
/atom/movable/screen/debugtextholder
|
||||
icon = 'icons/mob/screen_full.dmi'
|
||||
icon_state = "empty"
|
||||
screen_loc = "TOP,LEFT"
|
||||
@@ -61,11 +61,11 @@ SUBSYSTEM_DEF(debugview)
|
||||
maptext_height = 480 // 15 * 32 (15 tiles, 32 pixels each)
|
||||
maptext_width = 480 // changes with prefs
|
||||
|
||||
/obj/screen/debugtextholder/Initialize(mapload, client/C)
|
||||
/atom/movable/screen/debugtextholder/Initialize(mapload, client/C)
|
||||
. = ..()
|
||||
update_view(C)
|
||||
|
||||
/obj/screen/debugtextholder/proc/update_view(client/C)
|
||||
/atom/movable/screen/debugtextholder/proc/update_view(client/C)
|
||||
var/list/viewsizes = getviewsize(C.view)
|
||||
maptext_width = viewsizes[1] * world.icon_size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user