public ImageMapActionAnimationForm()
        {
            InitializeComponent();

            uint AnimeP = FindAnimationPointer();

            if (AnimeP == U.NOT_FOUND)
            {
                return;
            }
            uint animeBaseAddress = Program.ROM.p32(AnimeP);

            this.AddressList.OwnerDraw(DrawMapAttackAnimationAndText, DrawMode.OwnerDrawFixed);
            InputFormRef = Init(this, AnimeP);
            this.InputFormRef.MakeGeneralAddressListContextMenu(false);
            this.InputFormRef.CheckProtectionPaddingALIGN4 = false;

            ShowZoomComboBox.SelectedIndex = 0;
            U.SetIcon(AnimationImportButton, Properties.Resources.icon_upload);
            U.SetIcon(AnimationExportButton, Properties.Resources.icon_arrow);

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    AnimationImportButton_Click(null, null);
                }
            });
        }
示例#2
0
        public ImagePortraitFE6Form()
        {
            InitializeComponent();
            this.InputFormRef = Init(this);
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.AddressList.OwnerDraw(ListBoxEx.DrawImagePortraitAndText, DrawMode.OwnerDrawFixed);

            D0.ValueChanged  += AddressList_SelectedIndexChanged;
            D4.ValueChanged  += AddressList_SelectedIndexChanged;
            D8.ValueChanged  += AddressList_SelectedIndexChanged;
            B12.ValueChanged += AddressList_SelectedIndexChanged;
            B13.ValueChanged += AddressList_SelectedIndexChanged;

            //パレット変更の部分にリンクを置く.
            InputFormRef.markupJumpLabel(this.J_8);

            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#3
0
        public ImageItemIconForm()
        {
            InitializeComponent();

            this.AddressList.OwnerDraw(ListBoxEx.DrawImageItemIconAndText, DrawMode.OwnerDrawFixed);
            this.X_ICON_REF_ITEM.OwnerDraw(ListBoxEx.DrawItemAndText, DrawMode.OwnerDrawFixed);
            this.X_ICON_REF_ITEM.ItemListToJumpForm("ITEM");

            if (Program.ROM.p32(Program.ROM.RomInfo.icon_pointer()) == Program.ROM.RomInfo.icon_orignal_address())
            {
                this.ItemIconListExpandsButton.Enabled = true;
            }
            else
            {
                this.ItemIconListExpandsButton.Enabled = false;
            }

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);

            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#4
0
        public SongTrackForm()
        {
            InitializeComponent();

            this.TrackListBoxs = new ListBox[] { Track1, Track2, Track3, Track4, Track5, Track6, Track7, Track8, Track9, Track10, Track11, Track12, Track13, Track14, Track15, Track16 };
            this.TrackLabels   = new Label[] { TrackLabel1, TrackLabel2, TrackLabel3, TrackLabel4, TrackLabel5, TrackLabel6, TrackLabel7, TrackLabel8, TrackLabel9, TrackLabel10, TrackLabel11, TrackLabel12, TrackLabel13, TrackLabel14, TrackLabel15, TrackLabel16 };

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.IsMemoryNotContinuous  = true; //メモリは連続していないので警告不可能
            this.InputFormRef.UseWriteProtectionID00 = true; //ID:0x00を書き込み禁止

            for (int i = 0; i < this.TrackLabels.Length; i++)
            {
                this.TrackLabels[i].Click += TrackLabel_Click;
            }
            InputFormRef.markupJumpLabel(this.AllTracksLabel);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(SONGPLAY, Properties.Resources.icon_music);

            U.AllowDropFilename(this, new string[] { ".S", ".MID", ".MIDI", ".WAV", ".INSTRUMENT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
        public MapTileAnimation2Form()
        {
            InitializeComponent();

            List <U.AddrResult> animeList = MakeTileAnimation2();

            U.ConvertComboBox(animeList, ref FilterComboBox);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);

            this.N_InputFormRef = N_Init(this);
            this.N_InputFormRef.PostAddressListExpandsEvent += N_AddressListExpandsEvent;
            this.N_AddressList.OwnerDraw(ListBoxEx.DrawColorAndText, DrawMode.OwnerDrawFixed);
            this.N_InputFormRef.MakeGeneralAddressListContextMenu(true);

            U.SetIcon(ExportAllButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportAllButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportAllButton_Click(null, null);
                }
            });
        }
示例#6
0
        public ImageRomAnimeForm()
        {
            InitializeComponent();
#if DEBUG
            ImageRomAnimeForm.PreLoadResource();
#endif

            this.AddressList.BeginUpdate();
            this.AddressList.Items.Clear();
            foreach (var pair in g_ROMAnime)
            {
                string name = U.ToHexString(pair.Key) + " " + U.at(pair.Value, 6);
                this.AddressList.Items.Add(name);
            }
            this.AddressList.EndUpdate();
            U.SelectedIndexSafety(this.AddressList, 0, true);
            U.SetIcon(AnimeExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(AnimeImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    AnimeImportButton_Click(null, null);
                }
            });
        }
