private void MainFE7Form_Load(object sender, EventArgs e) { this.ToolTip = InputFormRef.GetToolTip <MainFE7Form>(); this.PatchMainFilter = new PatchMainFilter(this.PatchButton, this.PatchResult, new Button[] { this.Patch0, this.Patch1, this.Patch2, this.Patch3, this.Patch4, this.Patch5, this.Patch6, this.Patch7 }); this.Filter.Focus(); }
private void EventUnitFE7Form_Load(object sender, EventArgs e) { X_Tooltip = InputFormRef.GetToolTip <EventUnitFE7Form>(); this.EVENTUNIT_BEFORE_COORD.SetToolTipEx(this.X_Tooltip); this.EVENTUNIT_AFTER_COORD.SetToolTipEx(this.X_Tooltip); MapPictureBox.SetDefaultIcon(ImageSystemIconForm.Blank16()); }
private void RAMUnitStateFlagForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <RAMUnitStateFlagForm>(); InputFormRef.LoadCheckboxesResource("ramunit_state_checkbox_", controls, X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); }
private void UnitFormFE6_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <UnitFE6Form>(); InputFormRef.LoadCheckboxesResource(U.ConfigDataFilename("unitclass_checkbox_"), controls, tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); }
private void UnitForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <UnitForm>(); InputFormRef.LoadCheckboxesResource(U.ConfigDataFilename("unitclass_checkbox_"), controls, X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); if (Program.ROM.RomInfo.version() == 8) {//FE8の場合 //スキル X_SkillType = PatchUtil.SearchSkillSystem(); if (X_SkillType == PatchUtil.skill_system_enum.SkillSystem || X_SkillType == PatchUtil.skill_system_enum.FE8N_ver2 ) { InputFormRef.markupJumpLabel(this.X_UNITSKILL); this.X_UNITSKILL.Show(); this.X_SkillButtons = new Button[] { X_SKILL_BUTTON1, X_SKILL_BUTTON2, X_SKILL_BUTTON3, X_SKILL_BUTTON4, X_SKILL_BUTTON5, X_SKILL_BUTTON6, X_SKILL_BUTTON7, X_SKILL_BUTTON8, X_SKILL_BUTTON9 }; for (int i = 0; i < this.X_SkillButtons.Length; i++) { this.X_SkillButtons[i].Click += X_UNITSKILL_Button_Click; } } //魔法分離パッチ MagicSplitUtil.magic_split_enum magic_split = MagicSplitUtil.SearchMagicSplit(); if (magic_split == MagicSplitUtil.magic_split_enum.FE8NMAGIC) { InitFE8NMagicExtends(controls); } } }
private void ItemForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <ItemForm>(); InputFormRef.LoadCheckboxesResource(U.ConfigDataFilename("item_checkbox_"), controls, tooltip, "", "L_8_BIT_", "L_9_BIT_", "L_10_BIT_", "L_11_BIT_"); }
public static int MakeClassSkillButtons(uint cid, Button[] buttons, ToolTipEx tooltip) { uint[] pointer = FindSkillFE8NVer2IconPointers(); if (pointer == null) { return(0); } if (pointer.Length < 5) { return(0); } InputFormRef InputFormRef = Init(null); InputFormRef N2_InputFormRef = N2_Init(null); int skillCount = 0; List <U.AddrResult> list = InputFormRef.MakeList(); for (int i = 1; i < list.Count; i++) { uint classAddr = Program.ROM.p32(list[i].addr + 8); if (!U.isSafetyOffset(classAddr)) { continue; } bool found = false; N2_InputFormRef.ReInit(classAddr); List <U.AddrResult> classList = N2_InputFormRef.MakeList(); for (int n = 0; n < classList.Count; n++) { uint classID = Program.ROM.u8(classList[n].addr); if (cid == classID) { found = true; break; } } if (!found) { continue; } uint textid = Program.ROM.u16(list[i].addr + 0); buttons[skillCount].BackgroundImage = DrawSkillIconLow((uint)i); buttons[skillCount].Tag = (uint)i; tooltip.SetToolTip(buttons[skillCount], TextForm.Direct(textid)); skillCount++; if (skillCount >= buttons.Length) { break; } } return(skillCount); }
private void AITargetForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); X_Tooltip = InputFormRef.GetToolTip <AIMapSettingForm>(); InputFormRef.LoadCheckboxesResource("ai_map_setting_checkbox_" , controls, X_Tooltip, "" , "L_0_BIT_", "L_1_BIT_", "L_2_BIT_", "L_3_BIT_"); }
public void Init(ToolTipEx toolTip, KeyEventHandler parentFormKeydownfunc) { this.ToolTip = toolTip; for (int i = 0; i < 2; i++) { ScriptEditSetTables[i].ParamValue.SetToolTipEx(this.ToolTip); } InputFormRef.MakeEditListboxContextMenuN(this.Script, this.Script_KeyDown, parentFormKeydownfunc, useTemplate: false); }
private void EventScriptFormCategorySelectForm_Load(object sender, EventArgs e) { this.EscapeList = new List <TextEscape>(); string[] lines = File.ReadAllLines(U.ConfigDataFilename("text_escape_")); for (int i = 0; i < lines.Length; i++) { string line = lines[i]; if (U.IsComment(line) || U.OtherLangLine(line)) { continue; } line = U.ClipComment(line); if (line == "") { continue; } string[] sp = line.Split('\t'); if (sp.Length < 3) { continue; } TextEscape te = new TextEscape(); te.Code = sp[0]; te.Info = sp[1]; te.Category = sp[2]; if (!IsDetail) {//詳細テキストじゃないと、移動とロードを出さない. if (IsDetailOnly(te.Category)) { continue; } } this.EscapeList.Add(te); } this.CategoryDic = U.LoadTSVResourcePair((U.ConfigDataFilename("text_category_"))); this.CategoryListBox.BeginUpdate(); this.CategoryListBox.Items.Clear(); foreach (var pair in CategoryDic) { if (!IsDetail) {//詳細テキストじゃないと、移動とロードを出さない. if (IsDetailOnly(pair.Value)) { continue; } } this.CategoryListBox.Items.Add(pair.Key); } this.CategoryListBox.EndUpdate(); CategoryListBox.SelectedIndex = 0; this.ToolTip = InputFormRef.GetToolTip <TextScriptFormCategorySelectForm>(); }
private void ItemFE6Form_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <ItemFE6Form>(); InputFormRef.LoadCheckboxesResource("item_checkbox_", controls, tooltip, "", "L_8_BIT_", "L_9_BIT_", "L_10_BIT_", "L_11_BIT_"); this.AddressList.Focus(); }
private void ProcsScriptForm_Load(object sender, EventArgs e) { this.ToolTip = InputFormRef.GetToolTip <ProcsScriptForm>(); this.MaximizeBox = true; this.MainTab.NewTabEvent += (s, ee) => { JumpTo(0x0); }; }
private void DecompileResult_Load(object sender, EventArgs e) { this.ToolTip = InputFormRef.GetToolTip <DisASMForm>(); //最大化を許可する. this.MaximizeBox = true; this.MainTab.NewTabEvent += (s, ee) => { JumpTo(0x0, 0x0); }; }
private void ClassForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); this.X_Tooltip = InputFormRef.GetToolTip <ClassForm>(); InputFormRef.LoadCheckboxesResource("unitclass_checkbox_", controls, this.X_Tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); if (Program.ROM.RomInfo.version == 8) {//FE8の場合、分岐CCへ InputFormRef.markupJumpLabel(this.J_5); //スキル this.X_SkillType = PatchUtil.SearchSkillSystem(); if (this.X_SkillType == PatchUtil.skill_system_enum.SkillSystem || this.X_SkillType == PatchUtil.skill_system_enum.FE8N_ver2 || this.X_SkillType == PatchUtil.skill_system_enum.FE8N_ver3 ) { InputFormRef.markupJumpLabel(this.X_CLASSSKILL); this.X_CLASSSKILL.Show(); this.X_SkillButtons = new Button[] { X_SKILL_BUTTON1, X_SKILL_BUTTON2, X_SKILL_BUTTON3, X_SKILL_BUTTON4, X_SKILL_BUTTON5, X_SKILL_BUTTON6, X_SKILL_BUTTON7, X_SKILL_BUTTON8, X_SKILL_BUTTON9 }; for (int i = 0; i < this.X_SkillButtons.Length; i++) { this.X_SkillButtons[i].Click += X_CLASSSKILL_Button_Click; } } } //魔法分離パッチ MagicSplitUtil.magic_split_enum magic_split = MagicSplitUtil.SearchMagicSplit(); if (magic_split == MagicSplitUtil.magic_split_enum.FE8NMAGIC) { InitFE8NMagicExtends(controls); } else if (magic_split == MagicSplitUtil.magic_split_enum.FE7UMAGIC || magic_split == MagicSplitUtil.magic_split_enum.FE8UMAGIC) { InitFE7UMagicExtends(controls); } //クラス拡張を表示するかどうか if (ClassForm.IsShowClassExetdns(this.AddressList)) { AddressListExpandsButton_255.Show(); } else { this.AddressList.Height += AddressListExpandsButton_255.Height; AddressListExpandsButton_255.Hide(); } //SkillSystemsによる 特効リワーク InitFE8ClassType(controls); this.AddressList.Focus(); }
private void ToolAnimationCreatorForm_Load(object sender, EventArgs e) { this.ToolTip = InputFormRef.GetToolTip <ToolAnimationCreatorForm>(); //最大化を許可する. this.MaximizeBox = true; this.MainTab.NewTabEvent += (s, ee) => { }; this.ToolAnimationCreatorForm_Resize(null, null); }
public void ApplyFilter(string search, bool isJP, ToolTipEx tooltip) { this.LastSearchWord = search; if (search == "" || this.PatchButton.Visible) { this.PatchLabelName.Hide(); for (int i = 0; i < Buttons.Length; i++) { this.Buttons[i].Hide(); } return; } if (Patchs == null) { Patchs = PatchForm.ScanPatch(); } int foundCount = 0; for (int i = 0; i < this.Patchs.Length; i++) { PatchForm.PatchSt patch = this.Patchs[i]; if (!U.StrStrEx(patch.SearchData, search, isJP)) {//フィルターで消す. continue; } Button b = Buttons[foundCount]; b.Text = patch.Name; string info = U.at(patch.Param, "INFO"); tooltip.SetToolTipOverraide(b, U.nl2br(info)); b.Show(); foundCount++; if (foundCount == 1) {//ボタンがあるならラベルも出す. this.PatchLabelName.Show(); } if (foundCount >= Buttons.Length) { return; } } for (int n = foundCount; n < Buttons.Length; n++) { Button b = Buttons[n]; b.Hide(); } }
private void UnitFormFE7_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <UnitFE7Form>(); InputFormRef.LoadCheckboxesResource(U.ConfigDataFilename("unitclass_checkbox_"), controls, tooltip, "", "L_40_BIT_", "L_41_BIT_", "L_42_BIT_", "L_43_BIT_"); //魔法分離パッチ MagicSplitUtil.magic_split_enum magic_split = MagicSplitUtil.SearchMagicSplit(); if (magic_split == MagicSplitUtil.magic_split_enum.FE7UMAGIC) { InitFE7UMagicExtends(controls); } }
private void DisASMForm_Load(object sender, EventArgs e) { this.ToolTip = InputFormRef.GetToolTip <DisASMForm>(); //最大化を許可する. this.MaximizeBox = true; //キャッシュ作り直してみようかな. //ASMを開くということは、asmapを更新したのかもしれない Program.AsmMapFileAsmCache.ClearCache(); this.MainTab.NewTabEvent += (s, ee) => { JumpTo(0x0); }; }
private void ClassFE6Form_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <ClassFE6Form>(); InputFormRef.LoadCheckboxesResource(U.ConfigDataFilename("unitclass_checkbox_"), controls, tooltip, "", "L_36_BIT_", "L_37_BIT_", "L_38_BIT_", "L_39_BIT_"); if (ClassForm.IsShowClassExetdns(this.AddressList)) { AddressListExpandsButton_255.Show(); } else { this.AddressList.Height += AddressListExpandsButton_255.Height; AddressListExpandsButton_255.Hide(); } }
private void ItemForm_Load(object sender, EventArgs e) { List <Control> controls = InputFormRef.GetAllControls(this); ToolTipEx tooltip = InputFormRef.GetToolTip <ItemForm>(); InputFormRef.LoadCheckboxesResource("item_checkbox_", controls, tooltip, "", "L_8_BIT_", "L_9_BIT_", "L_10_BIT_", "L_11_BIT_"); FE8UItemSkill(); //英語版の魔法分離パッチ MagicSplitUtil.magic_split_enum magic_split = MagicSplitUtil.SearchMagicSplit(); if (magic_split == MagicSplitUtil.magic_split_enum.FE8UMAGIC || magic_split == MagicSplitUtil.magic_split_enum.FE7UMAGIC) { MagicExtUnitBaseLabel.Show(); MagicExtUnitBase.Show(); } VennouWeaponLockArray(controls); this.AddressList.Focus(); }
private void EventScriptFormCategorySelectForm_Load(object sender, EventArgs e) { LoadTextEscapeList(); this.CategoryDic = U.LoadTSVResourcePair((U.ConfigDataFilename("text_category_"))); this.CategoryListBox.BeginUpdate(); this.CategoryListBox.Items.Clear(); foreach (var pair in CategoryDic) { if (!IsDetail) {//詳細テキストじゃないと、移動とロードを出さない. if (IsDetailOnly(pair.Value)) { continue; } } this.CategoryListBox.Items.Add(pair.Key); } this.CategoryListBox.EndUpdate(); CategoryListBox.SelectedIndex = 0; this.ToolTip = InputFormRef.GetToolTip <TextScriptFormCategorySelectForm>(); }
void FE8UPassiveItem(ToolTipEx tooltip) { if (Program.ROM.RomInfo.version() != 8) { return; } if (Program.ROM.RomInfo.is_multibyte()) {//FE8J } else {//FE8U if (PatchUtil.SearchSkillSystem() == PatchUtil.skill_system_enum.SkillSystem) { string hint; L_10_BIT_40.Text = "DoubleWeaponTriangle"; hint = R._("武器の3すくみを2倍にします。"); tooltip.SetToolTip(L_10_BIT_40, hint); L_10_BIT_80.Text = "PassiveBoosts"; hint = R._("もっているだけでStatBoosterで指定した補正値を得られるアイテムになります。"); tooltip.SetToolTip(L_10_BIT_80, hint); } } }
public static void MakeClassSkillButtons(PatchUtil.skill_system_enum skill, uint cid, Button[] buttons, ToolTipEx tooltip) { if (buttons == null) { return; } int skillCount = 0; if (skill == PatchUtil.skill_system_enum.SkillSystem) { skillCount = SkillAssignmentClassSkillSystemForm.MakeClassSkillButtons(cid, buttons, tooltip); } else if (skill == PatchUtil.skill_system_enum.FE8N_ver2) { skillCount = SkillConfigFE8NVer2SkillForm.MakeClassSkillButtons(cid, buttons, tooltip); } else if (skill == PatchUtil.skill_system_enum.FE8N_ver3) { skillCount = SkillConfigFE8NVer3SkillForm.MakeClassSkillButtons(cid, buttons, tooltip); } SkillUtil.ApplyModButton(buttons, skillCount); }
public static int MakeUnitSkillButtons(uint uid, Button[] buttons, ToolTipEx tooltip) { uint unitAddr = UnitForm.GetUnitAddr(uid - 1); if (unitAddr == U.NOT_FOUND) { return(0); } uint b38 = Program.ROM.u8(unitAddr + 38); //自軍 uint b39 = Program.ROM.u8(unitAddr + 39); //友軍 uint b49 = Program.ROM.u8(unitAddr + 49); //敵軍 if (b38 <= 0 && b39 <= 0 && b49 <= 0) {//なし return(0); } uint[] pointer = FindSkillFE8NVer2IconPointers(); if (pointer == null) { return(0); } if (g_SkillBaseAddress == 0) { return(0); } InputFormRef InputFormRef = Init(null); InputFormRef N1_InputFormRef = N1_Init(null); int skillCount = 0; List <U.AddrResult> list = InputFormRef.MakeList(); for (int i = 1; i < list.Count; i++) { if (b38 == i || b39 == i || b49 == i) { uint textid = Program.ROM.u16(list[i].addr + 0); string name = TextForm.Direct(textid); if (b38 == i) { name += "\r\n" + R._("(自軍時のみ)"); } if (b39 == i) { name += "\r\n" + R._("(敵軍時のみ)"); } if (b49 == i) { name += "\r\n" + R._("(友軍時のみ)"); } buttons[skillCount].BackgroundImage = DrawSkillIconLow((uint)i); buttons[skillCount].Tag = (uint)i; tooltip.SetToolTip(buttons[skillCount], name); skillCount++; if (skillCount >= buttons.Length) { break; } } } return(skillCount); }
public static int MakeUnitSkillButtonsList(uint id, Button[] buttons, ToolTipEx tooltip, uint assignLevelUpP, uint icon, uint text, int skillCount) { uint assignLevelUp = Program.ROM.p32(assignLevelUpP); if (!U.isSafetyOffset(assignLevelUp)) { return(skillCount); } uint assignLevelUpAddr = assignLevelUp + (id * 4); if (!U.isSafetyOffset(assignLevelUpAddr)) { return(skillCount); } uint levelupList = Program.ROM.p32(assignLevelUpAddr); if (!U.isSafetyOffset(levelupList)) { return(skillCount); } //レベルアップで覚えるスキル. Dictionary <uint, string> skillNames = new Dictionary <uint, string>(); InputFormRef N1_InputFormRef = N1_Init(null, skillNames); N1_InputFormRef.ReInit(levelupList); List <U.AddrResult> levelupSkillList = N1_InputFormRef.MakeList(); for (int i = 0; i < levelupSkillList.Count; i++) { uint levelUpSkillAddr = levelupSkillList[i].addr; uint level = Program.ROM.u8(levelUpSkillAddr + 0); uint skill = Program.ROM.u8(levelUpSkillAddr + 1); if (skill <= 0) { continue; } Bitmap bitmap = SkillConfigSkillSystemForm.DrawIcon(skill, icon); U.MakeTransparent(bitmap); buttons[skillCount].BackgroundImage = bitmap; buttons[skillCount].Tag = skill; string skillCaption = SkillConfigSkillSystemForm.GetSkillText(skill, text); if (level > 0 && level < 0xFF) { skillCaption = skillCaption + "\r\n" + R._("(Lv{0}で習得)", level); } tooltip.SetToolTip(buttons[skillCount], skillCaption); skillCount++; if (skillCount >= buttons.Length) { break; } } return(skillCount); }
public static int MakeClassSkillButtons(uint cid, Button[] buttons, ToolTipEx tooltip) { uint iconP = SkillConfigSkillSystemForm.FindIconPointer(); uint textP = SkillConfigSkillSystemForm.FindTextPointer(); uint assignClassP = SkillConfigSkillSystemForm.FindAssignClassSkillPointer(); uint assignLevelUpP = SkillConfigSkillSystemForm.FindAssignClassLevelUpSkillPointer(); if (iconP == U.NOT_FOUND) { return(0); } if (textP == U.NOT_FOUND) { return(0); } if (assignClassP == U.NOT_FOUND) { return(0); } if (assignLevelUpP == U.NOT_FOUND) { return(0); } InputFormRef InputFormRef = Init(null, assignClassP); List <U.AddrResult> list = InputFormRef.MakeList(); if (cid >= list.Count) { return(0); } uint classaddr = list[(int)cid].addr; if (!U.isSafetyOffset(classaddr)) { return(0); } uint icon = Program.ROM.p32(iconP); uint text = Program.ROM.p32(textP); uint assignLevelUp = Program.ROM.p32(assignLevelUpP); int skillCount = 0; uint b0 = Program.ROM.u8(classaddr); if (b0 > 0) {//クラスの基本スキル. Bitmap bitmap = SkillConfigSkillSystemForm.DrawIcon((uint)b0, icon); U.MakeTransparent(bitmap); buttons[0].BackgroundImage = bitmap; buttons[0].Tag = b0; string skillCaption = SkillConfigSkillSystemForm.GetSkillText((uint)b0, text); tooltip.SetToolTip(buttons[skillCount], skillCaption); skillCount++; } MakeUnitSkillButtonsList(cid, buttons, tooltip, assignLevelUpP, icon, text, skillCount); return(skillCount); }
public static int MakeUnitSkillButtons(uint uid, Button[] buttons, ToolTipEx tooltip) { uint iconP = SkillConfigSkillSystemForm.FindIconPointer(); uint textP = SkillConfigSkillSystemForm.FindTextPointer(); uint assignUnitP = SkillConfigSkillSystemForm.FindAssignPersonalSkillPointer(); if (iconP == U.NOT_FOUND) { return(0); } if (textP == U.NOT_FOUND) { return(0); } if (assignUnitP == U.NOT_FOUND) { return(0); } InputFormRef InputFormRef = Init(null, assignUnitP); List <U.AddrResult> list = InputFormRef.MakeList(); if (uid < 0 || uid >= list.Count) { return(0); } uint classaddr = list[(int)uid].addr; if (!U.isSafetyOffset(classaddr)) { return(0); } uint b0 = Program.ROM.u8(classaddr); if (b0 <= 0) { return(0); } uint icon = Program.ROM.p32(iconP); uint text = Program.ROM.p32(textP); int skillCount = 0; { Bitmap bitmap = SkillConfigSkillSystemForm.DrawIcon((uint)b0, icon); U.MakeTransparent(bitmap); buttons[0].BackgroundImage = bitmap; buttons[0].Tag = b0; string skillCaption = SkillConfigSkillSystemForm.GetSkillText((uint)b0, text); tooltip.SetToolTipOverraide(buttons[skillCount], skillCaption); } skillCount++; //レベルアップで覚えるスキル. Dictionary <uint, string> skillNames = new Dictionary <uint, string>(); InputFormRef N1_InputFormRef = N1_Init(null, skillNames); uint assignLevelUpP = SkillConfigSkillSystemForm.FindAssignUnitLevelUpSkillPointer(); if (assignLevelUpP == U.NOT_FOUND) {//昔のバージョンには、存在しなかった return(skillCount); } SkillAssignmentClassSkillSystemForm.MakeUnitSkillButtonsList(uid, buttons, tooltip, assignLevelUpP, icon, text, skillCount); return(skillCount); }
public void SetToolTipEx(ToolTipEx tooltip) { this._ToolTipEx = tooltip; }
private void EventScriptPopupUserControl_Load(object sender, EventArgs e) { X_Tooltip = new ToolTipEx(); this.MusicName.SetToolTipEx(X_Tooltip); }