private void OnInputListnerChanged(int index, SButton value)
 {
     if (index == 0)
     {
         ModEntry.Conf.ButtonShowMenu = value;
     }
     else if (index == 1)
     {
         ModEntry.Conf.ButtonToggleBlackList = value;
     }
     _mod.WriteConfig();
     _isListening = false;
     _listener    = null;
 }
Exemple #2
0
        private void OnSomewhereClicked(int index, Point point)
        {
            _isListeningClick = false;
            _clickListener    = null;
            switch (index)
            {
            case 0:
                ModEntry.Conf.ProbBoxX = point.X;
                ModEntry.Conf.ProbBoxY = point.Y;
                break;

            default: return;
            }
            _mod.WriteConfig();
        }