示例#7
0
        public MapTileAnimation1Form()
        {
            InitializeComponent();
            SamplePaletteComboBox.SelectedIndex = 0;

            List <U.AddrResult> animeList = MakeTileAnimation1();

            U.ConvertComboBox(animeList, ref FilterComboBox);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            U.SetIcon(ExportAllButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportAllButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportAllButton_Click(null, null);
                }
            });
        }
示例#8
0
        public ImageUnitMoveIconFrom()
        {
            InitializeComponent();
            this.AddressList.OwnerDraw(ListBoxEx.DrawImageUnitMoveIconAndText, DrawMode.OwnerDrawFixed);

            this.X_PALETTE.SelectedIndex = 0;
            this.InputFormRef            = Init(this);
            this.InputFormRef.PreAddressListExpandsEvent += OnPreClassExtendsWarningHandler;
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportAPButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportAPButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
            U.AllowDropFilename(this, new string[] { ".BIN" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportAPButton_Click(null, null);
                }
            });
        }
示例#9
0
        public ImageTSAAnimeForm()
        {
            InitializeComponent();
#if DEBUG
            ImageTSAAnimeForm.PreLoadResource();
#endif

            this.InputFormRef = Init(this);

            this.TSAANimeList.BeginUpdate();
            this.TSAANimeList.Items.Clear();
            foreach (var pair in g_TSAAnime)
            {
                string name = U.ToHexString(pair.Key) + " " + U.at(pair.Value, 1);
                this.TSAANimeList.Items.Add(name);
            }
            this.TSAANimeList.EndUpdate();
            U.SelectedIndexSafety(this.TSAANimeList, 0, true);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#10
0
        private void MapStyleEditorForm_Load(object sender, EventArgs e)
        {
            IsInit = true;

            //マップIDリストを作る.
            List <U.AddrResult> maplist = MapSettingForm.MakeMapIDList();

            //マップスタイルリストを作る
            this.MapEditConf = MapEditorForm.MakeMapStyleList(maplist);
            //マップスタイルリストを作る
            MakeMapStyleCombo();

            U.SelectedIndexSafety(this.MapStyle, 0);

            List <U.AddrResult> terrainList = MapTerrainNameForm.MakeList();

            U.ConvertComboBox(terrainList, ref this.ConfigTerrain);

            //マップオブジェクト
            this.MAP.SetChipSize(8);
            Bitmap black = ImageUtil.BlankDummy();

            U.MakeTransparent(black);
            this.MAP.SetDefaultIcon(black);

            //パレット
            this.PFR = new PaletteFormRef(this);
            PFR.MakePaletteUI(OnChangeColor, GetSampleBitmap);
            U.SelectedIndexSafety(this.PaletteCombo, 0);

            //TSA変更のイベント適応.
            List <Control> controls = InputFormRef.GetAllControls(this);

            InputFormRef.MakeLinkEvent("Config_", controls);


            //最大化禁止
            //C#のバグである Anchorを四隅にすると、スクロールバーが消えるというバグに対処するために、
            //フォームを固定化しないとおかしなことになる。
            //クレームは microsoft あたりまでどうぞ.
            this.MaximizeBox = false;
            IsInit           = false;

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ObjImportButton_Click(null, null);
                }
            });
            U.AllowDropFilename(this, new string[] { ".MAPCHIP_CONFIG" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    MapChipImportButton_Click(null, null);
                }
            });
        }
