added challenge main screen (just testing)

This commit is contained in:
Alexander Eckart committed 2012-12-15 12:38:48 +01:00
1 parent fb4c7de142
commit 41f8f9ce72
12 files changed
+275 -41

No files matched your search

+4 -1
View File
@@ -5,8 +5,11 @@
<Name>Challenge</Name>
<Author>brunzel</Author>
<Folder>Challenge</Folder>
<PartyModeFile>CPartyModeChallenge.cs</PartyModeFile>
<PartyModeFile>PartyModeChallenge</PartyModeFile>
<PartyModeVersionMajor>0</PartyModeVersionMajor>
<PartyModeVersionMinor>1</PartyModeVersionMinor>
</Info>
<PartyScreens>
<ScreenFile>PartyScreenChallengeMain</ScreenFile>
</PartyScreens>
</root>
@@ -2,11 +2,13 @@ using System;
using System.Collections.Generic;
using System.Text;
using Vocaluxe.Menu;
namespace Vocaluxe.PartyModes
{
public class CPartyModeChallenge : CPartyMode
public class PartyModeChallenge : CPartyMode
{
public CPartyModeChallenge()
public PartyModeChallenge()
{
_ScreenSongOptions.Selection.RandomOnly = false;
_ScreenSongOptions.Selection.PartyMode = false;
@@ -17,6 +19,13 @@ namespace Vocaluxe.PartyModes
_ScreenSongOptions.Sorting.SearchStringVisible = false;
}
public override CMenuParty GetNextPartyScreen()
{
CMenuParty Screen = null;
_Screens.TryGetValue("PartyScreenChallengeMain", out Screen);
return Screen;
}
public override ScreenSongOptions GetScreenSongOptions()
{
_ScreenSongOptions.Sorting.SongSorting = _Base.Config.GetSongSorting();
@@ -0,0 +1,117 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Vocaluxe.Menu;
namespace Vocaluxe.PartyModes
{
public class PartyScreenChallengeMain : CMenuParty
{
// Version number for theme files. Increment it, if you've changed something on the theme files!
const int ScreenVersion = 1;
private CText Warning;
public PartyScreenChallengeMain()
{
}
protected override void Init()
{
base.Init();
_ThemeName = "PartyScreenChallengeMain";
_ScreenVersion = ScreenVersion;
}
public override void LoadTheme()
{
Warning = GetNewText();
Warning.Height = 100f;
Warning.X = 150;
Warning.Y = 300;
Warning.Fon = "Normal";
Warning.Style = EStyle.Normal;
Warning.Color = new SColorF(1f, 0f, 0f, 1f);
Warning.SColor = new SColorF(1f, 0f, 0f, 1f);
Warning.Text = "CHALLENGE!";
AddText(Warning);
}
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:
FadeTo(EScreens.ScreenParty);
break;
}
}
return true;
}
public override bool HandleMouse(MouseEvent MouseEvent)
{
base.HandleMouse(MouseEvent);
if (MouseEvent.LB && IsMouseOver(MouseEvent))
{
}
if (MouseEvent.RB)
{
FadeTo(EScreens.ScreenParty);
}
return true;
}
public override void OnShow()
{
base.OnShow();
}
public override bool UpdateGame()
{
return true;
}
public override bool Draw()
{
base.Draw();
return true;
}
public override void OnClose()
{
base.OnClose();
}
}
}