public void OnInfoPlayerMouseClick(object sender, MouseClickEventArgs e) { showInfoWindow.IsOpened = !showInfoWindow.IsOpened; if (showInfoWindow.IsOpened) Parent.Windows.Add(showInfoWindow); else Parent.Windows.Remove(showInfoWindow); }
public void OnSpellListMouseClick(object sender, MouseClickEventArgs e) { spellListWindow.IsOpened = !spellListWindow.IsOpened; if (spellListWindow.IsOpened) Parent.Windows.Add(spellListWindow); else Parent.Windows.Remove(spellListWindow); }
private void OnSlideAxeX(MouseClickEventArgs e) { MouseClickEventHandler handler = MouseClicking; if (handler != null) { handler(this, e); } }
// object sender renvoie le type du parametre, ici un Button private void onSoundEffectSlideClicking(object sender, MouseClickEventArgs e) { if (MouseManager.Position.X < soundEffectSlide.BoundLeft) soundEffectSlide.Position = new Vector2(soundEffectSlide.BoundLeft, soundEffectSlide.Position.Y); else if (MouseManager.Position.X > soundEffectSlide.BoundLeft + soundEffectSlide.SlideSize) soundEffectSlide.Position = new Vector2(soundEffectSlide.BoundLeft + soundEffectSlide.SlideSize, soundEffectSlide.Position.Y); else soundEffectSlide.Position = new Vector2(MouseManager.Position.X, soundEffectSlide.Position.Y); }
private void OnMouseClick(MouseClickEventArgs e) { MouseClickEventHandler handler = MouseClick; if (handler != null) { handler(this, e); } }
private void OnLocalMouseClick(object sender, MouseClickEventArgs e) { localWindows.IsOpened = !localWindows.IsOpened; if (localWindows.IsOpened) Windows.Add(localWindows); else { localWindows.Close(); Windows.Remove(localWindows); } }
private void OnClientMouseClick(object sender, MouseClickEventArgs e) { localClient.IsOpened = !localClient.IsOpened; if (localServeur.IsOpened) { localServeur.IsOpened = false; parent.Windows.Remove(localServeur); } if (localClient.IsOpened) parent.Windows.Add(localClient); else parent.Windows.Remove(localClient); }
private void OnLanguageMouseClick(object sender, MouseClickEventArgs e) { Res.Culture = Res.Culture.DisplayName == "Français" ? new CultureInfo("en") : new CultureInfo("fr"); soundButton.SetText(Res.Sound); bindButton.SetText(Res.BindKeys); languageButton.SetText(Res.ChooseLanguage); resolutionButton.SetText(Res.Resolution); backStartButton.SetText(Res.Back); KeyboardManager.RefreshDescription(); }
// object sender renvoie le type du parametre, ici un Button private void OnResolutionMouseClick(object sender, MouseClickEventArgs e) { }
// object sender renvoie le type du parametre, ici un Button private void OnBackStartMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new StartMenu()); }
// object sender renvoie le type du parametre, ici un Button private void OnQuitGameMouseClick(object sender, MouseClickEventArgs e) { MainGame.MainExit(); }
// object sender renvoie le type du parametre, ici un Button private void OnOptionButtonMouseClick(object sender, MouseClickEventArgs e) { }
private void OnCreateMouseClick(object sender, MouseClickEventArgs e) { if (box[0].Text().Length > 0 && box[1].Text().Length > 0) { name = box[1].Text(); try { port = Convert.ToInt32(box[0].Text()); StartButton.MouseClick += OnStartMouseClick; createButton.MouseClick -= OnCreateMouseClick; isCreate = true; box[0].IsSelect = false; box[1].IsSelect = false; serveur = new Serveur("test",port,100); serveur.Start(); localClient = new Client(name,true); localClient.Connect("127.0.0.1", port); localClient.SendData(); localClient.StartReadThread(); //localClient.StartWaitStart(); box.Add(new TextBox(new Vector2(Bounds.X + 20, box[0].Bound.Bottom + 10), 20, 10, TexturesManager.Menu, Color.Blue, Color.Red)); } catch (Exception) { box[0].RemoveAll(); } } }
// object sender renvoie le type du parametre, ici un Button private void OnStartButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new PlayerEditor()); }
public void OnGoMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new GameScreen()); }
private void OnMultiplayerButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new MultiMenu()); }
private void OnExitButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().Exit(); }
private void OnExitButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.MainExit(); }
// object sender renvoie le type du parametre, ici un Button private void OnPrintNextGameMouseClick(object sender, MouseClickEventArgs e) { }
public void OnMainButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new StartMenu()); }
public void OnLoadButtonMouseClick(object sender, MouseClickEventArgs e) { }
// object sender renvoie le type du parametre, ici un Button private void OnSuicideButtonMouseClick(object sender, MouseClickEventArgs e) { XactManager.PlaySong("Menu01"); MainGame.GetInstance().SetScreen(new GameOverScreen()); }
private void OnOptionButtonMouseClick(object sender, MouseClickEventArgs e) { MainGame.GetInstance().SetScreen(new OptionMenu()); }
private void OnResolutionMouseClick(object sender, MouseClickEventArgs e) { // if (MainGame.ScreenX != 1024) // { // MainGame.GetInstance().graphics.IsFullScreen = false; // MainGame.SetGraphics(1024, 768); // } // else // { // MainGame.GetInstance().graphics.IsFullScreen = true; // MainGame.SetGraphics(MainGame.GetInstance().graphics.GraphicsDevice.DisplayMode.Width, MainGame.GetInstance().graphics.GraphicsDevice.DisplayMode.Height); // } }
private void OnStoryButtonMouseClick(object sender, MouseClickEventArgs e) { }
private void OnBindMouseClick(object sender, MouseClickEventArgs e) { if (soundProperties.IsOpened) OnSoundMouseClick(sender, e); keyBinding.IsOpened = !keyBinding.IsOpened; if (keyBinding.IsOpened) Windows.Add(keyBinding); else Windows.Remove(keyBinding); }
// Pour les points de carac private void OnAddMouseClick(object sender, MouseClickEventArgs e) { }
private void OnMouseClick(MouseClickEventArgs e) { MouseClickEventHandler handler = MouseClick; if (handler != null) handler(this, e); }
private void OnStartMouseClick(object sender, MouseClickEventArgs e) { serveur.StartGame(); MainGame.GetInstance().SetScreen(new MultiScreen(serveur, localClient)); }
private void OnJoinMouseClick(object sender, MouseClickEventArgs e) { if (box[0].Text().Length > 0 && box[1].Text().Length > 0 && box[2].Text().Length > 0) { name = box[1].Text(); try { port = Convert.ToInt32(box[0].Text()); joinButton.MouseClick -= OnJoinMouseClick; box[0].IsSelect = false; box[1].IsSelect = false; box[2].IsSelect = false; IsJoin = true; box.Add(new TextBox(new Vector2(Bounds.X + 20, box[2].Bound.Bottom + 10), 20, 10, TexturesManager.Menu, Color.Blue, Color.Red)); client = new Client(name); client.Connect(box[2].Text(),port); client.SendData(); client.StartReadThread(); //client.StartWaitStart(); } catch (Exception) { box[0].RemoveAll(); } } }
private void OnSlideAxeX(MouseClickEventArgs e) { MouseClickEventHandler handler = MouseClicking; if (handler != null) handler(this, e); }
// object sender renvoie le type du parametre, ici un Button private void OnLaunchMainButtonMouseClick(object sender, MouseClickEventArgs e) { XactManager.PlaySong("Menu01"); MainGame.GetInstance().SetScreen(new StartMenu()); }