Пример #1
0
        void OnMP(Vector2 pos, MouseButton button)
        {
            Point  p   = new Point((int)pos.X, (int)pos.Y);
            string gps = menuPresets.GetSelection(p.X, p.Y);

            if (gps != null)
            {
                foreach (var gp in gPresets)
                {
                    if (gp.Name.Equals(gps))
                    {
                        SetWidgetData(gp);
                        return;
                    }
                }
            }
        }