mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #28142 from Tacolizard/parallax
Adds another parallax layer
This commit is contained in:
6
code/_onclick/hud/parallax.dm
Normal file → Executable file
6
code/_onclick/hud/parallax.dm
Normal file → Executable file
@@ -21,6 +21,7 @@
|
|||||||
C.parallax_layers_cached = list()
|
C.parallax_layers_cached = list()
|
||||||
C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_1(null, C.view)
|
C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_1(null, C.view)
|
||||||
C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_2(null, C.view)
|
C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_2(null, C.view)
|
||||||
|
C.parallax_layers_cached += new /obj/screen/parallax_layer/layer_3(null, C.view)
|
||||||
|
|
||||||
C.parallax_layers = C.parallax_layers_cached.Copy()
|
C.parallax_layers = C.parallax_layers_cached.Copy()
|
||||||
|
|
||||||
@@ -278,6 +279,11 @@
|
|||||||
speed = 1
|
speed = 1
|
||||||
layer = 2
|
layer = 2
|
||||||
|
|
||||||
|
/obj/screen/parallax_layer/layer_3
|
||||||
|
icon_state = "layer3"
|
||||||
|
speed = 1.4
|
||||||
|
layer = 3
|
||||||
|
|
||||||
#undef LOOP_NONE
|
#undef LOOP_NONE
|
||||||
#undef LOOP_NORMAL
|
#undef LOOP_NORMAL
|
||||||
#undef LOOP_REVERSE
|
#undef LOOP_REVERSE
|
||||||
|
|||||||
BIN
icons/effects/parallax.dmi
Normal file → Executable file
BIN
icons/effects/parallax.dmi
Normal file → Executable file
Binary file not shown.
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 150 KiB |
Reference in New Issue
Block a user