mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
curtain
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user