Skip to main content

get_flash_color

Function get_flash_color 

fn get_flash_color(
    state: ClientState,
    original_console_color: Option<CONSOLE_CHARACTER_ATTRIBUTES>,
    disabled_console_color: CONSOLE_CHARACTER_ATTRIBUTES,
) -> Option<CONSOLE_CHARACTER_ATTRIBUTES>
Expand description

Resolve the underlying state color, with the highlight overlay bypassed, for the action-feedback flash.

§Arguments

  • state - The just-applied ClientState.
  • original_console_color - Console color captured at startup.
  • disabled_console_color - Color applied while the client is ClientState::Disabled.

§Returns

The color to paint, or None when original_console_color is None.