mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Mapping previews tool for mapper's mapping needs (#96872)
## About The Pull Request
Makes more machinery using MAP_SWITCHes so their fancy preview icons
could be displayed in SDMM. MAP_SWITCH takes original icon+icon_state of
machinery as first argument and icon+icon_state (basically a machinery
part because the naming system, like `MAP_SWITCH("computer",
"/obj/machinery/computer/slot_machine")` ) from
icons/obj/fluff/map_previews.dmi
Adds a tool (subsystem) for that need that generates preview icons for
stuff that has overlays. To include them in preview generating you have
to set specific variable to TRUE.
## Why It's Good For The Game
Lets us do this instead of black boring consoles:
(before)
<img width="641" height="575" alt="image"
src="https://github.com/user-attachments/assets/35fc5a19-bc24-4c02-957a-43ddef86e684"
/>
(after)
<img width="641" height="575" alt="image"
src="https://github.com/user-attachments/assets/99310823-747f-4e0a-acf8-60abcc8f2ed1"
/>
## Changelog
🆑
qol: Made machinery with overlays actually be properly displayed in SDMM
editor.
/🆑
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
name = "quantum console"
|
||||
|
||||
circuit = /obj/item/circuitboard/computer/quantum_console
|
||||
icon_state = MAP_SWITCH("computer", "/obj/machinery/computer/quantum_console")
|
||||
icon_keyboard = "mining"
|
||||
icon_screen = "bitrunning"
|
||||
req_access = list(ACCESS_MINING)
|
||||
/// The server this console is connected to.
|
||||
var/datum/weakref/server_ref
|
||||
keyboard_change_icon = FALSE
|
||||
|
||||
/obj/machinery/computer/quantum_console/Initialize(mapload, obj/item/circuitboard/circuit)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user