/tg/ Station 13 - Modules - TypesVar Details - Proc Details

parallax

Vars

random_layerA random parallax layer that we sent to every player
random_parallax_weightsWeighted list with the parallax layers we could spawn

Procs

get_parallax_colorReturn the most dominant color, if we have a colored background (mostly nebula gas)
post_station_setupCalled at the end of SSstation setup, in-case we want to run some code that would otherwise be too early to run (like GLOB. stuff)
set_random_parallax_layerGenerate a random layer for parallax
swap_out_random_parallax_layerChange the random parallax layer after it's already been set. update_player_huds = TRUE will also replace them in the players client images, if it was set

Var Details

random_layer

A random parallax layer that we sent to every player

random_parallax_weights

Weighted list with the parallax layers we could spawn

Proc Details

get_parallax_color

Return the most dominant color, if we have a colored background (mostly nebula gas)

post_station_setup

Called at the end of SSstation setup, in-case we want to run some code that would otherwise be too early to run (like GLOB. stuff)

set_random_parallax_layer

Generate a random layer for parallax

swap_out_random_parallax_layer

Change the random parallax layer after it's already been set. update_player_huds = TRUE will also replace them in the players client images, if it was set