本文整理汇总了C#中BitSits_Framework.PlayerIndexEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# PlayerIndexEventArgs类的具体用法?C# PlayerIndexEventArgs怎么用?C# PlayerIndexEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlayerIndexEventArgs类属于BitSits_Framework命名空间,在下文中一共展示了PlayerIndexEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PlayGameMenuEntrySelected
/// <summary>
/// Event handler for when the Play Game menu entry is selected.
/// </summary>
void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.ScoreData.Level = BitSitsGames.ScoreData.Score = 0;
LoadingScreen.Load(ScreenManager, false, e.PlayerIndex,
new GameplayScreen(), new PauseMenuScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Treasure-Island,代码行数:10,代码来源:MainMenuScreen.cs
示例2: NewGameMenuEntrySelected
/// <summary>
/// Event handler for when the Play Game menu entry is selected.
/// </summary>
void NewGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.ScoreData.CurrentLevel = 0;
BitSitsGames.ScoreData.PrevScore = 0;
LoadingScreen.Load(ScreenManager, false, e.PlayerIndex,
new GameplayScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Push-Puzzle,代码行数:11,代码来源:MainMenuScreen.cs
示例3: MusicMenuEntrySelected
void MusicMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.Settings.MusicEnabled = !BitSitsGames.Settings.MusicEnabled;
if (BitSitsGames.Settings.MusicEnabled) ScreenManager.GameContent.PlayMusic();
else MediaPlayer.Pause();
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:9,代码来源:OptionsMenuScreen.cs
示例4: SoundEntrySelected
/// <summary>
/// Event handler for when the Resolution menu entry is selected.
/// </summary>
void SoundEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.Settings.SoundEnabled = !BitSitsGames.Settings.SoundEnabled;
if (BitSitsGames.Settings.SoundEnabled) SoundEffect.MasterVolume = 1;
else SoundEffect.MasterVolume = 0;
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Push-Puzzle,代码行数:12,代码来源:OptionsMenuScreen.cs
示例5: QuitMenuEntrySelected
/// <summary>
/// Event handler for when the Quit Game menu entry is selected.
/// </summary>
void QuitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
if (screen is GameplayScreen)
LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen(),
new LevelMenuScreen());
if (screen is LabScreen)
LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:12,代码来源:PauseMenuScreen.cs
示例6: IsFullScreenMenuEntrySelected
/// <summary>
/// Event handler for when the Frobnicate menu entry is selected.
/// </summary>
void IsFullScreenMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.Settings.IsFullScreen = !BitSitsGames.Settings.IsFullScreen;
ScreenManager.GraphicsDeviceManager.IsFullScreen = BitSitsGames.Settings.IsFullScreen;
ScreenManager.GraphicsDeviceManager.ApplyChanges();
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:12,代码来源:OptionsMenuScreen.cs
示例7: LoadLevelMenuEntrySelected
void LoadLevelMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
int i = (int)((MenuEntry)sender).UserData;
#if !DEBUG
if (i > BitSitsGames.ScoreData.CurrentLevel) return;
#endif
ScreenManager.GameContent.levelIndex = i;
LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new GameplayScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:11,代码来源:LevelMenuScreen.cs
示例8: MessageBoxAccepted
void MessageBoxAccepted(object sender, PlayerIndexEventArgs e)
{
if (level.IsLevelUp)
LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen(),
new LevelMenuScreen());
else if (level.ReloadLevel) ReloadCurrentLevel();
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:8,代码来源:GameplayScreen.cs
示例9: GameOverAccepted
void GameOverAccepted(object sender, PlayerIndexEventArgs e)
{
LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Sign-Line,代码行数:4,代码来源:GameplayScreen.cs
示例10: LabSetupMenuEntrySelected
void LabSetupMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new LabScreen());
}
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:4,代码来源:MainMenuScreen.cs
示例11: PlayGameMenuEntrySelected
/// <summary>
/// Event handler for when the Play Game menu entry is selected.
/// </summary>
void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
ScreenManager.AddScreen(new LevelMenuScreen(), e.PlayerIndex);
}
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:7,代码来源:MainMenuScreen.cs
示例12: AddEqipment
public void AddEqipment(object sender, PlayerIndexEventArgs ea)
{
EquipmentName en = EquipmentName.beaker;
if (((MenuEntry)sender).UserData is EquipmentName)
en = ((EquipmentName)((MenuEntry)sender).UserData);
else return;
Equipment e = new Equipment(en, gameContent, world);
e.body.Position = camera.Position / gameContent.scale;
if (selectedEq != null)
{
selectedEq.isSelected = false; selectedEq.SetMode(editMode, false); selectedEq = null;
}
selectedEq = e; selectedEq.isSelected = true; selectedEq.SetMode(editMode, false);
equipmentAdded = true;
if (equipments.Count == 0) equipments.Add(e);
else
{
for (int i = 0; i < equipments.Count; i++)
if (e.equipName <= equipments[i].equipName)
{
equipments.Insert(i, e); return;
}
equipments.Add(e);
}
}
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:29,代码来源:Level.cs
示例13: NewGameMenuEntrySelected
void NewGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
BitSitsGames.ScoreData.LoadDefault(GameContent.MaxLevelIndex);
PlayGameMenuEntrySelected(sender, e);
}
开发者ID:BitSits,项目名称:BitSits-Framework-10---Atooms-To-Moolecule,代码行数:6,代码来源:MainMenuScreen.cs
示例14: ClampEquipment
public void ClampEquipment(object sender, PlayerIndexEventArgs e)
{
if (selectedEq != null)
{
selectedEq.isSelected = false;
selectedEq.isClamped = true; selectedEq.SetMode(editMode, false);
selectedEq = null;
}
}
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:9,代码来源:Level.cs
示例15: ConfirmExitMessageBoxAccepted
/// <summary>
/// Event handler for when the user selects ok on the "are you sure
/// you want to exit" message box.
/// </summary>
void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
{
ScreenManager.Game.Exit();
}
开发者ID:BitSits,项目名称:BitSits-Framework-10,代码行数:8,代码来源:MainMenuScreen.cs
示例16: ClearLAB
public void ClearLAB(object sender, PlayerIndexEventArgs e)
{
if (isLAB)
{
if (editMode)
{
selectedEq = null;
for (int i = equipments.Count - 1; i >= 0; i--)
{
equipments[i].Remove(); equipments.Remove(equipments[i]);
}
}
else
{
for (int i = atoms.Count - 1; i >= 0; i--)
{
atoms[i].Remove(); atoms.Remove(atoms[i]);
}
}
}
}
开发者ID:BitSits,项目名称:BitSits-Framework---Atooms-To-Moolecules,代码行数:22,代码来源:Level.cs
示例17: LanguageMenuEntrySelected
/// <summary>
/// Event handler for when the Language menu entry is selected.
/// </summary>
void LanguageMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
currentLanguage = (currentLanguage + 1) % languages.Length;
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs
示例18: FrobnicateMenuEntrySelected
/// <summary>
/// Event handler for when the Frobnicate menu entry is selected.
/// </summary>
void FrobnicateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
frobnicate = !frobnicate;
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs
示例19: ElfMenuEntrySelected
/// <summary>
/// Event handler for when the Elf menu entry is selected.
/// </summary>
void ElfMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
elf++;
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:9,代码来源:OptionsMenuScreen.cs
示例20: UngulateMenuEntrySelected
/// <summary>
/// Event handler for when the Ungulate menu entry is selected.
/// </summary>
void UngulateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
currentUngulate++;
if (currentUngulate > Ungulate.Llama)
currentUngulate = 0;
SetMenuEntryText();
}
开发者ID:BitSits,项目名称:BitSits-Framework---2D-Race,代码行数:12,代码来源:OptionsMenuScreen.cs
注:本文中的BitSits_Framework.PlayerIndexEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论