Merge pull request #28142 from Tacolizard/parallax

Adds another parallax layer
This commit is contained in:
Leo
2017-06-07 16:17:57 -03:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

6
code/_onclick/hud/parallax.dm Normal file → Executable file
View 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 150 KiB