private void TileSelector_MouseDown(object sender, MouseButtonEventArgs e) { if (e.ClickCount >= 2) { GlobalPanels.EditTileBlock(_world.Id, TileSelector.SelectedBlockValue); } }
private void LevelPanel_LevelEditorExitSelected(int x, int y) { _levelPanel.LevelEditorExitSelected -= LevelPanel_LevelEditorExitSelected; _levelPanel = null; ExitX.Text = x.ToString("X"); ExitY.Text = y.ToString("X"); GlobalPanels.EditLevel(_levelInfo); }
private void Button_Click(object sender, RoutedEventArgs e) { if (LevelList.SelectedItem != null) { if (LevelList.SelectedItem is LevelInfo) { GlobalPanels.EditLevel((LevelInfo)LevelList.SelectedItem); } } }
private void Button_Click_1(object sender, RoutedEventArgs e) { if (LevelList.SelectedItem != null) { if (LevelList.SelectedItem is LevelInfo) { _levelPanel = GlobalPanels.EditLevel((LevelInfo)LevelList.SelectedItem); _levelPanel.LevelEditorExitSelected += LevelPanel_LevelEditorExitSelected; } } }
private void PaletteButton_Click(object sender, RoutedEventArgs e) { GlobalPanels.OpenPaletteEditor(); }
private void ObjectSelector_GameObjectDoubleClicked(GameObject gameObject) { GlobalPanels.EditGameObject(gameObject, (Palette)PaletteIndex.SelectedItem); }
private void Button_Click(object sender, RoutedEventArgs e) { GlobalPanels.OpenPaletteEditor((Palette)PaletteIndex.SelectedItem); }