Flux libraryclient
Part of Color Modify
Summary
Functions
Turns the local player's color modification effect on or off.
disable_color_mod()client
Turns the local player's color modification effect off.
Sets one value of the local player's color modification table.
set_color_mod_table(tab)client
Replaces the local player's whole color modification table.
Functions
Turns the local player's color modification effect on or off. Gives the player the default color modification table if they have none yet.
Parameters
- enable Boolean whether the effect should be drawn
Returns
- Boolean true when enabling, nil when disabling
Turns the local player's color modification effect off.
See also
Sets one value of the local player's color modification table. The '$pp_colour_' prefix may be left out and 'color' is accepted in place of 'color'.
Flux.set_color_mod('contrast', 1.2)
Flux.set_color_mod('$pp_colour_addr', 0.1)
Parameters
- index String DrawColorModify key, with or without the '$pp_colour_' prefix; anything that is not a string is ignored
- value Number new value; anything that is not a number is stored as 0
Replaces the local player's whole color modification table. Does nothing if tab is not a table.
Parameters
- tab Map '$pp_colour_*' keys and their values, as accepted by DrawColorModify