mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
TGUI APCs TGUI vending machines Fix AI default_tgui_interaction TGUI Airlocks Station & Atmospheric Alert TGUI + Misc NTOS-TGUI Fixes TGUI Air Alarms & Central Atmospheric Control Airlock TGUI TG... got rid of UI for fire alarm. í´· TGUI Gas Heating/Cooling System TGUI Gas Pump & Passive Gate + Fixes TGUI Omni Atmospherics TGUI Pipe Dispensers & RPD TGUI IntelliCore & Vending Fix TGUI Handheld Tanks TGUI Portable Pump & Scrubber TGUI Tank Dispenser & Canisters TGUI Radios TGUI SMES & Air Alarm adjustment Tweak vending machine interfaces a tad TGUI Algae Farm TGUI general_air_control - Distro & Waste Console - Riot Control Console - Atmos Intake Console - Engine Cooling Console TGUI Heavy Scrubber Control (and body scanner fix) TGUI trinary devices & shutoff monitor TGUI Telecomms Log Browser TGUI Telecomms Machine Browser TGUI Spaceheater Internal Panel TGUI Gravity Generator TGUI Id Cards & Fix ID Card Images TGUI Id Card Redesign TGUI Turbolift TGUI Suit Cycler & Suit Storage Unit & Vending Fixes TGUI Power Monitor TGUI Signalers TGUI Employment Records TGUI Drone Console TGUI RIGSuits TGUI PA & PACMAN, and Margin Fix TGUI Solar Panels & Fix Power Monitor Adjust TGUI modules & their interaction with NTOS TGUI RCON TGUI Message Monitor Bump TGUI line limit to 120 (ParadiseSS13/Paradise#14002) TGUI Exonet & NTNet Relay TGUI Telecomms Multitool Menu TGUI Shield Capacitor & Shield Generator TGUI Supermatter-everything & Refactors
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
// RCON REMOTE CONTROL CONSOLE
|
|
//
|
|
// Last Change 1.1.2015 by Atlantis
|
|
//
|
|
// Allows remote operation of electrical systems on station (SMESs and Breaker Boxes)
|
|
|
|
/obj/machinery/computer/rcon
|
|
name = "\improper RCON console"
|
|
desc = "Console used to remotely control electrical machinery on the station."
|
|
icon_keyboard = "power_key"
|
|
icon_screen = "ai-fixer"
|
|
light_color = "#a97faa"
|
|
circuit = /obj/item/weapon/circuitboard/rcon_console
|
|
req_one_access = list(access_engine)
|
|
var/current_tag = null
|
|
var/datum/tgui_module/rcon/rcon
|
|
|
|
/obj/machinery/computer/rcon/New()
|
|
..()
|
|
rcon = new(src)
|
|
|
|
/obj/machinery/computer/rcon/Destroy()
|
|
qdel(rcon)
|
|
rcon = null
|
|
..()
|
|
|
|
// Proc: attack_hand()
|
|
// Parameters: 1 (user - Person which clicked this computer)
|
|
// Description: Opens UI of this machine.
|
|
/obj/machinery/computer/rcon/attack_hand(var/mob/user as mob)
|
|
..()
|
|
tgui_interact(user)
|
|
|
|
// Proc: ui_interact()
|
|
// Description: Uses dark magic (TGUI) to render this machine's UI
|
|
/obj/machinery/computer/rcon/tgui_interact(mob/user, datum/tgui/ui)
|
|
rcon.tgui_interact(user, ui)
|
|
|
|
/obj/machinery/computer/rcon/update_icon()
|
|
..()
|
|
if(!(stat & (NOPOWER|BROKEN)))
|
|
add_overlay("ai-fixer-empty")
|
|
else
|
|
cut_overlay("ai-fixer-empty")
|