public void change_color(UI_OverloadBarColor foreground, UI_OverloadBarColor background) { actual_level = 0f; update_cells(); foreground_color = foreground; background_color = background; }
public void change_color(UI_OverloadBarColor color) { if (is_blocked) { return; } this.color = color; force_color = null; }
public void fill(UI_OverloadBarColor color) { if (this.color == color) { return; } this.color = color; fade_delay = ANIMATION_DURATION; }
public void light_out(UI_OverloadBarColor color) { if (!IsLighten || (light_out_timeout >= -99f && current_color == color)) { return; } current_color = color; image.color = color.strong; light_out_timeout = LIGHT_OUT_DURATION / 3f; light_on_timeout = -100f; show(); }
public void light_on(UI_OverloadBarColor color) { if (IsLighten && current_color == color) { return; } current_color = color; image.color = color.weak; light_on_timeout = LIGHT_ON_DURATION / 3f; light_out_timeout = -100f; show(); }
private void hide() { current_color = null; IsLighten = false; image.color = new Color(1f, 1f, 1f, 0f); }