private void PALETTE_POINTER_ValueChanged(object sender, EventArgs e) { if (PALETTE_ADDRESS.Value == 0) { return; } PaletteFormRef.MakePaletteROMToUI(this, (uint)PALETTE_ADDRESS.Value, false, this.PaletteIndexComboBox.SelectedIndex); InputFormRef.WriteButtonToYellow(this.PaletteWriteButton, false); }
private void PALETTE_POINTER_ValueChanged(object sender, EventArgs e) { if (PALETTE_ADDRESS.Value == 0) { return; } PaletteFormRef.MakePaletteROMToUI(this, (uint)PALETTE_ADDRESS.Value, false, this.PaletteIndexComboBox.SelectedIndex); InputFormRef.WriteButtonToYellow(this.PaletteWriteButton, false); this.Battle.Image = this.DrawBitmap; this.CHIPLIST.Image = this.ChipDisplayCache; }
private void PALETTE_POINTER_ValueChanged(object sender, EventArgs e) { uint addr = (uint)PALETTE_ADDRESS.Value; if (!U.isSafetyPointer(addr)) { return; } PaletteFormRef.MakePaletteROMToUI(this, addr, true, this.PaletteIndexComboBox.SelectedIndex); InputFormRef.WriteButtonToYellow(this.PaletteWriteButton, false); uint class_id = InputFormRef.SelectToAddr(this.UNITCLASS_LIST); uint battleAnimeID = ImageBattleAnimeForm.GetAnimeIDByClassID(class_id); U.ForceUpdate(this.X_BATTLEANIME, battleAnimeID); }
private void PALETTE_POINTER_ValueChanged(object sender, EventArgs e) { if (PALETTE_ADDRESS.Value == 0) { return; } PFR.MakePaletteROMToUI((uint)PALETTE_ADDRESS.Value, true, this.PaletteIndexComboBox.SelectedIndex); InputFormRef.WriteButtonToYellow(this.PaletteWriteButton, false); if (this.Is32ColorMode) {//32colorモード 常に最初のパレットで描画 DrawSample(this.BattleAnimeID, 0); } else {//通常モード DrawSample(this.BattleAnimeID, this.PaletteIndexComboBox.SelectedIndex); } }