Example #1
0
 public virtual void OnUpdate(float delta)
 {
     if (closeButton != null)
     {
         closeButton.Visible = Closable;
     }
     if (Input.WasMousePressed() && IsMouseOver())
     {
         Clicked?.Invoke();
     }
     textPresentersFeeder.Update();
 }
Example #2
0
 public override void Update(float delta)
 {
     base.Update(delta);
     if (closeButton != null)
     {
         closeButton.Visible = Closable;
     }
     if (Input.WasMousePressed() && IsMouseOver())
     {
         Clicked?.Invoke();
     }
     textPresentersFeeder.Update();
 }
Example #3
0
        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
        }