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.Fire)) { o.Action(); } selected = o; } } if (needsUpdate) { CreateControls(); needsUpdate = false; } if (RM.IsPressed(InputAction.Back)) { g.Showscreen(previous); } }
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.Fire)) { o.Action(); } selected = o; } } }