コード例 #1
0
        public MapPointerForm()
        {
            InitializeComponent();

            PListSplitsExpandsExplainLabel.Text = ExplainPlistSplitExpands();

            FilterComboBox.BeginUpdate();
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.CONFIG));
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.OBJECT) + "," + TypeToName(PLIST_TYPE.PALETTE));
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.ANIMATION) + "," + TypeToName(PLIST_TYPE.ANIMATION2));
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.MAP));
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.CHANGE));
            FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.EVENT));
            if (Program.ROM.RomInfo.version == 6)
            {
                FilterComboBox.Items.Add(TypeToName(PLIST_TYPE.WORLDMAP_FE6ONLY));
            }
            FilterComboBox.EndUpdate();

            this.InputFormRef = Init(this, IsPlistSplits());
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止
            if (IsPlistSplits())
            {
                PListSplitsExpandsPanel.Hide();
                FilterComboBox.Show();
                FilterComboBox.SelectedIndex = 0;
            }
            else
            {
                PListSplitsExpandsPanel.Show();
                FilterComboBox.Hide();
                this.InputFormRef.ReInitPointer(GetBasePointer(PLIST_TYPE.UNKNOWN));
            }
        }
コード例 #2
0
        private void PListSplitsExpandsButton_Click(object sender, EventArgs e)
        {
            bool r = PListSplitsExpands();

            if (!r)
            {
                return;
            }

            Debug.Assert(IsPlistSplits() == true);

            this.InputFormRef = Init(this, true);
            PListSplitsExpandsPanel.Hide();
            FilterComboBox.Show();
            FilterComboBox.SelectedIndex = 0;
        }