Example #1
0
        private void handleSingleClicks()
        {
            Point pos = InputManager.LastMouseClick.Key.Position;

            if (InputManager.IsLeftClick())
            {
                if (button_back.Hovered(pos))
                {
                    button_back.OnClick();
                }

                if (button_save.Hovered(pos))
                {
                    button_save.OnClick(this);
                }

                foreach (SettingsGroup settingsGroup in Groups)
                {
                    if (settingsGroup.Hovered(pos))
                    {
                        settingsGroup.OnClick(pos, false);
                    }
                }
            }
        }