Пример #1
0
        private void PaletteEditorButton_Click(object sender, EventArgs e)
        {
            if (this.DrawBimap == null)
            {
                return;
            }
            ImagePalletForm f = (ImagePalletForm)InputFormRef.JumpForm <ImagePalletForm>(U.NOT_FOUND);

            int usePaletteNumber = (int)U.atoi(USE_PALETTE_NUMBER.Text);

            if (usePaletteNumber <= 0)
            {
                usePaletteNumber = 1;
            }

            if (usePaletteNumber >= 16)
            {
                f.JumpTo(this.DrawBimap, (uint)(this.PALETTE.Value + (this.PALETTENO.Value * 0x20)), 16);
            }
            else
            {
                f.JumpTo(this.DrawBimap, (uint)(this.PALETTE.Value + (this.PALETTENO.Value * 0x20)), 1);
            }
            f.FormClosed += (s, ee) =>
            {
                if (this.IsDisposed)
                {
                    return;
                }
                Image_ValueChanged(sender, e);
            };
        }
Пример #2
0
        void OpenPaletteEditor(Bitmap baseBitmap, uint addr)
        {
            ImagePalletForm f = (ImagePalletForm)InputFormRef.JumpForm <ImagePalletForm>(U.NOT_FOUND);

            f.JumpTo(baseBitmap, addr, 1);
            f.FormClosed += (s, ee) =>
            {
                if (this.IsDisposed)
                {
                    return;
                }
            };
        }
Пример #3
0
        private void J_8_Click(object sender, EventArgs e)
        {
            ImagePalletForm f = (ImagePalletForm)InputFormRef.JumpForm <ImagePalletForm>(U.NOT_FOUND);

            Bitmap baseBitmap = ImagePortraitForm.DrawPortraitUnit((uint)this.AddressList.SelectedIndex);

            f.JumpTo(baseBitmap, (uint)D8.Value, 1);
            f.FormClosed += (s, ee) =>
            {
                if (this.IsDisposed)
                {
                    return;
                }
                U.ReSelectList(this.AddressList);
            };
        }