private void B16_ValueChanged(object sender, EventArgs e) { if (PatchUtil.OPClassReelAnimationIDOver255() == PatchUtil.OPClassReelAnimationIDOver255Patch.Over255) { //パッチで 戦闘アニメ255を越える場合 if (B13.Value == 0xFF) { //標準パレット X_BATTLEANIMEICON.Image = ImageBattleAnimeForm.DrawBattleAnime((uint)D18.Value + 1 , ImageBattleAnimeForm.ScaleTrim.SCALE_90, 0, 0, 0, (int)B15.Value); } else { X_BATTLEANIMEICON.Image = ImageBattleAnimeForm.DrawBattleAnime((uint)D18.Value + 1 , ImageBattleAnimeForm.ScaleTrim.SCALE_90, (uint)B13.Value + 1, 0, 0, (int)B15.Value); } } else { //バニラ if (B13.Value == 0xFF) { //標準パレット X_BATTLEANIMEICON.Image = ImageBattleAnimeForm.DrawBattleAnime((uint)B16.Value + 1 , ImageBattleAnimeForm.ScaleTrim.SCALE_90, 0, 0, 0, (int)B15.Value); } else { X_BATTLEANIMEICON.Image = ImageBattleAnimeForm.DrawBattleAnime((uint)B16.Value + 1 , ImageBattleAnimeForm.ScaleTrim.SCALE_90, (uint)B13.Value + 1, 0, 0, (int)B15.Value); } } }
public OPClassDemoForm() { InitializeComponent(); if (PatchUtil.OPClassReelAnimationIDOver255() == PatchUtil.OPClassReelAnimationIDOver255Patch.Over255) { J_16_BATTLEANIME.Name = "J_16"; J_16_BATTLEANIME.Text = R._("旧データ00"); J_16_BATTLEANIME.AccessibleDescription = R._("バニラでは戦闘アニメーションの指定にこのフィールドを使っていましたが、1バイトしか書けないので、パッチによって移動しました。\r\n現在は利用していません。"); L_16_BATTLEANIME_PLUS1.Hide(); L_18_BATTLEANIME_PLUS1.Show(); J_18.Name = "J_16_BATTLEANIME"; J_18.Text = R._("戦闘アニメ"); J_18.AccessibleDescription = "@OP_CLASSDEMO_BATTLEANIME"; } this.AddressList.OwnerDraw(ListBoxEx.DrawClassAndText, DrawMode.OwnerDrawFixed); this.InputFormRef = Init(this); this.InputFormRef.MakeGeneralAddressListContextMenu(true); this.N1_InputFormRef = N1_Init(this); this.N1_AddressList.OwnerDraw(ListBoxEx.DrawOPClassFontAndText, DrawMode.OwnerDrawFixed); this.N1_InputFormRef.MakeGeneralAddressListContextMenu(true); this.N2_InputFormRef = N2_Init(this); PatchUtil.OPClassReelSortExtends opClassReelSort = PatchUtil.OPClassReelSortPatch(); this.AddressListExpandsButton.Visible = (opClassReelSort != PatchUtil.OPClassReelSortExtends.NO); }