// Initialization private void InitializeForms() { PropertiesForm = new PropertiesForm(this); PropertiesForm.ToggleButton = toggleProperties; DockPanel = new DockPanel(); DockPanel = dockPanel; Settings settings = Settings.Default; if (settings.VisualTheme == 0 || settings.VisualTheme == 1) { DockPanel.Theme = new VS2005Theme(); } else if (settings.VisualTheme == 2) { //DockPanel.Theme = new VS2013BlueTheme(); } dockPanel = DockPanel; PropertiesForm.Show(dockPanel, DockState.DockLeft); MoldsForm = new MoldsForm(this); MoldsForm.ToggleButton = toggleMolds; MoldsForm.Show(dockPanel, DockState.Document); SequencesForm = new SequencesForm(this); SequencesForm.ToggleButton = toggleSequences; SequencesForm.Show(MoldsForm.Pane, DockAlignment.Bottom, 0.50); }
public void UpdateGraphics() { animation.Tileset_tiles = new Tileset(animation, palette); MoldsForm.SetTilesetImage(); MoldsForm.SetTilemapImage(); SequencesForm.SetFrameImages(); SequencesForm.InvalidateFrameImages(); MoldsForm.LoadTileEditor(); this.Modified = true; // b/c switching colors won't modify checksum }
// Loading forms public void LoadMoldEditor() { if (MoldsForm == null) { MoldsForm = new MoldsForm(this); } else { MoldsForm.Reload(this); } }