private void EditorReloadLayout_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you sure you want to delete the current layout?\nThis action can not be reversed.", "Confirm deletion", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { return; } EditorLayoutRendererOld.tiles = null; EditorLayoutRendererOld.SetupFloorLayerBitmap(); }
private void DigimonWorld2ToolForm_Load(object sender, EventArgs e) { DungeonFilesComboBox.Items.Clear(); CurrentLogTextBox = MapVisualizerLogRichTextBox; SetupLayoutRenderTabs(); SetupEditorLayoutRenderTabs(); PopulateComboBoxes(); LoadUserSettings(); LoadDungeonFiles(); AddDungeonFilesToComboBox(); MainTabControl.SelectedIndex = 0; DungeonFilesComboBox.SelectedIndex = 0; // We select anything non-start index here so the indexChanged gets fired on rendering the first layout MapLayoutsTabControl.SelectedIndex = MapLayoutsTabControl.TabCount; EditorLayoutRendererOld.SetupFloorLayerBitmap(); }
/// <summary> /// Call the renderer for the current floor's current layout tab /// </summary> /// <param name="mapLayoutIndex"></param> private void EditorDrawCurrentMapLayout(object sender, EventArgs e) { EditorLayoutRendererOld.SetupFloorLayerBitmap(); }