private void updateColour(bool joined) { if (joined) { name.FadeColour(Color4.White, transition_duration); joinedCheckmark.FadeTo(1f, transition_duration); topic.FadeTo(0.8f, transition_duration); topic.FadeColour(Color4.White, transition_duration); FadeColour(joinedColour, transition_duration); } else { joinedCheckmark.FadeTo(0f, transition_duration); topic.FadeTo(1f, transition_duration); topic.FadeColour(topicColour, transition_duration); FadeColour(Color4.White, transition_duration); } }
private void Bindable_ValueChanged(RulesetInfo obj) { icon.FadeTo(Ruleset.ID == obj?.ID ? 1f : 0.5f, 100); }
private void Bindable_ValueChanged(DirectOverlay.PanelDisplayStyle style) { icon.FadeTo(style == this.style ? 1.0f : 0.5f, 100); }