glow
Vars | |
base_eye_state | base icon state for eye overlays |
---|---|
eye_color_mode | Whether or not to match the eye color to the light or use a custom selection |
left_eye_color_string | The custom selected eye color for the left eye. Defaults to the mob's natural eye color |
light_color_string | The selected color for the light beam itself |
right_eye_color_string | The custom selected eye color for the right eye. Defaults to the mob's natural eye color |
Procs | |
activate | Activates the light |
deactivate | Deactivates the light |
on_mob_insert | Set the initial color of the eyes on insert to be the mob's previous eye color. |
randomize_color | Randomizes the light color |
set_beam_color | Setter function for the light's color |
set_beam_range | Setter function for the light's range |
toggle_active | Toggle the attached flashlight object on or off |
toggle_eye_color_mode | Toggles for the eye color mode |
update_mob_eye_color | Updates the mob eye color |
Var Details
base_eye_state
base icon state for eye overlays
eye_color_mode
Whether or not to match the eye color to the light or use a custom selection
left_eye_color_string
The custom selected eye color for the left eye. Defaults to the mob's natural eye color
light_color_string
The selected color for the light beam itself
right_eye_color_string
The custom selected eye color for the right eye. Defaults to the mob's natural eye color
Proc Details
activate
Activates the light
Turns on the attached flashlight object, updates the mob overlay to be added.
deactivate
Deactivates the light
Turns off the attached flashlight object, closes UIs, updates the mob overlay to be removed. Arguments:
- mob/living/carbon/eye_owner - the mob who the eyes belong to
- close_ui - whether or not to close the ui
on_mob_insert
Set the initial color of the eyes on insert to be the mob's previous eye color.
randomize_color
Randomizes the light color
Picks a random color and sets the beam color to that Arguments:
- to_update - whether we are setting the color for the light beam itself, or the individual eyes
set_beam_color
Setter function for the light's color
Sets the light color of the attached flashlight object. Sets the eye color vars of this eye organ as well and then updates the mob's eye color. Arguments:
- newcolor - the new color hex string to set
- to_update - whether we are setting the color for the light beam itself, or the individual eyes
- sanitize - whether the hex string should be sanitized
set_beam_range
Setter function for the light's range
Sets the light range of the attached flashlight object Includes some 'unique' logic to accomodate for some quirks of the lighting system Arguments:
- new_range - the new range to set
toggle_active
Toggle the attached flashlight object on or off
toggle_eye_color_mode
Toggles for the eye color mode
Toggles the eye color mode on or off and then calls an update on the mob's eye color
update_mob_eye_color
Updates the mob eye color
Updates the eye color to reflect on the mob's body if it's possible to do so Arguments:
- mob/living/carbon/eye_owner - the mob to update the eye color appearance of