예제 #1
0
        void InitUI()
        {
            if (MapPointerForm.IsPlistSplits())
            {
                PLISTExtendsButton.Enabled = false;
                AlreadyExtendsLabel.Show();
            }
            else if (MapPointerForm.IsExtendsPlist())
            {
                PLISTExtendsButton.Enabled = false;
                AlreadyExtendsLabel.Show();
            }
            else
            {
                PLISTExtendsButton.Enabled = true;
                AlreadyExtendsLabel.Hide();
            }

            uint max = MapPointerForm.GetDataCount(MapPointerForm.PLIST_TYPE.UNKNOWN) - 1;

            OBJ1numericUpDown.Maximum = max;
            OBJ1numericUpDown_ValueChanged(null, null);
            OBJ2numericUpDown.Maximum = max;
            OBJ2numericUpDown_ValueChanged(null, null);
            PALnumericUpDown.Maximum = max;
            PALnumericUpDown_ValueChanged(null, null);
            CONFIGnumericUpDown.Maximum = max;
            CONFIGnumericUpDown_ValueChanged(null, null);
            ANIME1numericUpDown.Maximum = max;
            ANIME1numericUpDown_ValueChanged(null, null);
            ANIME2numericUpDown.Maximum = max;
            ANIME2numericUpDown_ValueChanged(null, null);
        }
        void InitUI()
        {
            if (MapPointerForm.IsPlistSplits())
            {
                PLISTExtendsButton.Enabled = false;
                AlreadyExtendsLabel.Show();
                PLIST_EXPLAIN.Hide();
            }
            else if (MapPointerForm.IsExtendsPlist())
            {
                PLISTExtendsButton.Enabled = false;
                AlreadyExtendsLabel.Show();
                PLIST_EXPLAIN.Show();
            }
            else
            {
                PLISTExtendsButton.Enabled = true;
                AlreadyExtendsLabel.Hide();
                PLIST_EXPLAIN.Show();
            }

            Debug.Assert(SearchType != MapPointerForm.PLIST_TYPE.UNKNOWN);
            uint max = MapPointerForm.GetDataCount(this.SearchType) - 1;

            PLISTnumericUpDown.Maximum = max;

            PLISTnumericUpDown_ValueChanged(null, null);
        }