protected override bool OnHover(HoverEvent e) { this.TransformTo <MuteButton, SRGBColour>("BorderColour", hoveredColour, 500, Easing.OutQuint); return(false); }
protected override bool OnHover(HoverEvent e) => true;
protected override bool OnHover(HoverEvent e) { text.BoldText.FadeIn(TransitionLength, Easing.OutQuint); text.NormalText.FadeOut(TransitionLength, Easing.OutQuint); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { // restore our screen defaults InitializeBackgroundElements(); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { updateState(); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { Highlighted.Value = true; return(false); }
protected override bool OnHover(HoverEvent e) { hoverBox.FadeIn(125); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { this.ScaleTo(1.2f, 100); return(true); }
protected override bool OnHover(HoverEvent e) { hover.FadeTo(0.05f, transition_duration, Easing.OutQuint); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { return(false); }
protected override bool OnHover(HoverEvent e) { selectedSubsection.Value = this; return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { HoverReceived = true; colourBox.FadeColour(Color4.DarkSlateBlue, 200); return(true); }
protected override bool OnHover(HoverEvent e) { updateButtonVisibility(); return base.OnHover(e); }
protected override bool OnHover(HoverEvent e) { EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint)); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { background.FadeTo(0.5f, 300, Easing.OutQuint); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { this.ResizeHeightTo(progress_height, 500, Easing.OutQuint); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { hoverBackground.FadeIn(200); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { base.OnHover(e); updateState(); return(Active.Value); }
protected override bool OnHover(HoverEvent e) { updateHighlighted(); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { background.FadeIn(fade_duration, Easing.OutQuint); return(base.OnHover(e)); }
public virtual Dictionary <string, object> ToSerializable() { Dictionary <string, object> chatComponent = new Dictionary <string, object>(); // Determine which flags to add if (Reset) { chatComponent.Add("bold", false); chatComponent.Add("italic", false); chatComponent.Add("underlined", false); chatComponent.Add("strikethrough", false); chatComponent.Add("obfuscated", false); } else if (Style != default) { // Calculate which styles to apply based on the style flags if ((Style & ChatComponentStyle.Bold) == ChatComponentStyle.Bold) { chatComponent.Add("bold", true); } if ((Style & ChatComponentStyle.Italic) == ChatComponentStyle.Italic) { chatComponent.Add("italic", true); } if ((Style & ChatComponentStyle.Underlined) == ChatComponentStyle.Underlined) { chatComponent.Add("underlined", true); } if ((Style & ChatComponentStyle.Strikethrough) == ChatComponentStyle.Strikethrough) { chatComponent.Add("strikethrough", true); } if ((Style & ChatComponentStyle.Obfuscated) == ChatComponentStyle.Obfuscated) { chatComponent.Add("obfuscated", true); } } if (Color != default) { chatComponent.Add("color", Color); } if (Insertion != default) { chatComponent.Add("insertion", Insertion); } // Events if (ClickEvent != null) { chatComponent.Add("clickEvent", ClickEvent.ToSerializable()); } if (HoverEvent != null) { chatComponent.Add("hoverEvent", HoverEvent.ToSerializable()); } // Extend the component with more components if (Extra.Count > 0) { List <object> extras = new List <object>(); // Prepare all sub-components foreach (ChatComponent extra in Extra) { extras.Add(extra.ToSerializable()); } chatComponent.Add("extra", extras); } return(chatComponent); }
protected override bool OnHover(HoverEvent e) { ActivateHover?.Invoke(); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { updateState(); return(true); }
protected override bool OnHover(HoverEvent e) { this.FadeColour(hoverColour, 100); return(true); }
protected override bool OnHover(HoverEvent e) { onHoverAction?.Invoke(); return(base.OnHover(e)); }
protected override bool OnHover(HoverEvent e) { fadeContainer.FadeTo(1f, 100, Easing.Out); return(false); }
protected override bool OnHover(HoverEvent e) { schedulePopOut(); return(true); }
protected override bool OnHover(HoverEvent e) { background.FadeTo(0.4f, 250, Easing.OutQuint); return(false); }
protected override bool OnHover(HoverEvent e) { HoverGained?.Invoke(); return(true); }
protected override bool OnHover(HoverEvent e) { Background.FadeTo(0.4f, 200); return(base.OnHover(e)); }