private void AddressList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Comment.Text == "")
            {
                Comment.Text = GetNameDefaultName((uint)AddressList.SelectedIndex);
            }

            if (AddressList.SelectedIndex <= 0)
            {
                AnimationPanel.Hide();
                AnimationImportButton.Hide();
                AnimationExportButton.Hide();
                NOTIFY_KeepEmpty.Show();
                return;
            }
            NOTIFY_KeepEmpty.Hide();
            AnimationImportButton.Show();

            uint addr = U.toOffset((uint)P0.Value);

            if (U.isSafetyOffset(addr))
            {
                AnimationPanel.Show();
                AnimationExportButton.Show();
                ShowFrameUpDown.Value = 0;
                ShowFrameUpDown_ValueChanged(null, null);
            }
            else
            {
                AnimationPanel.Hide();
                AnimationExportButton.Hide();
            }
        }
Exemplo n.º 2
0
        private void AddressList_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.SKILLICON.Image = DrawIcon((uint)AddressList.SelectedIndex, this.IconBaseAddress);

            uint anime = this.AnimeBaseAddress + (4 * (uint)AddressList.SelectedIndex);
            uint a     = Program.ROM.p32(anime);

            ANIMATION.Value = a;
            if (U.isSafetyOffset(a))
            {
                AnimationPanel.Show();
                AnimationExportButton.Show();
                ShowFrameUpDown.Value = 0;
                ShowFrameUpDown_ValueChanged(null, null);
            }
            else
            {
                AnimationPanel.Hide();
                AnimationExportButton.Hide();
            }
        }