示例#1
0
 public override void leftClickHeld(int x, int y)
 {
     if (this.greyedOut)
     {
         return;
     }
     base.leftClickHeld(x, y);
     this.value = ((x >= this.bounds.X) ? ((x <= this.bounds.Right - 10 * Game1.pixelZoom) ? ((int)((double)((float)(x - this.bounds.X) / (float)(this.bounds.Width - 10 * Game1.pixelZoom)) * (double)this.sliderMaxValue)) : this.sliderMaxValue) : 0);
     if (this.whichOption == 0)
     {
         MapModMain.config.heartLevelMin = this.value;
     }
     else if (this.whichOption == 1)
     {
         MapModMain.config.heartLevelMax = this.value;
     }
     ConfigExtensions.WriteConfig <Configuration>(MapModMain.config);
 }
示例#2
0
 public override void receiveLeftClick(int x, int y)
 {
     if (!isActive)
     {
         if (whichOption < 4)
         {
             Game1.playSound("drumkit6");
             base.receiveLeftClick(x, y);
             this.isActive  = true;
             this.greyedOut = false;
             MapModMain.config.nameTooltipMode = whichOption;
         }
         else if (whichOption > 3)
         {
             Game1.playSound("drumkit6");
             base.receiveLeftClick(x, y);
             this.isActive  = true;
             this.greyedOut = false;
             MapModMain.config.immersionLevel = whichOption - 3;
         }
     }
     ConfigExtensions.WriteConfig <Configuration>(MapModMain.config);
 }
示例#3
0
        public override void receiveLeftClick(int x, int y)
        {
            if (this.greyedOut)
            {
                return;
            }
            Game1.soundBank.PlayCue("drumkit6");
            base.receiveLeftClick(x, y);
            this.isChecked = !this.isChecked;
            int whichOption = this.whichOption;

            switch (whichOption)
            {
            case 7:
                MapModMain.config.showAbigail = this.isChecked;
                break;

            case 8:
                MapModMain.config.showAlex = this.isChecked;
                break;

            case 9:
                MapModMain.config.showCaroline = this.isChecked;
                break;

            case 10:
                MapModMain.config.showClint = this.isChecked;
                break;

            case 11:
                MapModMain.config.showDemetrius = this.isChecked;
                break;

            case 12:
                MapModMain.config.showElliott = this.isChecked;
                break;

            case 13:
                MapModMain.config.showEmily = this.isChecked;
                break;

            case 14:
                MapModMain.config.showEvelyn = this.isChecked;
                break;

            case 15:
                MapModMain.config.showGeorge = this.isChecked;
                break;

            case 16:
                MapModMain.config.showGus = this.isChecked;
                break;

            case 17:
                MapModMain.config.showHaley = this.isChecked;
                break;

            case 18:
                MapModMain.config.showHarvey = this.isChecked;
                break;

            case 19:
                MapModMain.config.showJas = this.isChecked;
                break;

            case 20:
                MapModMain.config.showJodi = this.isChecked;
                break;

            case 21:
                MapModMain.config.showKent = this.isChecked;
                break;

            case 22:
                MapModMain.config.showLeah = this.isChecked;
                break;

            case 23:
                MapModMain.config.showLewis = this.isChecked;
                break;

            case 24:
                MapModMain.config.showLinus = this.isChecked;
                break;

            case 25:
                MapModMain.config.showMarnie = this.isChecked;
                break;

            case 26:
                MapModMain.config.showMaru = this.isChecked;
                break;

            case 27:
                MapModMain.config.showPam = this.isChecked;
                break;

            case 28:
                MapModMain.config.showPenny = this.isChecked;
                break;

            case 29:
                MapModMain.config.showPierre = this.isChecked;
                break;

            case 30:
                MapModMain.config.showRobin = this.isChecked;
                break;

            case 31:
                MapModMain.config.showSam = this.isChecked;
                break;

            case 32:
                MapModMain.config.showSebastian = this.isChecked;
                break;

            case 33:
                MapModMain.config.showShane = this.isChecked;
                break;

            case 34:
                MapModMain.config.showVincent = this.isChecked;
                break;

            case 35:
                MapModMain.config.showWilly = this.isChecked;
                break;

            case 36:
                MapModMain.config.onlySameLocation = this.isChecked;
                break;

            case 37:
                MapModMain.config.showSandy = this.isChecked;
                break;

            case 38:
                MapModMain.config.showWizard = this.isChecked;
                break;

            case 39:
                MapModMain.config.showMarlon = this.isChecked;
                break;

            case 40:
                MapModMain.config.showTravelingMerchant = this.isChecked;
                break;

            case 41:
                MapModMain.config.byHeartLevel = this.isChecked;
                break;

            case 42:
                MapModMain.config.markQuests = this.isChecked;
                break;

            case 43:
                MapModMain.config.showCustomNPC1 = this.isChecked;
                break;

            case 44:
                MapModMain.config.showCustomNPC2 = this.isChecked;
                break;

            case 45:
                MapModMain.config.showCustomNPC3 = this.isChecked;
                break;

            case 46:
                MapModMain.config.showCustomNPC4 = this.isChecked;
                break;

            case 47:
                MapModMain.config.showCustomNPC5 = this.isChecked;
                break;

            default:
                break;
            }
            ConfigExtensions.WriteConfig <Configuration>(MapModMain.config);
        }