public virtual void OnUpdate(float delta) { if (closeButton != null) { closeButton.Visible = Closable; } if (Input.WasMousePressed() && IsMouseOver()) { Clicked?.Invoke(); } textPresentersFeeder.Update(); }
public override void Update(float delta) { base.Update(delta); if (closeButton != null) { closeButton.Visible = Closable; } if (Input.WasMousePressed() && IsMouseOver()) { Clicked?.Invoke(); } textPresentersFeeder.Update(); }
public override void Update(float delta) { base.Update(delta); if (GloballyVisible) { stateHandler.MoveNext(); textPresentersFeeder.Update(); } if (!EnableMask.All() && !isDisabledState) { SetState(DisabledState()); } #if WIN || MAC if (Enabled) { if (Input.ConsumeKeyPress(Key.Space) || Input.ConsumeKeyPress(Key.Enter)) { Clicked?.Invoke(); } } #endif }