added party dummy screen and CMenuParty class (not finished)
This commit is contained in:
1 parent
bf3fdeb69a
commit
e9f9ecc5f4
9 files changed
+183
-5
No files matched your search
+20
-3
@@ -12,6 +12,7 @@ namespace Vocaluxe.Base
|
|||||||
private static List<IPartyMode> _PartyModes;
|
private static List<IPartyMode> _PartyModes;
|
||||||
private static int _CurrentModeNr;
|
private static int _CurrentModeNr;
|
||||||
|
|
||||||
|
#region public stuff
|
||||||
public static int NumModes
|
public static int NumModes
|
||||||
{
|
{
|
||||||
get { return _PartyModes.Count - 1; } //first mode is the dummy normal game mode
|
get { return _PartyModes.Count - 1; } //first mode is the dummy normal game mode
|
||||||
@@ -21,17 +22,26 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
_PartyModes = new List<IPartyMode>();
|
_PartyModes = new List<IPartyMode>();
|
||||||
|
|
||||||
//add dummy normal game mode
|
//add dummy normal game mode and set it as default
|
||||||
_PartyModes.Add(new CPartyModeNone());
|
_PartyModes.Add(new CPartyModeNone());
|
||||||
|
|
||||||
_CurrentModeNr = 0;
|
_CurrentModeNr = 0;
|
||||||
}
|
|
||||||
|
|
||||||
|
//load other party modes
|
||||||
|
LoadPartyModes();
|
||||||
|
}
|
||||||
|
|
||||||
public static void SetNormalGameMode()
|
public static void SetNormalGameMode()
|
||||||
{
|
{
|
||||||
_CurrentModeNr = 0;
|
_CurrentModeNr = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static CMenu GetNextPartyScreen()
|
||||||
|
{
|
||||||
|
return _PartyModes[_CurrentModeNr].GetNextPartyScreen();
|
||||||
|
}
|
||||||
|
#endregion public stuff
|
||||||
|
|
||||||
|
#region Interface
|
||||||
public static EScreens GetStartScreen()
|
public static EScreens GetStartScreen()
|
||||||
{
|
{
|
||||||
return _PartyModes[_CurrentModeNr].GetStartScreen();
|
return _PartyModes[_CurrentModeNr].GetStartScreen();
|
||||||
@@ -56,5 +66,12 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
_PartyModes[_CurrentModeNr].JokerUsed(TeamNr);
|
_PartyModes[_CurrentModeNr].JokerUsed(TeamNr);
|
||||||
}
|
}
|
||||||
|
#endregion Interface
|
||||||
|
|
||||||
|
#region private stuff
|
||||||
|
private static void LoadPartyModes()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endregion private stuff
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,6 +33,7 @@ namespace Vocaluxe.Menu
|
|||||||
ScreenNames = 15,
|
ScreenNames = 15,
|
||||||
ScreenCredits = 16,
|
ScreenCredits = 16,
|
||||||
ScreenParty = 17,
|
ScreenParty = 17,
|
||||||
|
ScreenPartyDummy = 18,
|
||||||
|
|
||||||
ScreenNull = -1
|
ScreenNull = -1
|
||||||
}
|
}
|
||||||
@@ -245,6 +246,7 @@ namespace Vocaluxe.Menu
|
|||||||
_Screens.Add(new CScreenNames());
|
_Screens.Add(new CScreenNames());
|
||||||
_Screens.Add(new CScreenCredits());
|
_Screens.Add(new CScreenCredits());
|
||||||
_Screens.Add(new CScreenParty());
|
_Screens.Add(new CScreenParty());
|
||||||
|
_Screens.Add(new CScreenPartyDummy());
|
||||||
|
|
||||||
_PopupScreens.Add(new CPopupScreenPlayerControl());
|
_PopupScreens.Add(new CPopupScreenPlayerControl());
|
||||||
_PopupScreens.Add(new CPopupScreenVolumeControl());
|
_PopupScreens.Add(new CPopupScreenVolumeControl());
|
||||||
@@ -433,9 +435,12 @@ namespace Vocaluxe.Menu
|
|||||||
|
|
||||||
public static void FadeTo(EScreens Screen)
|
public static void FadeTo(EScreens Screen)
|
||||||
{
|
{
|
||||||
|
if (Screen == EScreens.ScreenPartyDummy)
|
||||||
|
_Screens[(int)EScreens.ScreenPartyDummy] = CParty.GetNextPartyScreen();
|
||||||
|
|
||||||
_NextScreen = Screen;
|
_NextScreen = Screen;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ShowPopup(EPopupScreens PopupScreen)
|
public static void ShowPopup(EPopupScreens PopupScreen)
|
||||||
{
|
{
|
||||||
_PopupScreens[(int)PopupScreen].OnShow();
|
_PopupScreens[(int)PopupScreen].OnShow();
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using Vocaluxe.Menu;
|
using Vocaluxe.Menu;
|
||||||
|
using Vocaluxe.Screens;
|
||||||
|
|
||||||
namespace Vocaluxe.PartyModes
|
namespace Vocaluxe.PartyModes
|
||||||
{
|
{
|
||||||
@@ -22,6 +23,11 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual CMenu GetNextPartyScreen()
|
||||||
|
{
|
||||||
|
return new CScreenPartyDummy();
|
||||||
|
}
|
||||||
|
|
||||||
public virtual EScreens GetStartScreen()
|
public virtual EScreens GetStartScreen()
|
||||||
{
|
{
|
||||||
return EScreens.ScreenSong;
|
return EScreens.ScreenSong;
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
{
|
{
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
|
CMenu GetNextPartyScreen();
|
||||||
EScreens GetStartScreen();
|
EScreens GetStartScreen();
|
||||||
EScreens GetMainScreen();
|
EScreens GetMainScreen();
|
||||||
ScreenSongOptions GetScreenSongOptions();
|
ScreenSongOptions GetScreenSongOptions();
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ namespace Vocaluxe.Screens
|
|||||||
case Keys.Escape:
|
case Keys.Escape:
|
||||||
CGraphics.FadeTo(EScreens.ScreenMain);
|
CGraphics.FadeTo(EScreens.ScreenMain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Keys.C:
|
||||||
|
//CGraphics.FadeTo(EScreens.ScreenPartyDummy);
|
||||||
|
break;
|
||||||
|
|
||||||
case Keys.Enter:
|
case Keys.Enter:
|
||||||
if (Buttons[htButtons(ButtonExit)].Selected)
|
if (Buttons[htButtons(ButtonExit)].Selected)
|
||||||
|
|||||||
@@ -0,0 +1,112 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
using Vocaluxe.Base;
|
||||||
|
using Vocaluxe.Menu;
|
||||||
|
|
||||||
|
namespace Vocaluxe.Screens
|
||||||
|
{
|
||||||
|
class CScreenPartyDummy : CMenu
|
||||||
|
{// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
|
const int ScreenVersion = 1;
|
||||||
|
|
||||||
|
public CScreenPartyDummy()
|
||||||
|
{
|
||||||
|
Init();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Init()
|
||||||
|
{
|
||||||
|
base.Init();
|
||||||
|
|
||||||
|
_ThemeName = "ScreenPartyDummy";
|
||||||
|
_ScreenVersion = ScreenVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void LoadTheme()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void ReloadTheme()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void ReloadTextures()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SaveTheme()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void UnloadTextures()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool HandleInput(KeyEvent KeyEvent)
|
||||||
|
{
|
||||||
|
base.HandleInput(KeyEvent);
|
||||||
|
|
||||||
|
if (KeyEvent.KeyPressed)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (KeyEvent.Key)
|
||||||
|
{
|
||||||
|
case Keys.Back:
|
||||||
|
case Keys.Escape:
|
||||||
|
CGraphics.FadeTo(EScreens.ScreenParty);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool HandleMouse(MouseEvent MouseEvent)
|
||||||
|
{
|
||||||
|
base.HandleMouse(MouseEvent);
|
||||||
|
|
||||||
|
if (MouseEvent.LB && IsMouseOver(MouseEvent))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (MouseEvent.RB)
|
||||||
|
{
|
||||||
|
CGraphics.FadeTo(EScreens.ScreenParty);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnShow()
|
||||||
|
{
|
||||||
|
base.OnShow();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool UpdateGame()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool Draw()
|
||||||
|
{
|
||||||
|
base.Draw();
|
||||||
|
|
||||||
|
CFonts.SetFont("Normal");
|
||||||
|
CFonts.Style = EStyle.Normal;
|
||||||
|
CDraw.DrawText("SOMETHING WENT WRONG!", 150, 300, 80);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnClose()
|
||||||
|
{
|
||||||
|
base.OnClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -644,7 +644,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private void HandlePartySongSelection(int SongNr)
|
private void HandlePartySongSelection(int SongNr)
|
||||||
{
|
{
|
||||||
|
CGraphics.FadeTo(EScreens.ScreenPartyDummy);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StartSong(int SongNr)
|
private void StartSong(int SongNr)
|
||||||
@@ -945,6 +945,7 @@ namespace Vocaluxe.Screens
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Playlist Actions
|
||||||
public void CheckPlaylist()
|
public void CheckPlaylist()
|
||||||
{
|
{
|
||||||
if (Playlists[htPlaylists(Playlist)].ActivePlaylistID == -1)
|
if (Playlists[htPlaylists(Playlist)].ActivePlaylistID == -1)
|
||||||
@@ -1075,5 +1076,6 @@ namespace Vocaluxe.Screens
|
|||||||
else
|
else
|
||||||
SelectSlides[htSelectSlides(SelectSlideOptionsPlaylistAdd)].Selection = 0;
|
SelectSlides[htSelectSlides(SelectSlideOptionsPlaylistAdd)].Selection = 0;
|
||||||
}
|
}
|
||||||
|
#endregion Playlist Actions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
using Vocaluxe.Menu;
|
||||||
|
|
||||||
|
namespace Vocaluxe.Screens.PartyScreens
|
||||||
|
{
|
||||||
|
abstract class CMenuParty : CMenu
|
||||||
|
{
|
||||||
|
public sealed override void LoadTheme()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public sealed override void ReloadTextures()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public sealed override void ReloadTheme()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void UnloadTextures()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -276,6 +276,8 @@
|
|||||||
<Compile Include="Screens\CScreenOptionsVideo.cs" />
|
<Compile Include="Screens\CScreenOptionsVideo.cs" />
|
||||||
<Compile Include="Screens\CScreenOptionsRecord.cs" />
|
<Compile Include="Screens\CScreenOptionsRecord.cs" />
|
||||||
<Compile Include="Screens\CScreenOptionsTheme.cs" />
|
<Compile Include="Screens\CScreenOptionsTheme.cs" />
|
||||||
|
<Compile Include="Screens\CScreenPartyDummy.cs" />
|
||||||
|
<Compile Include="Screens\PartyScreens\CMenuParty.cs" />
|
||||||
<None Include="app.config">
|
<None Include="app.config">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</None>
|
</None>
|
||||||
|
|||||||
Reference in new issue
Block a user