Beispiel #1
0
        public override void Update()
        {
            var m = IM.MousePos;
            var mpos = new Vector2(m.X, m.Y);

            foreach (var o in options)
            {
                if (o.Intersects(mpos))
                {
                    if (RM.IsPressed(InputAction.Accept) || RM.IsPressed(InputAction.Select))
                    {
                        o.Action();
                    }
                    selected = o;
                }
            }

            if (needsUpdate)
            {
                CreateControls();
                needsUpdate = false;

            }

            if (RM.IsPressed(InputAction.Back))
            {
                g.Showscreen(previous);
            }
        }
Beispiel #2
0
        public override void Update()
        {
            var m = IM.MousePos;
            var mpos = new Vector2(m.X, m.Y);

            foreach (var o in options)
            {
                if (o.Intersects(mpos))
                {
                    if (RM.IsPressed(InputAction.Accept) || RM.IsPressed(InputAction.Select))
                    {
                        o.Action();
                    }
                    selected = o;
                }
            }
        }