Esempio n. 1
0
 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;
         }
     }
 }
Esempio n. 5
0
 private void PaletteButton_Click(object sender, RoutedEventArgs e)
 {
     GlobalPanels.OpenPaletteEditor();
 }
Esempio n. 6
0
 private void ObjectSelector_GameObjectDoubleClicked(GameObject gameObject)
 {
     GlobalPanels.EditGameObject(gameObject, (Palette)PaletteIndex.SelectedItem);
 }
Esempio n. 7
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     GlobalPanels.OpenPaletteEditor((Palette)PaletteIndex.SelectedItem);
 }