This commit is contained in:
Mickyan
2020-04-05 01:57:22 +02:00
parent ee81158ee1
commit bb348295df
2 changed files with 14 additions and 2 deletions
+14 -2
View File
@@ -416,9 +416,11 @@
alpha = 200 //Mappers can also just set this to 255 if they want curtains that can't be seen through
layer = SIGN_LAYER
anchored = TRUE
opacity = 0
opacity = FALSE
density = FALSE
var/open = TRUE
/// if it can be seen through when closed
var/opaque_closed = FALSE
/obj/structure/curtain/proc/toggle()
open = !open
@@ -430,12 +432,14 @@
layer = WALL_OBJ_LAYER
density = TRUE
open = FALSE
if(opaque_closed)
opacity = TRUE
else
icon_state = "[icon_type]-open"
layer = SIGN_LAYER
density = FALSE
open = TRUE
opacity = FALSE
/obj/structure/curtain/attackby(obj/item/W, mob/user)
if (istype(W, /obj/item/toy/crayon))
@@ -490,3 +494,11 @@
icon_state = "bounty-open"
color = null
alpha = 255
opaque_closed = TRUE
/obj/structure/curtain/fancy
icon_type = "cur_fancy"
icon_state = "cur_fancy-open"
color = null
alpha = 255
opaque_closed = TRUE