Esempio n. 1
0
 private void UpdateBallThrowTypeUnlocked(object sender, EventArgs e)
 {
     if (Loading)
     {
         return;
     }
     for (int i = 0; i < 2; i++)
     {
         if (!LB_BallThrowTypeUnlocked.GetSelected(i))
         {
             LB_BallThrowTypeUnlocked.SetSelected(i, true);
         }
     }
 }
Esempio n. 2
0
        private void SaveThrowType()
        {
            if (CB_BallThrowType.SelectedIndex >= 0)
            {
                SAV.BallThrowType = CB_BallThrowType.SelectedIndex;
            }

            const int unlockStart  = 292;
            const int learnedStart = 3479;

            for (int i = 2; i < BattleStyles.Length; i++)
            {
                SAV.SetEventFlag(unlockStart + i, LB_BallThrowTypeUnlocked.GetSelected(i));
            }
            for (int i = 1; i < BattleStyles.Length; i++)
            {
                SAV.SetEventFlag(learnedStart + i, LB_BallThrowTypeLearned.GetSelected(i));
            }
        }
Esempio n. 3
0
        private void SaveThrowType()
        {
            if (CB_BallThrowType.SelectedIndex >= 0)
            {
                SAV.BallThrowType = CB_BallThrowType.SelectedIndex;
            }

            if (!SAV.SM) // unlock flags are in flag editor instead
            {
                return;
            }

            const int unlockStart  = 292;
            const int learnedStart = 3479;

            for (int i = 2; i < BattleStyles.Count; i++)
            {
                SAV.SetEventFlag(unlockStart + i, LB_BallThrowTypeUnlocked.GetSelected(i));
            }
            for (int i = 1; i < BattleStyles.Count; i++)
            {
                SAV.SetEventFlag(learnedStart + i, LB_BallThrowTypeLearned.GetSelected(i));
            }
        }