void DrawIcon() { if (Program.ROM == null) { return; } Bitmap b; if (IconTypeEnum.Weapon == iconType) { b = ImageSystemIconForm.WeaponIcon(iconNumber); } else if (IconTypeEnum.Attribute == iconType) { b = ImageSystemIconForm.Attribute(iconNumber); } else if (IconTypeEnum.Cursol == iconType) { b = ImageSystemIconForm.Cursol(); } else if (IconTypeEnum.Yubi == iconType) { if (iconNumber == 0) { b = ImageSystemIconForm.YubiYoko(); } else { b = ImageSystemIconForm.YubiTate(); } } else if (IconTypeEnum.Exit == iconType) { b = ImageSystemIconForm.ExitPoint(); } else if (IconTypeEnum.Allow == iconType) { b = ImageSystemIconForm.Allows((int)iconNumber); } else if (IconTypeEnum.Music == iconType) { b = ImageSystemIconForm.MusicIcon(iconNumber); } else { b = ImageSystemIconForm.Blank16(); } U.MakeTransparent(b); base.Image = b; }
public MapSettingFE7Form() { InitializeComponent(); InputFormRef.markupJumpLabel(X_MAPSTYLE_CHANGE); MapPictureBox.HideCommandBar(); MapPictureBox.SetPointIcon("L_142_MAPXY_143", ImageSystemIconForm.ExitPoint()); //われら輸送体 Bitmap yusoutai = ImageUnitWaitIconFrom.DrawWaitUnitIconBitmap(0x3A, 0, true); MapPictureBox.SetPointIcon("L_130_MAPXY_132", yusoutai); MapPictureBox.SetPointIcon("L_131_MAPXY_133", yusoutai); U.ConvertComboBox(InputFormRef.MakeTerrainSet(), ref L_19_COMBO, true); this.InputFormRef = Init(this); this.InputFormRef.MakeGeneralAddressListContextMenu(true); }
public MapSettingForm() { InitializeComponent(); InputFormRef.markupJumpLabel(X_MAPSTYLE_CHANGE); MapPictureBox.HideCommandBar(); MapPictureBox.SetPointIcon("L_143_MAPXY_144", ImageSystemIconForm.ExitPoint()); U.ConvertComboBox(InputFormRef.MakeTerrainSet(), ref L_19_COMBO, true); this.InputFormRef = Init(this); this.InputFormRef.MakeGeneralAddressListContextMenu(true); uint shinan = PatchUtil.SearchShinanTablePatch(); if (shinan != U.NOT_FOUND) { InputFormRef.markupJumpLabel(X_JUMP_SHINAN); X_JUMP_SHINAN.Show(); } }