mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
New button sprites (#10820)
This commit is contained in:
@@ -405,7 +405,7 @@
|
||||
name = "crematorium igniter"
|
||||
desc = "Burn baby burn!"
|
||||
icon = 'icons/obj/power.dmi'
|
||||
icon_state = "crema_switch"
|
||||
icon_state = "light0"
|
||||
req_access = list(access_crematorium)
|
||||
id = 1
|
||||
var/cremate_dir // something for mappers, setting will make a crematorium in one step in this direction toggle
|
||||
@@ -414,6 +414,7 @@
|
||||
return
|
||||
|
||||
/obj/machinery/button/crematorium/attack_hand(mob/user)
|
||||
playsound(src, /decl/sound_category/switch_sound, 30)
|
||||
if(!allowed(user))
|
||||
to_chat(user, SPAN_WARNING("Access denied."))
|
||||
return
|
||||
@@ -433,4 +434,4 @@
|
||||
for(var/thing in crematoriums)
|
||||
var/obj/structure/crematorium/C = thing
|
||||
if(!C.cremating)
|
||||
C.cremate(user)
|
||||
C.cremate(user)
|
||||
|
||||
@@ -529,20 +529,18 @@
|
||||
/obj/structure/window/reinforced/crescent/shatter()
|
||||
return
|
||||
|
||||
/obj/machinery/button/windowtint
|
||||
/obj/machinery/button/switch/windowtint
|
||||
name = "window tint control"
|
||||
icon = 'icons/obj/power.dmi'
|
||||
icon_state = "light0"
|
||||
desc = "A remote control switch for polarized windows."
|
||||
var/range = 16
|
||||
|
||||
/obj/machinery/button/windowtint/attack_hand(mob/user as mob)
|
||||
/obj/machinery/button/switch/windowtint/attack_hand(mob/user as mob)
|
||||
if(..())
|
||||
return 1
|
||||
|
||||
toggle_tint()
|
||||
|
||||
/obj/machinery/button/windowtint/proc/toggle_tint()
|
||||
/obj/machinery/button/switch/windowtint/proc/toggle_tint()
|
||||
use_power(5)
|
||||
|
||||
active = !active
|
||||
@@ -554,10 +552,10 @@
|
||||
W.toggle()
|
||||
return
|
||||
|
||||
/obj/machinery/button/windowtint/power_change()
|
||||
/obj/machinery/button/switch/windowtint/power_change()
|
||||
..()
|
||||
if(active && !powered(power_channel))
|
||||
toggle_tint()
|
||||
|
||||
/obj/machinery/button/windowtint/update_icon()
|
||||
/obj/machinery/button/switch/windowtint/update_icon()
|
||||
icon_state = "light[active]"
|
||||
|
||||
Reference in New Issue
Block a user