示例#11
0
        public SkillConfigFE8NVer2SkillForm()
        {
            InitializeComponent();

            uint[] pointer = FindSkillFE8NVer2IconPointers();
            if (pointer == null)
            {
                R.ShowStopError("スキル拡張 FE8Nver2 のポインタを取得できませんでした");
                return;
            }
            if (pointer.Length < 5)
            {
                R.ShowStopError("スキル拡張 FE8Nver2 のポインタが所定の数だけありません。\r\n{0}個必要ですが、{1}個しかありません。", 5, pointer.Length);
                return;
            }
            this.BasePointer = pointer;
            if (pointer.Length > 5)
            {
                this.AnimeBaseAddress = Program.ROM.p32(pointer[5]);
            }

            InitAnime();

            N1_InputFormRef = N1_Init(this);
            N1_InputFormRef.AddressListExpandsEvent += AddressListExpandsEvent_N1;
            N1_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N1_AddressList.OwnerDraw(ListBoxEx.DrawUnitAndText, DrawMode.OwnerDrawFixed);

            N2_InputFormRef = N2_Init(this);
            N2_InputFormRef.AddressListExpandsEvent += AddressListExpandsEvent_N2;
            N2_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N2_AddressList.OwnerDraw(ListBoxEx.DrawClassAndText, DrawMode.OwnerDrawFixed);

            N3_InputFormRef = N3_Init(this);
            N3_InputFormRef.AddressListExpandsEvent += AddressListExpandsEvent_N3;
            N3_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N3_AddressList.OwnerDraw(ListBoxEx.DrawItemAndText, DrawMode.OwnerDrawFixed);

            this.InputFormRef = Init(this, pointer[4]);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.AddressList.OwnerDraw(DrawSkillAndText, DrawMode.OwnerDrawFixed);


            MainTab.SelectedIndex = 1;
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(AnimationInportButton, Properties.Resources.icon_upload);
            U.SetIcon(AnimationExportButton, Properties.Resources.icon_arrow);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#12
0
        public SkillConfigSkillSystemForm()
        {
            InitializeComponent();

            uint iconP  = FindIconPointer();
            uint textP  = FindTextPointer();
            uint animeP = FindAnimePointer();

            if (iconP == U.NOT_FOUND)
            {
                R.ShowStopError("スキル拡張 SkillSystem の、アイコンを取得できません。");
                return;
            }
            if (textP == U.NOT_FOUND)
            {
                R.ShowStopError("スキル拡張 SkillSystem の、テキストを取得できません。");
                return;
            }
            if (animeP == U.NOT_FOUND)
            {
                R.ShowStopError("スキル拡張 SkillSystem の、アニメを取得できません。");
                return;
            }
            this.TextBaseAddress  = Program.ROM.p32(textP);
            this.IconBaseAddress  = Program.ROM.p32(iconP);
            this.AnimeBaseAddress = Program.ROM.p32(animeP);

            this.AddressList.OwnerDraw(DrawSkillAndText, DrawMode.OwnerDrawFixed);
            InputFormRef = Init(this, textP);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.CheckProtectionPaddingALIGN4 = false;

            ShowZoomComboBox.SelectedIndex = 0;
            U.SetIcon(AnimationInportButton, Properties.Resources.icon_upload);
            U.SetIcon(AnimationExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ExportAllButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportAllButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    AnimationImportButton_Click(null, null);
                }
            });
        }
        private void ImageUnitPaletteForm_Load(object sender, EventArgs e)
        {
            this.CurrntControls = InputFormRef.GetAllControls(this);
            InputFormRef.makeJumpEventHandler(this.X_BATTLEANIME, this.X_BATTLEANIME_LABEL, "BATTLEANIME", new string[] { "MINUS1" });
            InputFormRef.makeLinkEventHandler("X_", this.CurrntControls, this.X_BATTLEANIME, this.X_BATTLEANIME_INFO, 0, "BATTLEANIME", new string[] { });

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
        public ImageBattleAnimeForm()
        {
            InitializeComponent();

            MakeComboBattleAnimeSP(L_1_BATTLEANIMESP_0);

            InputFormRef.markupJumpLabel(LinkInternt);

            InputFormRef.LoadComboResource(ShowSectionCombo, U.ConfigDataFilename("battleanime_mode_"));
            U.SelectedIndexSafety(ShowSectionCombo, 0);
            U.SelectedIndexSafety(ShowDirectionComboBox, 0);
            U.SelectedIndexSafety(ShowZoomComboBox, 0);
            U.SelectedIndexSafety(ShowPaletteComboBox, 0);

//            X_LZ77_INFO.ForeColor = OptionForm.Color_InputDecimal_ForeColor();
//            X_LZ77_INFO.BackColor = OptionForm.Color_InputDecimal_BackColor();

            this.CLASS_LISTBOX.OwnerDraw(ListBoxEx.DrawClassAndText, DrawMode.OwnerDrawFixed);
            this.CLASS_LISTBOX.ItemListToJumpForm("CLASS");
            U.ConvertListBox(ClassForm.MakeClassList(), ref this.CLASS_LISTBOX);


            this.AddressList.OwnerDraw(ListBoxEx.DrawImageSPTypeAndText, DrawMode.OwnerDrawFixed);
            this.N_AddressList.OwnerDraw(ListBoxEx.DrawImageBattleAndText, DrawMode.OwnerDrawFixed);

            this.InputFormRef   = Init(this);
            this.N_InputFormRef = N_Init(this);

            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N_InputFormRef.MakeGeneralAddressListContextMenu(true);

            this.InputFormRef.AddressListExpandsEvent += AddressListExpandsEvent;
            U.SelectedIndexSafety(this.CLASS_LISTBOX, 1, false);

            //パレット変更の部分にリンクを置く.
            InputFormRef.markupJumpLabel(this.N_J_28);

            U.SetIcon(BattleAnimeImportButton, Properties.Resources.icon_upload);
            U.SetIcon(BattleAnimeExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(X_N_JumpEditor, Properties.Resources.icon_film);

            U.AllowDropFilename(this, new string[] { ".TXT", ".BIN" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    this.BattleAnimeImportButton_Click(null, null);
                }
            });
        }
示例#15
0
        public OPPrologueForm()
        {
            InitializeComponent();
            this.InputFormRef = Init(this);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#16
0
        public EDStaffRollForm()
        {
            InitializeComponent();

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#17
0
        public ImageBattleBGForm()
        {
            InitializeComponent();
            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#18
0
        public ImagePalletForm()
        {
            InitializeComponent();
            this.PaletteZoomComboBox.SelectedIndex = 0;
            PaletteFormRef.MakePaletteUI(this, OnChangeColor, GetSampleBitmap);

            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#19
0
        //アニメを利用できない場合は消す. かならず Initの前に呼ぶ
        void InitAnime()
        {
            if (!U.isSafetyOffset(g_AnimeBaseAddress))
            {
                //アニメを設定できないので消す.
                MainTab.TabPages.Remove(tabAnimePage);
                return;
            }

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    AnimationImportButton_Click(null, null);
                }
            });
        }
示例#20
0
        public ImageBattleAnimePalletForm()
        {
            InitializeComponent();
            this.PaletteZoomComboBox.SelectedIndex  = 0;
            this.PaletteIndexComboBox.SelectedIndex = 0;
            this.Is32ColorMode = false;
            this.PFR           = new PaletteFormRef(this);
            PFR.MakePaletteUI(OnChangeColor, GetSampleBitmap);
            SetExpain();

            U.AllowDropFilename(this, new string[] { ".PNG" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    this.ImportButton_Click(null, null);
                }
            });
        }
示例#21
0
        public FontForm()
        {
            InitializeComponent();
            this.ZoomComboBox.SelectedIndex = 2;
            this.FontType.SelectedIndex     = 0;
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            UseFontNameTextEdit.Text            = UseFontNameTextEdit.Font.FontFamily.ToString();
            AutoGenbutton.AccessibleDescription = R._("ROMに存在しいフォントをPCに存在するフォントから自動的に作成します。\r\nまとめて複数のフォントを一気に作りたい場合は、ROM翻訳ツールから作ることをお勧めします。");

            if (Program.ROM.RomInfo.is_multibyte())
            {
                OptionForm.textencoding_enum textencoding = OptionForm.textencoding();
                if (textencoding == OptionForm.textencoding_enum.ZH_TBL)
                {
                    Debug.Assert(false);
                }
                else if (textencoding == OptionForm.textencoding_enum.EN_TBL)
                {
                    this.FontSample.Text = "AB@cd"; ///No Translate
                    this.SearchChar.Text = "X";     ///No Translate
                }
                else
                {
                    this.FontSample.Text = "あい@うえお"; ///No Translate
                    this.SearchChar.Text = "剣";      ///No Translate
                }
            }
            else
            {
                this.FontSample.Text = "AB@cd"; ///No Translate
                this.SearchChar.Text = "X";     ///No Translate
            }

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#22
0
        public OPClassFontForm()
        {
            InitializeComponent();

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.AddressList.OwnerDraw(ListBoxEx.DrawOPClassFontAndText, DrawMode.OwnerDrawFixed);

            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#23
0
        public ImageUnitWaitIconFrom()
        {
            InitializeComponent();
            this.AddressList.OwnerDraw(ListBoxEx.DrawImageUnitWaitIconAndText, DrawMode.OwnerDrawFixed);

            this.X_PALETTE.SelectedIndex = 0;
            this.InputFormRef            = Init(this);
            this.InputFormRef.AddressListExpandsEvent += AddressListExpandsUpdateBaristaAnimationAddress;
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);

            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
        private void ImageMagicForm_Load(object sender, EventArgs e)
        {
            if (ImageUtilMagic.SearchMagicSystem() != ImageUtilMagic.magic_system_enum.FEDITOR_ADV)
            {
                this.Close();
            }
            uint csaSpellTable = ImageUtilMagic.GetCSASpellTableAddr();

            if (csaSpellTable == U.NOT_FOUND)
            {
                this.MagicListExpandsButton.PerformClick();
            }

            U.AllowDropFilename(this, new string[] { ".TXT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    MagicAnimeImportButton_Click(null, null);
                }
            });
        }
示例#25
0
        public ImageBGForm()
        {
            InitializeComponent();

            this.AddressList.ItemHeight = ICON_HEGITH;
            this.AddressList.OwnerDraw(ListBoxEx.DrawBGAndText, DrawMode.OwnerDrawFixed);
            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);

            this.X_REF.ItemHeight = (int)(this.X_REF.Font.Height * 2.4);
            this.X_REF.OwnerDraw(InputFormRef.DrawRefTextList, DrawMode.OwnerDrawFixed, false);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#26
0
        SolidBrush ListBoxForeKeywordBrush; //キーワードのブラシ

        public SongTrackForm()
        {
            InitializeComponent();
            fixDocsBugs = new U.FixDocsBugs(this);

            this.TrackListBoxs = new ListBoxEx[] { Track1, Track2, Track3, Track4, Track5, Track6, Track7, Track8, Track9, Track10, Track11, Track12, Track13, Track14, Track15, Track16 };
            this.TrackLabels   = new Label[] { TrackLabel1, TrackLabel2, TrackLabel3, TrackLabel4, TrackLabel5, TrackLabel6, TrackLabel7, TrackLabel8, TrackLabel9, TrackLabel10, TrackLabel11, TrackLabel12, TrackLabel13, TrackLabel14, TrackLabel15, TrackLabel16 };

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.InputFormRef.IsMemoryNotContinuous        = true;  //メモリは連続していないので警告不可能
            this.InputFormRef.UseWriteProtectionID00       = true;  //ID:0x00を書き込み禁止
            this.InputFormRef.CheckProtectionPaddingALIGN4 = false; //ALIGN 4である必要はない.

            this.ListBoxForeKeywordBrush = new SolidBrush(OptionForm.Color_Keyword_ForeColor());
            this.ListBoxForeBrush        = new SolidBrush(OptionForm.Color_Control_ForeColor());
            for (int i = 0; i < this.TrackLabels.Length; i++)
            {
                this.TrackLabels[i].Click += TrackLabel_Click;
                this.TrackListBoxs[i].OwnerDraw(DrawTrack, DrawMode.OwnerDrawFixed, false);
                this.TrackListBoxs[i].ItemHeight = 12;
            }
            InputFormRef.markupJumpLabel(this.AllTracksLabel);
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(SONGPLAY, Properties.Resources.icon_music);

            InputFormRef.markupJumpLabel(LinkInternt);

            U.AllowDropFilename(this, new string[] { ".S", ".MID", ".MIDI", ".WAV", ".INSTRUMENT" }, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }
示例#27
0
        public SkillConfigFE8NVer3SkillForm()
        {
            InitializeComponent();

            uint[] pointer = FindSkillFE8NVer3IconPointers();
            if (pointer == null)
            {
                R.ShowStopError("スキル拡張 FE8Nver2 のポインタを取得できませんでした");
                return;
            }
            if (pointer.Length < 5)
            {
                R.ShowStopError("スキル拡張 FE8Nver2 のポインタが所定の数だけありません。\r\n{0}個必要ですが、{1}個しかありません。", 5, pointer.Length);
                return;
            }
            Debug.Assert(g_SkillBaseAddress != 0);

            InitAnime();

            N1_InputFormRef = N1_Init(this);
            N1_InputFormRef.PostAddressListExpandsEvent += AddressListExpandsEvent_N1;
            N1_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N1_AddressList.OwnerDraw(ListBoxEx.DrawUnitAndText, DrawMode.OwnerDrawFixed);

            N2_InputFormRef = N2_Init(this);
            N2_InputFormRef.PostAddressListExpandsEvent += AddressListExpandsEvent_N2;
            N2_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N2_AddressList.OwnerDraw(ListBoxEx.DrawClassAndText, DrawMode.OwnerDrawFixed);

            N3_InputFormRef = N3_Init(this);
            N3_InputFormRef.PostAddressListExpandsEvent += AddressListExpandsEvent_N3;
            N3_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N3_AddressList.OwnerDraw(ListBoxEx.DrawItemAndText, DrawMode.OwnerDrawFixed);

            N4_InputFormRef = N4_Init(this);
            N4_InputFormRef.PostAddressListExpandsEvent += AddressListExpandsEvent_N4;
            N4_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N4_AddressList.OwnerDraw(ListBoxEx.DrawItemAndText, DrawMode.OwnerDrawFixed);

            N5_InputFormRef = N5_Init(this);
            N5_InputFormRef.PostAddressListExpandsEvent += AddressListExpandsEvent_N5;
            N5_InputFormRef.MakeGeneralAddressListContextMenu(true);
            this.N4_AddressList.OwnerDraw(ListBoxEx.DrawSkillAndText, DrawMode.OwnerDrawFixed);

            this.InputFormRef = Init(this);
            this.InputFormRef.MakeGeneralAddressListContextMenu(false);
            this.AddressList.OwnerDraw(DrawSkillAndText, DrawMode.OwnerDrawFixed);

            MainTab.SelectedIndex = 1;
            U.SetIcon(ImportButton, Properties.Resources.icon_upload);
            U.SetIcon(ExportButton, Properties.Resources.icon_arrow);
            U.SetIcon(AnimationInportButton, Properties.Resources.icon_upload);
            U.SetIcon(AnimationExportButton, Properties.Resources.icon_arrow);
            InputFormRef.markupJumpLabel(X_JUMP_TO_COMBAT_ART);

            U.AllowDropFilename(this, ImageFormRef.IMAGE_FILE_FILTER, (string filename) =>
            {
                using (ImageFormRef.AutoDrag ad = new ImageFormRef.AutoDrag(filename))
                {
                    ImportButton_Click(null, null);
                }
            });
        }