void buttonShow_Selected(object sender, PlayerIndexEventArgs e) { tabChoosable = true; wheel.isSpinnable = true; MessageBoxScreen msg = new MessageBoxScreen("Tekan enter bila sudah siap!", false, new Vector2(500, 300)); msg.Accepted += new EventHandler <PlayerIndexEventArgs>(msg_Accepted); soal = new SoalScreen(activePlayer, wheel.choosenOption); ScreenManager.AddScreen(soal, ControllingPlayer); ScreenManager.AddScreen(msg, ControllingPlayer); }
void invokeSoal() { tabChoosable = true; wheel.isSpinnable = true; MessageBoxScreen msg = new MessageBoxScreen("Tekan enter bila sudah siap!", false, new Vector2(500, 300)); msg.Accepted += new EventHandler <PlayerIndexEventArgs>(msg_Accepted); //soal = new SoalScreen(activePlayer, wheel.choosenOption); soal = new SoalScreen(activePlayer, (int)(partitionContent[activePlayer, wheel.choosenOption][partitionContent[activePlayer, wheel.choosenOption].Length - 1] - 48)); ScreenManager.AddScreen(soal, ControllingPlayer); ScreenManager.AddScreen(msg, ControllingPlayer); }
void invokeSoal() { tabChoosable = true; wheel.isSpinnable = true; MessageBoxScreen msg = new MessageBoxScreen("Tekan enter bila sudah siap!", false, new Vector2(500, 300)); msg.Accepted += new EventHandler<PlayerIndexEventArgs>(msg_Accepted); //soal = new SoalScreen(activePlayer, wheel.choosenOption); soal = new SoalScreen(activePlayer, (int)(partitionContent[activePlayer, wheel.choosenOption][partitionContent[activePlayer, wheel.choosenOption].Length - 1] - 48)); ScreenManager.AddScreen(soal, ControllingPlayer); ScreenManager.AddScreen(msg, ControllingPlayer); }
void buttonShow_Selected(object sender, PlayerIndexEventArgs e) { tabChoosable = true; wheel.isSpinnable = true; MessageBoxScreen msg = new MessageBoxScreen("Tekan enter bila sudah siap!", false, new Vector2(500, 300)); msg.Accepted += new EventHandler<PlayerIndexEventArgs>(msg_Accepted); soal = new SoalScreen(activePlayer, wheel.choosenOption); ScreenManager.AddScreen(soal, ControllingPlayer); ScreenManager.AddScreen(msg, ControllingPlayer); }