Renamed ambiguous prefixes and abbreviations

This commit is contained in:
Flamefire committed 2013-04-15 12:35:31 +02:00
1 parent 7f26aa6051
commit 883b35d0f2
31 files changed
+607 -609

No files matched your search

@@ -162,7 +162,7 @@ namespace VocaluxeLib.PartyModes.Challenge
if (player != Data.ScreenConfig.NumPlayer || mics != Data.ScreenConfig.NumPlayerAtOnce) if (player != Data.ScreenConfig.NumPlayer || mics != Data.ScreenConfig.NumPlayerAtOnce)
{ {
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce); int num = CHelper.CombinationCount(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
while (num > _MaxNumRounds) while (num > _MaxNumRounds)
num -= _RoundSteps; num -= _RoundSteps;
Data.ScreenConfig.NumRounds = num; Data.ScreenConfig.NumRounds = num;
@@ -202,9 +202,9 @@ namespace VocaluxeLib.PartyModes.Challenge
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].STexture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].SelTexture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName;
//Update Tiles-List //Update Tiles-List
UpdateButtonPlayerChoose(); UpdateButtonPlayerChoose();
@@ -342,9 +342,9 @@ namespace VocaluxeLib.PartyModes.Challenge
PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]; PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose];
PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName; PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName;
PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f); PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f);
PlayerChooseButtons[i].Button.SColor = new SColorF(1, 1, 1, 1); PlayerChooseButtons[i].Button.SelColor = new SColorF(1, 1, 1, 1);
PlayerChooseButtons[i].Button.Enabled = true; PlayerChooseButtons[i].Button.Enabled = true;
} }
else else
@@ -352,9 +352,9 @@ namespace VocaluxeLib.PartyModes.Challenge
PlayerChooseButtons[i].ProfileID = -1; PlayerChooseButtons[i].ProfileID = -1;
PlayerChooseButtons[i].Button.Text.Text = String.Empty; PlayerChooseButtons[i].Button.Text.Text = String.Empty;
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture; PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture; PlayerChooseButtons[i].Button.SelTexture = Buttons[ButtonPlayerChoose].SelTexture;
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color; PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor; PlayerChooseButtons[i].Button.SelColor = Buttons[ButtonPlayerChoose].SelColor;
PlayerChooseButtons[i].Button.Enabled = false; PlayerChooseButtons[i].Button.Enabled = false;
} }
} }
@@ -409,9 +409,9 @@ namespace VocaluxeLib.PartyModes.Challenge
if (Data.ScreenNames.ProfileIDs[i] != -1) if (Data.ScreenNames.ProfileIDs[i] != -1)
{ {
PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[i].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[i].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture; PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture;
PlayerDestinationButtons[i].STexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture; PlayerDestinationButtons[i].SelTexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture;
PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].PlayerName; PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].PlayerName;
PlayerDestinationButtons[i].Enabled = true; PlayerDestinationButtons[i].Enabled = true;
} }
@@ -419,9 +419,9 @@ namespace VocaluxeLib.PartyModes.Challenge
else else
{ {
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color; PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor; PlayerDestinationButtons[i].SelColor = Buttons[ButtonPlayerDestination].SelColor;
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture; PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture; PlayerDestinationButtons[i].SelTexture = Buttons[ButtonPlayerDestination].SelTexture;
PlayerDestinationButtons[i].Text.Text = String.Empty; PlayerDestinationButtons[i].Text.Text = String.Empty;
PlayerDestinationButtons[i].Enabled = false; PlayerDestinationButtons[i].Enabled = false;
} }
@@ -452,9 +452,9 @@ namespace VocaluxeLib.PartyModes.Challenge
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName;
PlayerDestinationButtons[added].Enabled = true; PlayerDestinationButtons[added].Enabled = true;
//Update Tiles-List //Update Tiles-List
@@ -162,7 +162,7 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
if (player != Data.ScreenConfig.NumPlayer || mics != Data.ScreenConfig.NumPlayerAtOnce) if (player != Data.ScreenConfig.NumPlayer || mics != Data.ScreenConfig.NumPlayerAtOnce)
{ {
int num = CHelper.nCk(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce); int num = CHelper.CombinationCount(Data.ScreenConfig.NumPlayer, Data.ScreenConfig.NumPlayerAtOnce);
while (num > _MaxNumRounds) while (num > _MaxNumRounds)
num -= _RoundSteps; num -= _RoundSteps;
Data.ScreenConfig.NumRounds = num; Data.ScreenConfig.NumRounds = num;
@@ -202,9 +202,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].STexture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].SelTexture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName;
//Update Tiles-List //Update Tiles-List
UpdateButtonPlayerChoose(); UpdateButtonPlayerChoose();
@@ -342,9 +342,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]; PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose];
PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName; PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName;
PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f); PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f);
PlayerChooseButtons[i].Button.SColor = new SColorF(1, 1, 1, 1); PlayerChooseButtons[i].Button.SelColor = new SColorF(1, 1, 1, 1);
PlayerChooseButtons[i].Button.Enabled = true; PlayerChooseButtons[i].Button.Enabled = true;
} }
else else
@@ -352,9 +352,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
PlayerChooseButtons[i].ProfileID = -1; PlayerChooseButtons[i].ProfileID = -1;
PlayerChooseButtons[i].Button.Text.Text = String.Empty; PlayerChooseButtons[i].Button.Text.Text = String.Empty;
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture; PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture; PlayerChooseButtons[i].Button.SelTexture = Buttons[ButtonPlayerChoose].SelTexture;
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color; PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor; PlayerChooseButtons[i].Button.SelColor = Buttons[ButtonPlayerChoose].SelColor;
PlayerChooseButtons[i].Button.Enabled = false; PlayerChooseButtons[i].Button.Enabled = false;
} }
} }
@@ -409,9 +409,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
if (Data.ScreenNames.ProfileIDs[i] != -1) if (Data.ScreenNames.ProfileIDs[i] != -1)
{ {
PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[i].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[i].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture; PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture;
PlayerDestinationButtons[i].STexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture; PlayerDestinationButtons[i].SelTexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].Avatar.Texture;
PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].PlayerName; PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDs[i]].PlayerName;
PlayerDestinationButtons[i].Enabled = true; PlayerDestinationButtons[i].Enabled = true;
} }
@@ -419,9 +419,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
else else
{ {
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color; PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor; PlayerDestinationButtons[i].SelColor = Buttons[ButtonPlayerDestination].SelColor;
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture; PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture; PlayerDestinationButtons[i].SelTexture = Buttons[ButtonPlayerDestination].SelTexture;
PlayerDestinationButtons[i].Text.Text = String.Empty; PlayerDestinationButtons[i].Text.Text = String.Empty;
PlayerDestinationButtons[i].Enabled = false; PlayerDestinationButtons[i].Enabled = false;
} }
@@ -452,9 +452,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName;
PlayerDestinationButtons[added].Enabled = true; PlayerDestinationButtons[added].Enabled = true;
//Update Tiles-List //Update Tiles-List
@@ -430,25 +430,25 @@ namespace VocaluxeLib.PartyModes.TicTacToe
Fields[i].Button.Enabled = true; Fields[i].Button.Enabled = true;
Fields[i].Button.Texture = Buttons[ButtonField].Texture; Fields[i].Button.Texture = Buttons[ButtonField].Texture;
Fields[i].Button.Color = Buttons[ButtonField].Color; Fields[i].Button.Color = Buttons[ButtonField].Color;
Fields[i].Button.SColor = Buttons[ButtonField].SColor; Fields[i].Button.SelColor = Buttons[ButtonField].SelColor;
Fields[i].Content = GameData.Rounds[i]; Fields[i].Content = GameData.Rounds[i];
if (Fields[i].Content.Finished) if (Fields[i].Content.Finished)
{ {
Fields[i].Button.Enabled = false; Fields[i].Button.Enabled = false;
Fields[i].Button.Texture = CBase.Songs.GetSongByID(Fields[i].Content.SongID).CoverTextureBig; Fields[i].Button.Texture = CBase.Songs.GetSongByID(Fields[i].Content.SongID).CoverTextureBig;
Fields[i].Button.Color = CBase.Theme.GetPlayerColor(Fields[i].Content.Winner); Fields[i].Button.Color = CBase.Theme.GetPlayerColor(Fields[i].Content.Winner);
Fields[i].Button.SColor = CBase.Theme.GetPlayerColor(Fields[i].Content.Winner); Fields[i].Button.SelColor = CBase.Theme.GetPlayerColor(Fields[i].Content.Winner);
} }
if (Status == EStatus.FieldSelected && SelectedField == i) if (Status == EStatus.FieldSelected && SelectedField == i)
{ {
Fields[i].Button.Texture = CBase.Songs.GetSongByID(Fields[i].Content.SongID).CoverTextureBig; Fields[i].Button.Texture = CBase.Songs.GetSongByID(Fields[i].Content.SongID).CoverTextureBig;
Fields[i].Button.Color = new SColorF(1, 1, 1, 1); Fields[i].Button.Color = new SColorF(1, 1, 1, 1);
Fields[i].Button.SColor = new SColorF(1, 1, 1, 1); Fields[i].Button.SelColor = new SColorF(1, 1, 1, 1);
Fields[i].Button.Enabled = false; Fields[i].Button.Enabled = false;
} }
if (Status == EStatus.JokerRetry && Fields[i].Content.Finished) if (Status == EStatus.JokerRetry && Fields[i].Content.Finished)
{ {
Fields[i].Button.SColor = CBase.Theme.GetPlayerColor(GameData.Team + 1); Fields[i].Button.SelColor = CBase.Theme.GetPlayerColor(GameData.Team + 1);
Fields[i].Button.Enabled = true; Fields[i].Button.Enabled = true;
} }
if (Status == EStatus.JokerRetry && !Fields[i].Content.Finished) if (Status == EStatus.JokerRetry && !Fields[i].Content.Finished)
@@ -237,9 +237,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].Texture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].STexture = chooseAvatarStatic.Texture; PlayerDestinationButtons[added].SelTexture = chooseAvatarStatic.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[SelectedPlayerNr].PlayerName;
PlayerDestinationButtons[added].Enabled = true; PlayerDestinationButtons[added].Enabled = true;
//Update Tiles-List //Update Tiles-List
@@ -405,9 +405,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]; PlayerChooseButtons[i].ProfileID = PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose];
PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName; PlayerChooseButtons[i].Button.Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].PlayerName;
PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture; PlayerChooseButtons[i].Button.SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtonsVisibleProfiles[i + Offset * NumButtonPlayerChoose]].Avatar.Texture;
PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f); PlayerChooseButtons[i].Button.Color = new SColorF(1, 1, 1, 0.6f);
PlayerChooseButtons[i].Button.SColor = new SColorF(1, 1, 1, 1); PlayerChooseButtons[i].Button.SelColor = new SColorF(1, 1, 1, 1);
PlayerChooseButtons[i].Button.Enabled = true; PlayerChooseButtons[i].Button.Enabled = true;
} }
else else
@@ -415,9 +415,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
PlayerChooseButtons[i].ProfileID = -1; PlayerChooseButtons[i].ProfileID = -1;
PlayerChooseButtons[i].Button.Text.Text = String.Empty; PlayerChooseButtons[i].Button.Text.Text = String.Empty;
PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture; PlayerChooseButtons[i].Button.Texture = Buttons[ButtonPlayerChoose].Texture;
PlayerChooseButtons[i].Button.STexture = Buttons[ButtonPlayerChoose].STexture; PlayerChooseButtons[i].Button.SelTexture = Buttons[ButtonPlayerChoose].SelTexture;
PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color; PlayerChooseButtons[i].Button.Color = Buttons[ButtonPlayerChoose].Color;
PlayerChooseButtons[i].Button.SColor = Buttons[ButtonPlayerChoose].SColor; PlayerChooseButtons[i].Button.SelColor = Buttons[ButtonPlayerChoose].SelColor;
PlayerChooseButtons[i].Button.Enabled = false; PlayerChooseButtons[i].Button.Enabled = false;
} }
} }
@@ -495,9 +495,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
if (Data.ScreenNames.ProfileIDsTeam1[i] != -1) if (Data.ScreenNames.ProfileIDsTeam1[i] != -1)
{ {
PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[i].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[i].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[i].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].Avatar.Texture; PlayerDestinationButtons[i].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].Avatar.Texture;
PlayerDestinationButtons[i].STexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].Avatar.Texture; PlayerDestinationButtons[i].SelTexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].Avatar.Texture;
PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].PlayerName; PlayerDestinationButtons[i].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam1[i]].PlayerName;
PlayerDestinationButtons[i].Enabled = true; PlayerDestinationButtons[i].Enabled = true;
} }
@@ -505,9 +505,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
else else
{ {
PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color; PlayerDestinationButtons[i].Color = Buttons[ButtonPlayerDestination].Color;
PlayerDestinationButtons[i].SColor = Buttons[ButtonPlayerDestination].SColor; PlayerDestinationButtons[i].SelColor = Buttons[ButtonPlayerDestination].SelColor;
PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture; PlayerDestinationButtons[i].Texture = Buttons[ButtonPlayerDestination].Texture;
PlayerDestinationButtons[i].STexture = Buttons[ButtonPlayerDestination].STexture; PlayerDestinationButtons[i].SelTexture = Buttons[ButtonPlayerDestination].SelTexture;
PlayerDestinationButtons[i].Text.Text = String.Empty; PlayerDestinationButtons[i].Text.Text = String.Empty;
PlayerDestinationButtons[i].Enabled = false; PlayerDestinationButtons[i].Enabled = false;
} }
@@ -519,9 +519,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
if (Data.ScreenNames.ProfileIDsTeam2[i] != -1) if (Data.ScreenNames.ProfileIDsTeam2[i] != -1)
{ {
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].Avatar.Texture; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].Avatar.Texture;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].STexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].Avatar.Texture; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SelTexture = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].Avatar.Texture;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].PlayerName; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = CBase.Profiles.GetProfiles()[Data.ScreenNames.ProfileIDsTeam2[i]].PlayerName;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = true; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = true;
} }
@@ -529,9 +529,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
else else
{ {
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = Buttons[ButtonPlayerDestination].Color; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Color = Buttons[ButtonPlayerDestination].Color;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SColor = Buttons[ButtonPlayerDestination].SColor; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SelColor = Buttons[ButtonPlayerDestination].SelColor;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = Buttons[ButtonPlayerDestination].Texture; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Texture = Buttons[ButtonPlayerDestination].Texture;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].STexture = Buttons[ButtonPlayerDestination].STexture; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].SelTexture = Buttons[ButtonPlayerDestination].SelTexture;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = String.Empty; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Text.Text = String.Empty;
PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = false; PlayerDestinationButtons[i + PlayerDestinationButtonsNumH].Enabled = false;
} }
@@ -562,9 +562,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName;
PlayerDestinationButtons[added].Enabled = true; PlayerDestinationButtons[added].Enabled = true;
//Update Tiles-List //Update Tiles-List
@@ -579,9 +579,9 @@ namespace VocaluxeLib.PartyModes.TicTacToe
UpdateButtonNext(); UpdateButtonNext();
//Update texture and name //Update texture and name
PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f); PlayerDestinationButtons[added].Color = new SColorF(1, 1, 1, 0.6f);
PlayerDestinationButtons[added].SColor = new SColorF(1, 1, 1, 1); PlayerDestinationButtons[added].SelColor = new SColorF(1, 1, 1, 1);
PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].Texture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].STexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture; PlayerDestinationButtons[added].SelTexture = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].Avatar.Texture;
PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName; PlayerDestinationButtons[added].Text.Text = CBase.Profiles.GetProfiles()[PlayerChooseButtons[i].ProfileID].PlayerName;
PlayerDestinationButtons[added].Enabled = true; PlayerDestinationButtons[added].Enabled = true;
//Update Tiles-List //Update Tiles-List
+2 -2
View File
@@ -588,7 +588,7 @@ namespace Vocaluxe.Base
if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.F1)) if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.F1))
CSettings.GameState = EGameState.EditTheme; CSettings.GameState = EGameState.EditTheme;
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter)) else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter))
CSettings.bFullScreen = !CSettings.bFullScreen; CSettings.IsFullScreen = !CSettings.IsFullScreen;
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P)) else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
CDraw.MakeScreenShot(); CDraw.MakeScreenShot();
else else
@@ -684,7 +684,7 @@ namespace Vocaluxe.Base
_Screens[(int)_CurrentScreen].NextInteraction(); _Screens[(int)_CurrentScreen].NextInteraction();
} }
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter)) else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.Enter))
CSettings.bFullScreen = !CSettings.bFullScreen; CSettings.IsFullScreen = !CSettings.IsFullScreen;
else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P)) else if (KeyEvent.ModALT && (KeyEvent.Key == Keys.P))
CDraw.MakeScreenShot(); CDraw.MakeScreenShot();
else else
+4 -4
View File
@@ -65,7 +65,7 @@ namespace Vocaluxe.Base
static class CLog static class CLog
{ {
private const int MAXBenchmarks = 10; private const int MaxBenchmarks = 10;
private static LogFile _ErrorLog; private static LogFile _ErrorLog;
private static LogFile _PerformanceLog; private static LogFile _PerformanceLog;
@@ -82,7 +82,7 @@ namespace Vocaluxe.Base
_BenchmarkLog = new LogFile(CSettings.sFileBenchmarkLog, "BenchmarkLog"); _BenchmarkLog = new LogFile(CSettings.sFileBenchmarkLog, "BenchmarkLog");
_NumErrors = 0; _NumErrors = 0;
_BenchmarkTimer = new Stopwatch[MAXBenchmarks]; _BenchmarkTimer = new Stopwatch[MaxBenchmarks];
for (int i = 0; i < _BenchmarkTimer.Length; i++) for (int i = 0; i < _BenchmarkTimer.Length; i++)
_BenchmarkTimer[i] = new Stopwatch(); _BenchmarkTimer[i] = new Stopwatch();
} }
@@ -115,7 +115,7 @@ namespace Vocaluxe.Base
#region LogBenchmark #region LogBenchmark
public static void StartBenchmark(int BenchmarkNr, string Text) public static void StartBenchmark(int BenchmarkNr, string Text)
{ {
if (BenchmarkNr >= 0 && BenchmarkNr < MAXBenchmarks) if (BenchmarkNr >= 0 && BenchmarkNr < MaxBenchmarks)
{ {
_BenchmarkTimer[BenchmarkNr].Stop(); _BenchmarkTimer[BenchmarkNr].Stop();
_BenchmarkTimer[BenchmarkNr].Reset(); _BenchmarkTimer[BenchmarkNr].Reset();
@@ -131,7 +131,7 @@ namespace Vocaluxe.Base
public static void StopBenchmark(int BenchmarkNr, string Text) public static void StopBenchmark(int BenchmarkNr, string Text)
{ {
if (BenchmarkNr >= 0 && BenchmarkNr < MAXBenchmarks) if (BenchmarkNr >= 0 && BenchmarkNr < MaxBenchmarks)
{ {
_BenchmarkTimer[BenchmarkNr].Stop(); _BenchmarkTimer[BenchmarkNr].Stop();
+1 -1
View File
@@ -51,7 +51,7 @@ namespace Vocaluxe.Base
public static int zNear = -100; public static int zNear = -100;
public static int zFar = 100; public static int zFar = 100;
public static bool bFullScreen = false; public static bool IsFullScreen = false;
public static int iVertexBufferElements = 10000; public static int iVertexBufferElements = 10000;
public const string sIcon = "Vocaluxe.ico"; public const string sIcon = "Vocaluxe.ico";
+13 -13
View File
@@ -633,7 +633,7 @@ namespace Vocaluxe.Base
private float _CurrentTime; private float _CurrentTime;
private float _OldTime; private float _OldTime;
private readonly Stopwatch _STimer; private readonly Stopwatch _Timer;
private readonly float _K; private readonly float _K;
private readonly float _T; private readonly float _T;
@@ -642,8 +642,8 @@ namespace Vocaluxe.Base
get get
{ {
double nanosecPerTick = (1000.0 * 1000.0 * 1000.0) / Stopwatch.Frequency; double nanosecPerTick = (1000.0 * 1000.0 * 1000.0) / Stopwatch.Frequency;
long ticks = _STimer.ElapsedTicks; long ticks = _Timer.ElapsedTicks;
float dt = _STimer.ElapsedMilliseconds / 1000f; float dt = _Timer.ElapsedMilliseconds / 1000f;
if (Stopwatch.IsHighResolution && ticks != 0) if (Stopwatch.IsHighResolution && ticks != 0)
dt = (float)(ticks * nanosecPerTick / 1000000000.0); dt = (float)(ticks * nanosecPerTick / 1000000000.0);
@@ -658,8 +658,8 @@ namespace Vocaluxe.Base
_CurrentTime = value; _CurrentTime = value;
_OldTime = value; _OldTime = value;
_STimer.Reset(); _Timer.Reset();
_STimer.Start(); _Timer.Start();
} }
} }
@@ -668,18 +668,18 @@ namespace Vocaluxe.Base
_CurrentTime = CurrentTime; _CurrentTime = CurrentTime;
_OldTime = CurrentTime; _OldTime = CurrentTime;
_STimer = new Stopwatch(); _Timer = new Stopwatch();
_K = K; _K = K;
_T = T; _T = T;
} }
public float Update(float NewTime) public float Update(float NewTime)
{ {
_STimer.Stop(); _Timer.Stop();
double nanosecPerTick = (1000.0 * 1000.0 * 1000.0) / Stopwatch.Frequency; double nanosecPerTick = (1000.0 * 1000.0 * 1000.0) / Stopwatch.Frequency;
long ticks = _STimer.ElapsedTicks; long ticks = _Timer.ElapsedTicks;
float dt = _STimer.ElapsedMilliseconds / 1000f; float dt = _Timer.ElapsedMilliseconds / 1000f;
if (Stopwatch.IsHighResolution && ticks != 0) if (Stopwatch.IsHighResolution && ticks != 0)
dt = (float)(ticks * nanosecPerTick / 1000000000.0); dt = (float)(ticks * nanosecPerTick / 1000000000.0);
@@ -691,20 +691,20 @@ namespace Vocaluxe.Base
_CurrentTime = Ts * (_K * NewTime - _OldTime) + _OldTime; _CurrentTime = Ts * (_K * NewTime - _OldTime) + _OldTime;
_OldTime = _CurrentTime; _OldTime = _CurrentTime;
_STimer.Reset(); _Timer.Reset();
_STimer.Start(); _Timer.Start();
return _CurrentTime; return _CurrentTime;
} }
public void Pause() public void Pause()
{ {
_STimer.Stop(); _Timer.Stop();
} }
public void Resume() public void Resume()
{ {
_STimer.Start(); _Timer.Start();
} }
} }
} }
+7 -7
View File
@@ -211,7 +211,7 @@ namespace Vocaluxe.Lib.Draw
protected override void OnResize(EventArgs e) protected override void OnResize(EventArgs e)
{ {
base.OnResize(e); base.OnResize(e);
RResize(); DoResize();
} }
protected override void WndProc(ref Message m) protected override void WndProc(ref Message m)
@@ -240,7 +240,7 @@ namespace Vocaluxe.Lib.Draw
/// <summary> /// <summary>
/// Resizes the viewport /// Resizes the viewport
/// </summary> /// </summary>
private void RResize() private void DoResize()
{ {
// The window was minimized, so restore it to the last known size // The window was minimized, so restore it to the last known size
if (ClientSize.Width == 0 || ClientSize.Height == 0) if (ClientSize.Width == 0 || ClientSize.Height == 0)
@@ -308,11 +308,11 @@ namespace Vocaluxe.Lib.Draw
if (WindowState == FormWindowState.Maximized) if (WindowState == FormWindowState.Maximized)
{ {
WindowState = FormWindowState.Normal; WindowState = FormWindowState.Normal;
RResize(); DoResize();
WindowState = FormWindowState.Maximized; WindowState = FormWindowState.Maximized;
} }
else else
RResize(); DoResize();
CConfig.SaveConfig(); CConfig.SaveConfig();
} }
@@ -486,13 +486,13 @@ namespace Vocaluxe.Lib.Draw
if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON) if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON)
{ {
CSettings.bFullScreen = true; CSettings.IsFullScreen = true;
EnterFullScreen(); EnterFullScreen();
} }
//Resize window if aspect ratio is incorrect //Resize window if aspect ratio is incorrect
if (w / (float)h != CSettings.GetRenderAspect()) if (w / (float)h != CSettings.GetRenderAspect())
RResize(); DoResize();
while (_Run) while (_Run)
{ {
@@ -530,7 +530,7 @@ namespace Vocaluxe.Lib.Draw
} }
} }
//Apply fullscreen mode //Apply fullscreen mode
if (CSettings.bFullScreen != _fullscreen) if (CSettings.IsFullScreen != _fullscreen)
{ {
if (!_fullscreen) if (!_fullscreen)
EnterFullScreen(); EnterFullScreen();
+2 -2
View File
@@ -215,7 +215,7 @@ namespace Vocaluxe.Lib.Draw
if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON) if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON)
{ {
CSettings.bFullScreen = true; CSettings.IsFullScreen = true;
Maximize(this); Maximize(this);
} }
@@ -229,7 +229,7 @@ namespace Vocaluxe.Lib.Draw
_Run = CGraphics.UpdateGameLogic(_Keys, _Mouse); _Run = CGraphics.UpdateGameLogic(_Keys, _Mouse);
FlipBuffer(); FlipBuffer();
if ((CSettings.bFullScreen && !_fullscreen) || (!CSettings.bFullScreen && _fullscreen)) if ((CSettings.IsFullScreen && !_fullscreen) || (!CSettings.IsFullScreen && _fullscreen))
ToggleFullScreen(); ToggleFullScreen();
if (CTime.IsRunning()) if (CTime.IsRunning())
+6 -6
View File
@@ -277,11 +277,11 @@ namespace Vocaluxe.Lib.Draw
if (WindowState == FormWindowState.Maximized) if (WindowState == FormWindowState.Maximized)
{ {
WindowState = FormWindowState.Normal; WindowState = FormWindowState.Normal;
RResize(); DoResize();
WindowState = FormWindowState.Maximized; WindowState = FormWindowState.Maximized;
} }
else else
RResize(); DoResize();
CConfig.SaveConfig(); CConfig.SaveConfig();
} }
@@ -318,7 +318,7 @@ namespace Vocaluxe.Lib.Draw
base.OnResize(e); base.OnResize(e);
control.ClientSize = ClientSize; control.ClientSize = ClientSize;
RResize(); DoResize();
} }
protected override void WndProc(ref Message m) protected override void WndProc(ref Message m)
@@ -399,7 +399,7 @@ namespace Vocaluxe.Lib.Draw
} }
#endregion keyboard event handlers #endregion keyboard event handlers
private void RResize() private void DoResize()
{ {
h = control.Height; h = control.Height;
w = control.Width; w = control.Width;
@@ -452,7 +452,7 @@ namespace Vocaluxe.Lib.Draw
if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON) if (CConfig.FullScreen == EOffOn.TR_CONFIG_ON)
{ {
CSettings.bFullScreen = true; CSettings.IsFullScreen = true;
EnterFullScreen(); EnterFullScreen();
} }
@@ -468,7 +468,7 @@ namespace Vocaluxe.Lib.Draw
_Run = CGraphics.UpdateGameLogic(_Keys, _Mouse); _Run = CGraphics.UpdateGameLogic(_Keys, _Mouse);
control.SwapBuffers(); control.SwapBuffers();
if ((CSettings.bFullScreen && !_fullscreen) || (!CSettings.bFullScreen && _fullscreen)) if ((CSettings.IsFullScreen && !_fullscreen) || (!CSettings.IsFullScreen && _fullscreen))
ToggleFullScreen(); ToggleFullScreen();
CheckQueque(); CheckQueque();
+7 -7
View File
@@ -69,7 +69,7 @@ namespace Vocaluxe.Lib.Input.WiiMote
public struct AccelCalibrationInfo public struct AccelCalibrationInfo
{ {
public byte X0, Y0, Z0; //zero point public byte X0, Y0, Z0; //zero point
public byte XG, YG, ZG; //gravity public byte GravityX, GravityY, GravityZ; //gravity
} }
public struct Buttons public struct Buttons
@@ -413,11 +413,11 @@ namespace Vocaluxe.Lib.Input.WiiMote
_WiiMoteState.AccelState.RawValues.Z = buff[5]; _WiiMoteState.AccelState.RawValues.Z = buff[5];
_WiiMoteState.AccelState.Values.X = ((float)_WiiMoteState.AccelState.RawValues.X - _WiiMoteState.AccelCalibrationInfo.X0) / _WiiMoteState.AccelState.Values.X = ((float)_WiiMoteState.AccelState.RawValues.X - _WiiMoteState.AccelCalibrationInfo.X0) /
((float)_WiiMoteState.AccelCalibrationInfo.XG - _WiiMoteState.AccelCalibrationInfo.X0); ((float)_WiiMoteState.AccelCalibrationInfo.GravityX - _WiiMoteState.AccelCalibrationInfo.X0);
_WiiMoteState.AccelState.Values.Y = ((float)_WiiMoteState.AccelState.RawValues.Y - _WiiMoteState.AccelCalibrationInfo.Y0) / _WiiMoteState.AccelState.Values.Y = ((float)_WiiMoteState.AccelState.RawValues.Y - _WiiMoteState.AccelCalibrationInfo.Y0) /
((float)_WiiMoteState.AccelCalibrationInfo.YG - _WiiMoteState.AccelCalibrationInfo.Y0); ((float)_WiiMoteState.AccelCalibrationInfo.GravityY - _WiiMoteState.AccelCalibrationInfo.Y0);
_WiiMoteState.AccelState.Values.Z = ((float)_WiiMoteState.AccelState.RawValues.Z - _WiiMoteState.AccelCalibrationInfo.Z0) / _WiiMoteState.AccelState.Values.Z = ((float)_WiiMoteState.AccelState.RawValues.Z - _WiiMoteState.AccelCalibrationInfo.Z0) /
((float)_WiiMoteState.AccelCalibrationInfo.ZG - _WiiMoteState.AccelCalibrationInfo.Z0); ((float)_WiiMoteState.AccelCalibrationInfo.GravityZ - _WiiMoteState.AccelCalibrationInfo.Z0);
} }
private void ParseIR(byte[] buff) private void ParseIR(byte[] buff)
@@ -517,9 +517,9 @@ namespace Vocaluxe.Lib.Input.WiiMote
_WiiMoteState.AccelCalibrationInfo.X0 = buff[0]; _WiiMoteState.AccelCalibrationInfo.X0 = buff[0];
_WiiMoteState.AccelCalibrationInfo.Y0 = buff[1]; _WiiMoteState.AccelCalibrationInfo.Y0 = buff[1];
_WiiMoteState.AccelCalibrationInfo.Z0 = buff[2]; _WiiMoteState.AccelCalibrationInfo.Z0 = buff[2];
_WiiMoteState.AccelCalibrationInfo.XG = buff[4]; _WiiMoteState.AccelCalibrationInfo.GravityX = buff[4];
_WiiMoteState.AccelCalibrationInfo.YG = buff[5]; _WiiMoteState.AccelCalibrationInfo.GravityY = buff[5];
_WiiMoteState.AccelCalibrationInfo.ZG = buff[6]; _WiiMoteState.AccelCalibrationInfo.GravityZ = buff[6];
return true; return true;
} }
+5 -5
View File
@@ -15,7 +15,7 @@ namespace Vocaluxe.Lib.Sound
private readonly List<OpenAlStream> _Decoder = new List<OpenAlStream>(); private readonly List<OpenAlStream> _Decoder = new List<OpenAlStream>();
private CLOSEPROC closeproc; private CLOSEPROC closeproc;
private int _Count = 1; private int _Count = 1;
private AudioContext AC; private AudioContext _Context;
private readonly Object MutexDecoder = new Object(); private readonly Object MutexDecoder = new Object();
@@ -31,9 +31,9 @@ namespace Vocaluxe.Lib.Sound
if (_Initialized) if (_Initialized)
CloseAll(); CloseAll();
AC = new AudioContext(); _Context = new AudioContext();
AC.MakeCurrent(); _Context.MakeCurrent();
closeproc = close_proc; closeproc = close_proc;
@@ -344,8 +344,8 @@ namespace Vocaluxe.Lib.Sound
public void Dispose() public void Dispose()
{ {
AC.Dispose(); _Context.Dispose();
AC = null; _Context = null;
} }
} }
@@ -11,7 +11,7 @@ namespace Vocaluxe.Lib.Sound.Decoder
private IntPtr _instance = IntPtr.Zero; private IntPtr _instance = IntPtr.Zero;
private IntPtr _audiodecoder = IntPtr.Zero; private IntPtr _audiodecoder = IntPtr.Zero;
private TAc_instance _Instance; private AC_instance _Instance;
private FormatInfo _FormatInfo; private FormatInfo _FormatInfo;
private float _CurrentTime; private float _CurrentTime;
@@ -35,7 +35,7 @@ namespace Vocaluxe.Lib.Sound.Decoder
{ {
_instance = CAcinerella.ac_init(); _instance = CAcinerella.ac_init();
CAcinerella.ac_open2(_instance, _FileName); CAcinerella.ac_open2(_instance, _FileName);
_Instance = (TAc_instance)Marshal.PtrToStructure(_instance, typeof(TAc_instance)); _Instance = (AC_instance)Marshal.PtrToStructure(_instance, typeof(AC_instance));
} }
catch (Exception) catch (Exception)
{ {
@@ -51,11 +51,11 @@ namespace Vocaluxe.Lib.Sound.Decoder
} }
int AudioStreamIndex = -1; int AudioStreamIndex = -1;
TAc_decoder Audiodecoder; AC_decoder Audiodecoder;
try try
{ {
_audiodecoder = CAcinerella.ac_create_audio_decoder(_instance); _audiodecoder = CAcinerella.ac_create_audio_decoder(_instance);
Audiodecoder = (TAc_decoder)Marshal.PtrToStructure(_audiodecoder, typeof(TAc_decoder)); Audiodecoder = (AC_decoder)Marshal.PtrToStructure(_audiodecoder, typeof(AC_decoder));
AudioStreamIndex = Audiodecoder.stream_index; AudioStreamIndex = Audiodecoder.stream_index;
} }
catch (Exception) catch (Exception)
@@ -169,7 +169,7 @@ namespace Vocaluxe.Lib.Sound.Decoder
if (FrameFinished == 1) if (FrameFinished == 1)
{ {
TAc_decoder Decoder = (TAc_decoder)Marshal.PtrToStructure(_audiodecoder, typeof(TAc_decoder)); AC_decoder Decoder = (AC_decoder)Marshal.PtrToStructure(_audiodecoder, typeof(AC_decoder));
TimeStamp = (float)Decoder.timecode; TimeStamp = (float)Decoder.timecode;
_CurrentTime = TimeStamp; _CurrentTime = TimeStamp;
+1 -1
View File
@@ -236,7 +236,7 @@ namespace PortAudioSharp
paOutputUnderflowed, paOutputUnderflowed,
paHostApiNotFound, paHostApiNotFound,
paInvalidHostApi, paInvalidHostApi,
paCanNotReadFromACallbackStream, paCanNotReadFromCallbackStream,
paCanNotWriteToACallbackStream, paCanNotWriteToACallbackStream,
paCanNotReadFromAnOutputOnlyStream, paCanNotReadFromAnOutputOnlyStream,
paCanNotWriteToAnInputOnlyStream, paCanNotWriteToAnInputOnlyStream,
+23 -23
View File
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
namespace Vocaluxe.Lib.Video.Acinerella namespace Vocaluxe.Lib.Video.Acinerella
{ {
public enum TAc_stream_type : sbyte public enum AC_stream_type : sbyte
{ {
/*The type of the media stream is not known. This kind of stream can not be /*The type of the media stream is not known. This kind of stream can not be
decoded.*/ decoded.*/
@@ -15,7 +15,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
} }
//Defines the type of an Acinerella media decoder. //Defines the type of an Acinerella media decoder.
public enum TAc_decoder_type : byte public enum AC_decoder_type : byte
{ {
//This decoder is used to decode a video stream. //This decoder is used to decode a video stream.
AC_DECODER_TYPE_VIDEO = 0, AC_DECODER_TYPE_VIDEO = 0,
@@ -24,7 +24,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
} }
//Defines the format video/image data is outputted in //Defines the format video/image data is outputted in
public enum TAc_output_format : byte public enum AC_output_format : byte
{ {
AC_OUTPUT_RGB24 = 0, AC_OUTPUT_RGB24 = 0,
AC_OUTPUT_BGR24 = 1, AC_OUTPUT_BGR24 = 1,
@@ -35,7 +35,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
// Contains information about the whole file/stream that has been opened. Default // Contains information about the whole file/stream that has been opened. Default
// values are "" for strings and -1 for integer values. // values are "" for strings and -1 for integer values.
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct TAc_file_info public struct AC_file_info
{ {
public Int64 duration; public Int64 duration;
} }
@@ -44,7 +44,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
// decode one file at once. There can be only 26 Acinerella instances opened at // decode one file at once. There can be only 26 Acinerella instances opened at
// once. // once.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_instance public struct AC_instance
{ {
//If true, the instance currently opened a media file //If true, the instance currently opened a media file
public bool opened; public bool opened;
@@ -52,14 +52,14 @@ namespace Vocaluxe.Lib.Video.Acinerella
//after calling the ac_open function. //after calling the ac_open function.
public Int32 stream_count; public Int32 stream_count;
//Set this value to change the image output format //Set this value to change the image output format
public TAc_output_format output_format; public AC_output_format output_format;
//Contains information about the opened stream/file //Contains information about the opened stream/file
public TAc_file_info info; public AC_file_info info;
} }
// Contains information about an Acinerella audio stream. // Contains information about an Acinerella audio stream.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_audio_stream_info public struct AC_audio_stream_info
{ {
//Samples per second. Default values are 44100 or 48000. //Samples per second. Default values are 44100 or 48000.
public Int32 samples_per_second; public Int32 samples_per_second;
@@ -71,7 +71,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
// Contains information about an Acinerella video stream. // Contains information about an Acinerella video stream.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_video_stream_info public struct AC_video_stream_info
{ {
//The width of one frame. //The width of one frame.
public Int32 frame_width; public Int32 frame_width;
@@ -85,23 +85,23 @@ namespace Vocaluxe.Lib.Video.Acinerella
// Contains information about an Acinerella stream. // Contains information about an Acinerella stream.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_stream_info public struct AC_stream_info
{ {
//Contains the type of the stream. //Contains the type of the stream.
public TAc_stream_type stream_type; public AC_stream_type stream_type;
//Additional info about the stream //Additional info about the stream
public TAc_audio_stream_info audio_info; public AC_audio_stream_info audio_info;
public TAc_video_stream_info video_info; public AC_video_stream_info video_info;
} }
// Contains information about an Acinerella video/audio decoder. // Contains information about an Acinerella video/audio decoder.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_decoder public struct AC_decoder
{ {
//Pointer on the Acinerella instance //Pointer on the Acinerella instance
private readonly IntPtr pAcInstance; private readonly IntPtr ACInstancePtr;
//Contains the type of the decoder. //Contains the type of the decoder.
public TAc_decoder_type dec_type; public AC_decoder_type dec_type;
//The timecode of the currently decoded picture in seconds. //The timecode of the currently decoded picture in seconds.
public double timecode; public double timecode;
@@ -109,7 +109,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
public double video_clock; public double video_clock;
//Contains information about the stream the decoder is attached to. //Contains information about the stream the decoder is attached to.
public TAc_stream_info stream_info; public AC_stream_info stream_info;
//The index of the stream the decoder is attached to. //The index of the stream the decoder is attached to.
public Int32 stream_index; public Int32 stream_index;
@@ -121,7 +121,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
// Contains information about an Acinerella package. // Contains information about an Acinerella package.
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct TAc_package public struct AC_package
{ {
//The stream the package belongs to. //The stream the package belongs to.
public Int32 stream_index; public Int32 stream_index;
@@ -131,7 +131,7 @@ namespace Vocaluxe.Lib.Video.Acinerella
// the number of bytes read or an value smaller than zero if an error occured. // the number of bytes read or an value smaller than zero if an error occured.
//TAc_read_callback = function(sender: Pointer; byte[] buf, int size): integer; cdecl; //TAc_read_callback = function(sender: Pointer; byte[] buf, int size): integer; cdecl;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate Int32 TAc_read_callback( public delegate Int32 AC_read_callback(
IntPtr sender, IntPtr sender,
IntPtr buf, IntPtr buf,
Int32 size Int32 size
@@ -140,14 +140,14 @@ namespace Vocaluxe.Lib.Video.Acinerella
// Callback function used to ask the application to seek. return 0 if succeed , -1 on failure. // Callback function used to ask the application to seek. return 0 if succeed , -1 on failure.
//TAc_seek_callback = function(sender: Pointer; pos: int64; whence: integer): int64; cdecl; //TAc_seek_callback = function(sender: Pointer; pos: int64; whence: integer): int64; cdecl;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate Int64 TAc_seek_callback(IntPtr sender, Int64 pos, Int32 whence); public delegate Int64 AC_seek_callback(IntPtr sender, Int64 pos, Int32 whence);
// Callback function that is used to notify the application when the data stream // Callback function that is used to notify the application when the data stream
// is opened or closed. For example the file pointer should be resetted to zero // is opened or closed. For example the file pointer should be resetted to zero
// when the "open" function is called. // when the "open" function is called.
// TAc_openclose_callback = function(sender: Pointer): integer; cdecl; // TAc_openclose_callback = function(sender: Pointer): integer; cdecl;
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate Int32 TAc_openclose_callback(IntPtr sender); public delegate Int32 AC_openclose_callback(IntPtr sender);
public static class CAcinerella public static class CAcinerella
{ {
@@ -285,13 +285,13 @@ namespace Vocaluxe.Lib.Video.Acinerella
private static extern void _ac_get_stream_info( private static extern void _ac_get_stream_info(
IntPtr PAc_instance, IntPtr PAc_instance,
Int32 nb, Int32 nb,
out TAc_stream_info Info out AC_stream_info Info
); );
public static void ac_get_stream_info( public static void ac_get_stream_info(
IntPtr PAc_instance, IntPtr PAc_instance,
Int32 nb, Int32 nb,
out TAc_stream_info Info out AC_stream_info Info
) )
{ {
lock (_lock) lock (_lock)
+5 -5
View File
@@ -443,13 +443,13 @@ namespace Vocaluxe.Lib.Video
private void DoOpen() private void DoOpen()
{ {
bool ok = false; bool ok = false;
TAc_instance Instance = new TAc_instance(); AC_instance Instance = new AC_instance();
try try
{ {
_instance = CAcinerella.ac_init(); _instance = CAcinerella.ac_init();
CAcinerella.ac_open2(_instance, _FileName); CAcinerella.ac_open2(_instance, _FileName);
Instance = (TAc_instance)Marshal.PtrToStructure(_instance, typeof(TAc_instance)); Instance = (AC_instance)Marshal.PtrToStructure(_instance, typeof(AC_instance));
ok = Instance.opened; ok = Instance.opened;
} }
catch (Exception) catch (Exception)
@@ -468,11 +468,11 @@ namespace Vocaluxe.Lib.Video
_Duration = Instance.info.duration / 1000f; _Duration = Instance.info.duration / 1000f;
int VideoStreamIndex = -1; int VideoStreamIndex = -1;
TAc_decoder Videodecoder; AC_decoder Videodecoder;
try try
{ {
_videodecoder = CAcinerella.ac_create_video_decoder(_instance); _videodecoder = CAcinerella.ac_create_video_decoder(_instance);
Videodecoder = (TAc_decoder)Marshal.PtrToStructure(_videodecoder, typeof(TAc_decoder)); Videodecoder = (AC_decoder)Marshal.PtrToStructure(_videodecoder, typeof(AC_decoder));
VideoStreamIndex = Videodecoder.stream_index; VideoStreamIndex = Videodecoder.stream_index;
} }
catch (Exception) catch (Exception)
@@ -622,7 +622,7 @@ namespace Vocaluxe.Lib.Video
_BufferFull = true; _BufferFull = true;
else else
{ {
TAc_decoder Videodecoder = (TAc_decoder)Marshal.PtrToStructure(_videodecoder, typeof(TAc_decoder)); AC_decoder Videodecoder = (AC_decoder)Marshal.PtrToStructure(_videodecoder, typeof(AC_decoder));
_VideoDecoderTime = (float)Videodecoder.timecode; _VideoDecoderTime = (float)Videodecoder.timecode;
_FrameBuffer[num].time = _VideoDecoderTime; _FrameBuffer[num].time = _VideoDecoderTime;
+64 -64
View File
@@ -8,10 +8,10 @@ namespace VocaluxeLib.Menu
public string Name; public string Name;
public string ColorName; public string ColorName;
public string SColorName; public string SelColorName;
public string TextureName; public string TextureName;
public string STextureName; public string SelTextureName;
} }
public class CButton : IMenuElement public class CButton : IMenuElement
@@ -21,22 +21,22 @@ namespace VocaluxeLib.Menu
private readonly int _PartyModeID; private readonly int _PartyModeID;
public STexture Texture; public STexture Texture;
public STexture STexture; public STexture SelTexture;
public SRectF Rect; public SRectF Rect;
public SColorF Color; public SColorF Color;
public SColorF SColor; public SColorF SelColor;
public bool SelText; public bool IsSelText;
public CText Text; public CText Text;
public CText SText; public CText SelText;
public bool Reflection; public bool Reflection;
public float ReflectionSpace; public float ReflectionSpace;
public float ReflectionHeight; public float ReflectionHeight;
public bool SReflection; public bool SelReflection;
public float SReflectionSpace; public float SelReflectionSpace;
public float SReflectionHeight; public float SelReflectionHeight;
public bool Pressed; public bool Pressed;
@@ -46,7 +46,7 @@ namespace VocaluxeLib.Menu
set set
{ {
Text.EditMode = value; Text.EditMode = value;
SText.EditMode = value; SelText.EditMode = value;
} }
} }
@@ -74,13 +74,13 @@ namespace VocaluxeLib.Menu
_Theme = new SThemeButton(); _Theme = new SThemeButton();
Rect = new SRectF(); Rect = new SRectF();
Color = new SColorF(); Color = new SColorF();
SColor = new SColorF(); SelColor = new SColorF();
Texture = new STexture(-1); Texture = new STexture(-1);
STexture = new STexture(-1); SelTexture = new STexture(-1);
SelText = false; IsSelText = false;
Text = new CText(_PartyModeID); Text = new CText(_PartyModeID);
SText = new CText(_PartyModeID); SelText = new CText(_PartyModeID);
Selected = false; Selected = false;
Visible = true; Visible = true;
EditMode = false; EditMode = false;
@@ -90,9 +90,9 @@ namespace VocaluxeLib.Menu
ReflectionSpace = 0f; ReflectionSpace = 0f;
ReflectionHeight = 0f; ReflectionHeight = 0f;
SReflection = false; SelReflection = false;
SReflectionSpace = 0f; SelReflectionSpace = 0f;
SReflectionHeight = 0f; SelReflectionHeight = 0f;
} }
public CButton(CButton button) public CButton(CButton button)
@@ -100,19 +100,19 @@ namespace VocaluxeLib.Menu
_PartyModeID = button._PartyModeID; _PartyModeID = button._PartyModeID;
_Theme = new SThemeButton(); _Theme = new SThemeButton();
_Theme.ColorName = button._Theme.ColorName; _Theme.ColorName = button._Theme.ColorName;
_Theme.SColorName = button._Theme.SColorName; _Theme.SelColorName = button._Theme.SelColorName;
_Theme.TextureName = button._Theme.TextureName; _Theme.TextureName = button._Theme.TextureName;
_Theme.STextureName = button._Theme.STextureName; _Theme.SelTextureName = button._Theme.SelTextureName;
Rect = new SRectF(button.Rect); Rect = new SRectF(button.Rect);
Color = new SColorF(button.Color); Color = new SColorF(button.Color);
SColor = new SColorF(button.Color); SelColor = new SColorF(button.Color);
Texture = button.Texture; Texture = button.Texture;
STexture = button.STexture; SelTexture = button.SelTexture;
SelText = false; IsSelText = false;
Text = new CText(button.Text); Text = new CText(button.Text);
SText = new CText(button.SText); SelText = new CText(button.SelText);
Selected = false; Selected = false;
Visible = true; Visible = true;
EditMode = false; EditMode = false;
@@ -123,9 +123,9 @@ namespace VocaluxeLib.Menu
ReflectionHeight = button.ReflectionHeight; ReflectionHeight = button.ReflectionHeight;
ReflectionSpace = button.ReflectionSpace; ReflectionSpace = button.ReflectionSpace;
SReflection = button.SReflection; SelReflection = button.SelReflection;
SReflectionHeight = button.SReflectionHeight; SelReflectionHeight = button.SelReflectionHeight;
SReflectionSpace = button.SReflectionSpace; SelReflectionSpace = button.SelReflectionSpace;
} }
public bool LoadTheme(string XmlPath, string ElementName, CXMLReader xmlReader, int SkinIndex) public bool LoadTheme(string XmlPath, string ElementName, CXMLReader xmlReader, int SkinIndex)
@@ -134,7 +134,7 @@ namespace VocaluxeLib.Menu
_ThemeLoaded = true; _ThemeLoaded = true;
_ThemeLoaded &= xmlReader.GetValue(item + "/Skin", ref _Theme.TextureName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/Skin", ref _Theme.TextureName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinSelected", ref _Theme.STextureName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinSelected", ref _Theme.SelTextureName, String.Empty);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y);
@@ -152,23 +152,23 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A);
} }
if (xmlReader.GetValue(item + "/SColor", ref _Theme.SColorName, String.Empty)) if (xmlReader.GetValue(item + "/SColor", ref _Theme.SelColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SColorName, SkinIndex, out SColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelColorName, SkinIndex, out SelColor);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref SColor.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref SelColor.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SelColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SelColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SelColor.A);
} }
_ThemeLoaded &= Text.LoadTheme(item, "Text", xmlReader, SkinIndex, true); _ThemeLoaded &= Text.LoadTheme(item, "Text", xmlReader, SkinIndex, true);
Text.Z = Rect.Z; Text.Z = Rect.Z;
if (xmlReader.ItemExists(item + "/SText")) if (xmlReader.ItemExists(item + "/SText"))
{ {
SelText = true; IsSelText = true;
_ThemeLoaded &= SText.LoadTheme(item, "SText", xmlReader, SkinIndex, true); _ThemeLoaded &= SelText.LoadTheme(item, "SText", xmlReader, SkinIndex, true);
SText.Z = Rect.Z; SelText.Z = Rect.Z;
} }
@@ -184,12 +184,12 @@ namespace VocaluxeLib.Menu
if (xmlReader.ItemExists(item + "/SReflection")) if (xmlReader.ItemExists(item + "/SReflection"))
{ {
SReflection = true; SelReflection = true;
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SReflection/Space", ref SReflectionSpace); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SReflection/Space", ref SelReflectionSpace);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SReflection/Height", ref SReflectionHeight); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SReflection/Height", ref SelReflectionHeight);
} }
else else
SReflection = false; SelReflection = false;
if (_ThemeLoaded) if (_ThemeLoaded)
{ {
@@ -209,7 +209,7 @@ namespace VocaluxeLib.Menu
writer.WriteElementString("Skin", _Theme.TextureName); writer.WriteElementString("Skin", _Theme.TextureName);
writer.WriteComment("<SkinSelected>: Texture name for selected button"); writer.WriteComment("<SkinSelected>: Texture name for selected button");
writer.WriteElementString("SkinSelected", _Theme.STextureName); writer.WriteElementString("SkinSelected", _Theme.SelTextureName);
writer.WriteComment("<X>, <Y>, <Z>, <W>, <H>: Button position, width and height"); writer.WriteComment("<X>, <Y>, <Z>, <W>, <H>: Button position, width and height");
writer.WriteElementString("X", Rect.X.ToString("#0")); writer.WriteElementString("X", Rect.X.ToString("#0"));
@@ -232,19 +232,19 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SColor>: Selected button color from ColorScheme (high priority)"); writer.WriteComment("<SColor>: Selected button color from ColorScheme (high priority)");
writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)"); writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)");
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
writer.WriteElementString("SColor", _Theme.SColorName); writer.WriteElementString("SColor", _Theme.SelColorName);
else else
{ {
writer.WriteElementString("SR", SColor.R.ToString("#0.00")); writer.WriteElementString("SR", SelColor.R.ToString("#0.00"));
writer.WriteElementString("SG", SColor.G.ToString("#0.00")); writer.WriteElementString("SG", SelColor.G.ToString("#0.00"));
writer.WriteElementString("SB", SColor.B.ToString("#0.00")); writer.WriteElementString("SB", SelColor.B.ToString("#0.00"));
writer.WriteElementString("SA", SColor.A.ToString("#0.00")); writer.WriteElementString("SA", SelColor.A.ToString("#0.00"));
} }
Text.SaveTheme(writer); Text.SaveTheme(writer);
if (SelText) if (IsSelText)
SText.SaveTheme(writer); SelText.SaveTheme(writer);
writer.WriteComment("<Reflection> If exists:"); writer.WriteComment("<Reflection> If exists:");
writer.WriteComment(" <Space>: Reflection Space"); writer.WriteComment(" <Space>: Reflection Space");
@@ -260,7 +260,7 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SReflection> If exists:"); writer.WriteComment("<SReflection> If exists:");
writer.WriteComment(" <Space>: Reflection Space of selected button"); writer.WriteComment(" <Space>: Reflection Space of selected button");
writer.WriteComment(" <Height>: Reflection Height of selected button"); writer.WriteComment(" <Height>: Reflection Height of selected button");
if (SReflection) if (SelReflection)
{ {
writer.WriteStartElement("SReflection"); writer.WriteStartElement("SReflection");
writer.WriteElementString("Space", ReflectionSpace.ToString("#0")); writer.WriteElementString("Space", ReflectionSpace.ToString("#0"));
@@ -309,39 +309,39 @@ namespace VocaluxeLib.Menu
else else
Text.DrawRelative(Rect.X, Rect.Y); Text.DrawRelative(Rect.X, Rect.Y);
} }
else if (!SelText) else if (!IsSelText)
{ {
if (Texture.index != -1) if (Texture.index != -1)
texture = Texture; texture = Texture;
else else
texture = CBase.Theme.GetSkinTexture(_Theme.STextureName, _PartyModeID); texture = CBase.Theme.GetSkinTexture(_Theme.SelTextureName, _PartyModeID);
CBase.Drawing.DrawTexture(texture, Rect, SColor); CBase.Drawing.DrawTexture(texture, Rect, SelColor);
if (Reflection) if (Reflection)
{ {
CBase.Drawing.DrawTextureReflection(texture, Rect, SColor, Rect, ReflectionSpace, ReflectionHeight); CBase.Drawing.DrawTextureReflection(texture, Rect, SelColor, Rect, ReflectionSpace, ReflectionHeight);
Text.DrawRelative(Rect.X, Rect.Y, ReflectionSpace, ReflectionHeight, Rect.H); Text.DrawRelative(Rect.X, Rect.Y, ReflectionSpace, ReflectionHeight, Rect.H);
} }
else else
Text.DrawRelative(Rect.X, Rect.Y); Text.DrawRelative(Rect.X, Rect.Y);
} }
else if (SelText) else if (IsSelText)
{ {
if (STexture.index != -1) if (SelTexture.index != -1)
texture = STexture; texture = SelTexture;
else else
texture = CBase.Theme.GetSkinTexture(_Theme.STextureName, _PartyModeID); texture = CBase.Theme.GetSkinTexture(_Theme.SelTextureName, _PartyModeID);
CBase.Drawing.DrawTexture(texture, Rect, SColor); CBase.Drawing.DrawTexture(texture, Rect, SelColor);
if (Reflection) if (Reflection)
{ {
CBase.Drawing.DrawTextureReflection(texture, Rect, SColor, Rect, ReflectionSpace, ReflectionHeight); CBase.Drawing.DrawTextureReflection(texture, Rect, SelColor, Rect, ReflectionSpace, ReflectionHeight);
SText.DrawRelative(Rect.X, Rect.Y, ReflectionSpace, ReflectionHeight, Rect.H); SelText.DrawRelative(Rect.X, Rect.Y, ReflectionSpace, ReflectionHeight, Rect.H);
} }
else else
SText.DrawRelative(Rect.X, Rect.Y); SelText.DrawRelative(Rect.X, Rect.Y);
} }
} }
@@ -362,8 +362,8 @@ namespace VocaluxeLib.Menu
if (_Theme.ColorName.Length > 0) if (_Theme.ColorName.Length > 0)
Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID); Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID);
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
SColor = CBase.Theme.GetColor(_Theme.SColorName, _PartyModeID); SelColor = CBase.Theme.GetColor(_Theme.SelColorName, _PartyModeID);
} }
public void ReloadTextures() public void ReloadTextures()
+1 -3
View File
@@ -9,7 +9,7 @@ namespace VocaluxeLib.Menu
{ {
public static class CHelper public static class CHelper
{ {
public static int nCk(int n, int k) public static int CombinationCount(int n, int k)
{ {
if (k > n) if (k > n)
return 0; return 0;
@@ -24,8 +24,6 @@ namespace VocaluxeLib.Menu
k = n - k; k = n - k;
long result = n; long result = n;
long nl = n;
long nk = k;
for (long i = 1; i <= k - 1; i++) for (long i = 1; i <= k - 1; i++)
result = result * (n - i) / (i + 1); result = result * (n - i) / (i + 1);
+21 -21
View File
@@ -2,18 +2,18 @@
{ {
public enum EType public enum EType
{ {
TBackground, Background,
TButton, Button,
TSelectSlide, SelectSlide,
TText, Text,
TStatic, Static,
TSongMenu, SongMenu,
TLyric, Lyric,
TSingNote, SingNote,
TNameSelection, NameSelection,
TEqualizer, Equalizer,
TPlaylist, Playlist,
TParticleEffect ParticleEffect
} }
class CInteraction class CInteraction
@@ -35,15 +35,15 @@
{ {
get get
{ {
return _Type == EType.TBackground || return _Type == EType.Background ||
_Type == EType.TNameSelection || _Type == EType.NameSelection ||
_Type == EType.TText || _Type == EType.Text ||
_Type == EType.TStatic || _Type == EType.Static ||
_Type == EType.TSongMenu || _Type == EType.SongMenu ||
_Type == EType.TLyric || _Type == EType.Lyric ||
_Type == EType.TSingNote || _Type == EType.SingNote ||
_Type == EType.TEqualizer || _Type == EType.Equalizer ||
_Type == EType.TPlaylist; _Type == EType.Playlist;
} }
} }
+7 -7
View File
@@ -20,7 +20,7 @@ namespace VocaluxeLib.Menu
public string Name; public string Name;
public string ColorName; public string ColorName;
public string SColorName; public string SelColorName;
} }
public class CLyric : IMenuElement public class CLyric : IMenuElement
@@ -124,8 +124,8 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A);
} }
if (xmlReader.GetValue(item + "/SColor", ref _Theme.SColorName, String.Empty)) if (xmlReader.GetValue(item + "/SColor", ref _Theme.SelColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SColorName, SkinIndex, out ColorProcessed); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelColorName, SkinIndex, out ColorProcessed);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref ColorProcessed.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref ColorProcessed.R);
@@ -170,8 +170,8 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SColor>: Highlighted lyric color from ColorScheme (high priority)"); writer.WriteComment("<SColor>: Highlighted lyric color from ColorScheme (high priority)");
writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)"); writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)");
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
writer.WriteElementString("SColor", _Theme.SColorName); writer.WriteElementString("SColor", _Theme.SelColorName);
else else
{ {
writer.WriteElementString("SR", ColorProcessed.R.ToString("#0.00")); writer.WriteElementString("SR", ColorProcessed.R.ToString("#0.00"));
@@ -535,8 +535,8 @@ namespace VocaluxeLib.Menu
if (_Theme.ColorName.Length > 0) if (_Theme.ColorName.Length > 0)
Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID); Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID);
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
ColorProcessed = CBase.Theme.GetColor(_Theme.SColorName, _PartyModeID); ColorProcessed = CBase.Theme.GetColor(_Theme.SelColorName, _PartyModeID);
} }
public void ReloadTextures() public void ReloadTextures()
+149 -149
View File
@@ -130,9 +130,9 @@ namespace VocaluxeLib.Menu
} }
#region ThemeHandler #region ThemeHandler
protected delegate void DAddElement<T>(T Element, String key); protected delegate void AddElementHandler<T>(T Element, String key);
private void LoadThemeElement<T>(string[] Elements, DAddElement<T> MAddElement, CXMLReader xmlReader, int SkinIndex) where T : IMenuElement private void LoadThemeElement<T>(string[] Elements, AddElementHandler<T> AddElementHandler, CXMLReader xmlReader, int SkinIndex) where T : IMenuElement
{ {
if (Elements != null) if (Elements != null)
{ {
@@ -140,7 +140,7 @@ namespace VocaluxeLib.Menu
{ {
T Element = (T)Activator.CreateInstance(typeof(T), _PartyModeID); T Element = (T)Activator.CreateInstance(typeof(T), _PartyModeID);
if (Element.LoadTheme("//root/" + ThemeName, elName, xmlReader, SkinIndex)) if (Element.LoadTheme("//root/" + ThemeName, elName, xmlReader, SkinIndex))
MAddElement(Element, elName); AddElementHandler(Element, elName);
else else
CBase.Log.LogError("Can't load " + typeof(T).Name.Substring(1) + " \"" + elName + "\" in screen " + ThemeName); CBase.Log.LogError("Can't load " + typeof(T).Name.Substring(1) + " \"" + elName + "\" in screen " + ThemeName);
} }
@@ -595,7 +595,7 @@ namespace VocaluxeLib.Menu
{ {
if (keyEvent.Key == Keys.Left) if (keyEvent.Key == Keys.Left)
{ {
if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.TSelectSlide && keyEvent.Mod != EModifier.Shift) if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.SelectSlide && keyEvent.Mod != EModifier.Shift)
keyEvent.Handled = PrevElement(); keyEvent.Handled = PrevElement();
else else
keyEvent.Handled = _NextInteraction(keyEvent); keyEvent.Handled = _NextInteraction(keyEvent);
@@ -603,7 +603,7 @@ namespace VocaluxeLib.Menu
if (keyEvent.Key == Keys.Right) if (keyEvent.Key == Keys.Right)
{ {
if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.TSelectSlide && keyEvent.Mod != EModifier.Shift) if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.SelectSlide && keyEvent.Mod != EModifier.Shift)
keyEvent.Handled = NextElement(); keyEvent.Handled = NextElement();
else else
keyEvent.Handled = _NextInteraction(keyEvent); keyEvent.Handled = _NextInteraction(keyEvent);
@@ -828,15 +828,15 @@ namespace VocaluxeLib.Menu
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_IsVisible(i) && ( if (_IsVisible(i) && (
_Interactions[i].Type == EType.TButton || _Interactions[i].Type == EType.Button ||
_Interactions[i].Type == EType.TSelectSlide || _Interactions[i].Type == EType.SelectSlide ||
_Interactions[i].Type == EType.TStatic || _Interactions[i].Type == EType.Static ||
_Interactions[i].Type == EType.TNameSelection || _Interactions[i].Type == EType.NameSelection ||
_Interactions[i].Type == EType.TText || _Interactions[i].Type == EType.Text ||
_Interactions[i].Type == EType.TSongMenu || _Interactions[i].Type == EType.SongMenu ||
_Interactions[i].Type == EType.TEqualizer || _Interactions[i].Type == EType.Equalizer ||
_Interactions[i].Type == EType.TPlaylist || _Interactions[i].Type == EType.Playlist ||
_Interactions[i].Type == EType.TParticleEffect)) _Interactions[i].Type == EType.ParticleEffect))
{ {
ZSort zs = new ZSort(); ZSort zs = new ZSort();
zs.ID = i; zs.ID = i;
@@ -924,62 +924,62 @@ namespace VocaluxeLib.Menu
public void AddBackground(CBackground bg, String key) public void AddBackground(CBackground bg, String key)
{ {
_AddInteraction(_Backgrounds.Add(bg, key), EType.TBackground); _AddInteraction(_Backgrounds.Add(bg, key), EType.Background);
} }
public void AddButton(CButton button, String key) public void AddButton(CButton button, String key)
{ {
_AddInteraction(_Buttons.Add(button, key), EType.TButton); _AddInteraction(_Buttons.Add(button, key), EType.Button);
} }
public void AddSelectSlide(CSelectSlide slide, String key) public void AddSelectSlide(CSelectSlide slide, String key)
{ {
_AddInteraction(_SelectSlides.Add(slide, key), EType.TSelectSlide); _AddInteraction(_SelectSlides.Add(slide, key), EType.SelectSlide);
} }
public void AddStatic(CStatic stat, String key) public void AddStatic(CStatic stat, String key)
{ {
_AddInteraction(_Statics.Add(stat, key), EType.TStatic); _AddInteraction(_Statics.Add(stat, key), EType.Static);
} }
public void AddText(CText text, String key) public void AddText(CText text, String key)
{ {
_AddInteraction(_Texts.Add(text, key), EType.TText); _AddInteraction(_Texts.Add(text, key), EType.Text);
} }
public void AddSongMenu(CSongMenu songmenu, String key) public void AddSongMenu(CSongMenu songmenu, String key)
{ {
_AddInteraction(_SongMenus.Add(songmenu, key), EType.TSongMenu); _AddInteraction(_SongMenus.Add(songmenu, key), EType.SongMenu);
} }
public void AddLyric(CLyric lyric, String key) public void AddLyric(CLyric lyric, String key)
{ {
_AddInteraction(_Lyrics.Add(lyric, key), EType.TLyric); _AddInteraction(_Lyrics.Add(lyric, key), EType.Lyric);
} }
public void AddSingNote(CSingNotes sn, String key) public void AddSingNote(CSingNotes sn, String key)
{ {
_AddInteraction(_SingNotes.Add(sn, key), EType.TSingNote); _AddInteraction(_SingNotes.Add(sn, key), EType.SingNote);
} }
public void AddNameSelection(CNameSelection ns, String key) public void AddNameSelection(CNameSelection ns, String key)
{ {
_AddInteraction(_NameSelections.Add(ns, key), EType.TNameSelection); _AddInteraction(_NameSelections.Add(ns, key), EType.NameSelection);
} }
public void AddEqualizer(CEqualizer eq, String key) public void AddEqualizer(CEqualizer eq, String key)
{ {
_AddInteraction(_Equalizers.Add(eq, key), EType.TEqualizer); _AddInteraction(_Equalizers.Add(eq, key), EType.Equalizer);
} }
public void AddPlaylist(CPlaylist pls, String key) public void AddPlaylist(CPlaylist pls, String key)
{ {
_AddInteraction(_Playlists.Add(pls, key), EType.TPlaylist); _AddInteraction(_Playlists.Add(pls, key), EType.Playlist);
} }
public void AddParticleEffect(CParticleEffect pe, String key) public void AddParticleEffect(CParticleEffect pe, String key)
{ {
_AddInteraction(_ParticleEffects.Add(pe, key), EType.TParticleEffect); _AddInteraction(_ParticleEffects.Add(pe, key), EType.ParticleEffect);
} }
public void AddScreenSetting(CScreenSetting se, String key) public void AddScreenSetting(CScreenSetting se, String key)
@@ -1035,7 +1035,7 @@ namespace VocaluxeLib.Menu
{ {
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_Interactions[i].Type == EType.TButton) if (_Interactions[i].Type == EType.Button)
{ {
if (_Buttons[_Interactions[i].Num] == button) if (_Buttons[_Interactions[i].Num] == button)
{ {
@@ -1054,7 +1054,7 @@ namespace VocaluxeLib.Menu
{ {
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_Interactions[i].Type == EType.TSelectSlide) if (_Interactions[i].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[i].Num] == slide) if (_SelectSlides[_Interactions[i].Num] == slide)
{ {
@@ -1074,7 +1074,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[_Selection].Num].Visible) if (_SelectSlides[_Interactions[_Selection].Num].Visible)
_SelectSlides[_Interactions[_Selection].Num].ProcessMouseLBClick(x, y); _SelectSlides[_Interactions[_Selection].Num].ProcessMouseLBClick(x, y);
@@ -1088,7 +1088,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[_Selection].Num].Visible) if (_SelectSlides[_Interactions[_Selection].Num].Visible)
_SelectSlides[_Interactions[_Selection].Num].ProcessMouseMove(x, y); _SelectSlides[_Interactions[_Selection].Num].ProcessMouseMove(x, y);
@@ -1136,46 +1136,46 @@ namespace VocaluxeLib.Menu
{ {
switch (interact.Type) switch (interact.Type)
{ {
case EType.TButton: case EType.Button:
if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) || if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) ||
CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) ||
CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y)) CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y))
return true; return true;
break; break;
case EType.TStatic: case EType.Static:
if (CHelper.IsInBounds(_Statics[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Statics[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TText: case EType.Text:
RectangleF bounds = CBase.Drawing.GetTextBounds(_Texts[interact.Num]); RectangleF bounds = CBase.Drawing.GetTextBounds(_Texts[interact.Num]);
if (CHelper.IsInBounds(new SRectF(_Texts[interact.Num].X, _Texts[interact.Num].Y, bounds.Width, bounds.Height, _Texts[interact.Num].Z), x, y)) if (CHelper.IsInBounds(new SRectF(_Texts[interact.Num].X, _Texts[interact.Num].Y, bounds.Width, bounds.Height, _Texts[interact.Num].Z), x, y))
return true; return true;
break; break;
case EType.TSongMenu: case EType.SongMenu:
if (CHelper.IsInBounds(_SongMenus[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_SongMenus[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TLyric: case EType.Lyric:
if (CHelper.IsInBounds(_Lyrics[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Lyrics[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TNameSelection: case EType.NameSelection:
if (CHelper.IsInBounds(_NameSelections[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_NameSelections[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TEqualizer: case EType.Equalizer:
if (CHelper.IsInBounds(_Equalizers[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Equalizers[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TPlaylist: case EType.Playlist:
if (CHelper.IsInBounds(_Playlists[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Playlists[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
if (CHelper.IsInBounds(_ParticleEffects[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_ParticleEffects[interact.Num].Rect, x, y))
return true; return true;
break; break;
@@ -1187,25 +1187,25 @@ namespace VocaluxeLib.Menu
{ {
switch (interact.Type) switch (interact.Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[interact.Num].Rect.Z; return _Buttons[interact.Num].Rect.Z;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[interact.Num].Rect.Z; return _SelectSlides[interact.Num].Rect.Z;
case EType.TStatic: case EType.Static:
return _Statics[interact.Num].Rect.Z; return _Statics[interact.Num].Rect.Z;
case EType.TSongMenu: case EType.SongMenu:
return _SongMenus[interact.Num].Rect.Z; return _SongMenus[interact.Num].Rect.Z;
case EType.TText: case EType.Text:
return _Texts[interact.Num].Z; return _Texts[interact.Num].Z;
case EType.TLyric: case EType.Lyric:
return _Lyrics[interact.Num].Rect.Z; return _Lyrics[interact.Num].Rect.Z;
case EType.TNameSelection: case EType.NameSelection:
return _NameSelections[interact.Num].Rect.Z; return _NameSelections[interact.Num].Rect.Z;
case EType.TEqualizer: case EType.Equalizer:
return _Equalizers[interact.Num].Rect.Z; return _Equalizers[interact.Num].Rect.Z;
case EType.TPlaylist: case EType.Playlist:
return _Playlists[interact.Num].Rect.Z; return _Playlists[interact.Num].Rect.Z;
case EType.TParticleEffect: case EType.ParticleEffect:
return _ParticleEffects[interact.Num].Rect.Z; return _ParticleEffects[interact.Num].Rect.Z;
} }
return CBase.Settings.GetZFar(); return CBase.Settings.GetZFar();
@@ -1498,7 +1498,7 @@ namespace VocaluxeLib.Menu
/// <returns>True if the next element is selected. False if either there is no next element or the interaction does not provide such a method.</returns> /// <returns>True if the next element is selected. False if either there is no next element or the interaction does not provide such a method.</returns>
private bool _NextElement() private bool _NextElement()
{ {
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].NextValue(); return _SelectSlides[_Interactions[_Selection].Num].NextValue();
return false; return false;
@@ -1512,7 +1512,7 @@ namespace VocaluxeLib.Menu
/// </returns> /// </returns>
private bool _PrevElement() private bool _PrevElement()
{ {
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].PrevValue(); return _SelectSlides[_Interactions[_Selection].Num].PrevValue();
return false; return false;
@@ -1522,34 +1522,34 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].Selected = true; _Buttons[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].Selected = true; _SelectSlides[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TStatic: case EType.Static:
_Statics[_Interactions[_Selection].Num].Selected = true; _Statics[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[_Selection].Num].Selected = true; _Texts[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TSongMenu: case EType.SongMenu:
_SongMenus[_Interactions[_Selection].Num].Selected = true; _SongMenus[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TLyric: case EType.Lyric:
_Lyrics[_Interactions[_Selection].Num].Selected = true; _Lyrics[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TNameSelection: case EType.NameSelection:
_NameSelections[_Interactions[_Selection].Num].Selected = true; _NameSelections[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TEqualizer: case EType.Equalizer:
_Equalizers[_Interactions[_Selection].Num].Selected = true; _Equalizers[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TPlaylist: case EType.Playlist:
_Playlists[_Interactions[_Selection].Num].Selected = true; _Playlists[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
_ParticleEffects[_Interactions[_Selection].Num].Selected = true; _ParticleEffects[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -1559,34 +1559,34 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].Selected = false; _Buttons[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].Selected = false; _SelectSlides[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TStatic: case EType.Static:
_Statics[_Interactions[_Selection].Num].Selected = false; _Statics[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[_Selection].Num].Selected = false; _Texts[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TSongMenu: case EType.SongMenu:
_SongMenus[_Interactions[_Selection].Num].Selected = false; _SongMenus[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TLyric: case EType.Lyric:
_Lyrics[_Interactions[_Selection].Num].Selected = false; _Lyrics[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TNameSelection: case EType.NameSelection:
_NameSelections[_Interactions[_Selection].Num].Selected = false; _NameSelections[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TEqualizer: case EType.Equalizer:
_Equalizers[_Interactions[_Selection].Num].Selected = false; _Equalizers[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TPlaylist: case EType.Playlist:
_Playlists[_Interactions[_Selection].Num].Selected = false; _Playlists[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
_ParticleEffects[_Interactions[_Selection].Num].Selected = false; _ParticleEffects[_Interactions[_Selection].Num].Selected = false;
break; break;
} }
@@ -1599,28 +1599,28 @@ namespace VocaluxeLib.Menu
switch (_Interactions[selection].Type) switch (_Interactions[selection].Type)
{ {
case EType.TButton: case EType.Button:
//_Buttons[_Interactions[selection].Num].Selected = true; //_Buttons[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[selection].Num].Highlighted = true; _SelectSlides[_Interactions[selection].Num].Highlighted = true;
break; break;
case EType.TStatic: case EType.Static:
//_Statics[_Interactions[selection].Num].Selected = true; //_Statics[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TText: case EType.Text:
//_Texts[_Interactions[selection].Num].Selected = true; //_Texts[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TSongMenu: case EType.SongMenu:
//_SongMenus[_Interactions[selection].Num].Selected = true; //_SongMenus[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TLyric: case EType.Lyric:
//_Lyrics[_Interactions[selection].Num].Selected = true; //_Lyrics[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TNameSelection: case EType.NameSelection:
//_NameSelections[_Interactions[selection].Num].Selected = true; //_NameSelections[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TPlaylist: case EType.Playlist:
//_Playlists[_Interactions[_Selection].Num].Selected = true; //_Playlists[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -1633,28 +1633,28 @@ namespace VocaluxeLib.Menu
switch (_Interactions[selection].Type) switch (_Interactions[selection].Type)
{ {
case EType.TButton: case EType.Button:
//_Buttons[_Interactions[selection].Num].Selected = false; //_Buttons[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[selection].Num].Highlighted = false; _SelectSlides[_Interactions[selection].Num].Highlighted = false;
break; break;
case EType.TStatic: case EType.Static:
//_Statics[_Interactions[selection].Num].Selected = false; //_Statics[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TText: case EType.Text:
//_Texts[_Interactions[selection].Num].Selected = false; //_Texts[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TSongMenu: case EType.SongMenu:
//_SongMenus[_Interactions[selection].Num].Selected = false; //_SongMenus[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TLyric: case EType.Lyric:
//_Lyrics[_Interactions[selection].Num].Selected = false; //_Lyrics[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TNameSelection: case EType.NameSelection:
//_NameSelections[_Interactions[selection].Num].Selected = false; //_NameSelections[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TPlaylist: case EType.Playlist:
//_Playlists[_Interactions[_Selection].Num].Selected = true; //_Playlists[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -1665,7 +1665,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
_SelectSlides[_Interactions[_Selection].Num].Highlighted = !_SelectSlides[_Interactions[_Selection].Num].Highlighted; _SelectSlides[_Interactions[_Selection].Num].Highlighted = !_SelectSlides[_Interactions[_Selection].Num].Highlighted;
} }
@@ -1674,7 +1674,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return false; return false;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].Highlighted; return _SelectSlides[_Interactions[_Selection].Num].Highlighted;
return false; return false;
@@ -1687,34 +1687,34 @@ namespace VocaluxeLib.Menu
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Visible; return _Buttons[_Interactions[interaction].Num].Visible;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Visible; return _SelectSlides[_Interactions[interaction].Num].Visible;
case EType.TStatic: case EType.Static:
return _Statics[_Interactions[interaction].Num].Visible; return _Statics[_Interactions[interaction].Num].Visible;
case EType.TText: case EType.Text:
return _Texts[_Interactions[interaction].Num].Visible; return _Texts[_Interactions[interaction].Num].Visible;
case EType.TSongMenu: case EType.SongMenu:
return _SongMenus[_Interactions[interaction].Num].Visible; return _SongMenus[_Interactions[interaction].Num].Visible;
case EType.TLyric: case EType.Lyric:
return _Lyrics[_Interactions[interaction].Num].Visible; return _Lyrics[_Interactions[interaction].Num].Visible;
case EType.TNameSelection: case EType.NameSelection:
return _NameSelections[_Interactions[interaction].Num].Visible; return _NameSelections[_Interactions[interaction].Num].Visible;
case EType.TEqualizer: case EType.Equalizer:
return _Equalizers[_Interactions[interaction].Num].Visible; return _Equalizers[_Interactions[interaction].Num].Visible;
case EType.TPlaylist: case EType.Playlist:
return _Playlists[_Interactions[interaction].Num].Visible; return _Playlists[_Interactions[interaction].Num].Visible;
case EType.TParticleEffect: case EType.ParticleEffect:
return _ParticleEffects[_Interactions[interaction].Num].Visible; return _ParticleEffects[_Interactions[interaction].Num].Visible;
} }
@@ -1728,34 +1728,34 @@ namespace VocaluxeLib.Menu
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Enabled; return _Buttons[_Interactions[interaction].Num].Enabled;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Visible; return _SelectSlides[_Interactions[interaction].Num].Visible;
case EType.TStatic: case EType.Static:
return false; //_Statics[_Interactions[interaction].Num].Visible; return false; //_Statics[_Interactions[interaction].Num].Visible;
case EType.TText: case EType.Text:
return false; //_Texts[_Interactions[interaction].Num].Visible; return false; //_Texts[_Interactions[interaction].Num].Visible;
case EType.TSongMenu: case EType.SongMenu:
return _SongMenus[_Interactions[interaction].Num].Visible; return _SongMenus[_Interactions[interaction].Num].Visible;
case EType.TLyric: case EType.Lyric:
return false; //_Lyrics[_Interactions[interaction].Num].Visible; return false; //_Lyrics[_Interactions[interaction].Num].Visible;
case EType.TNameSelection: case EType.NameSelection:
return _NameSelections[_Interactions[interaction].Num].Visible; return _NameSelections[_Interactions[interaction].Num].Visible;
case EType.TEqualizer: case EType.Equalizer:
return false; //_Equalizers[_Interactions[interaction].Num].Visible; return false; //_Equalizers[_Interactions[interaction].Num].Visible;
case EType.TPlaylist: case EType.Playlist:
return _Playlists[_Interactions[interaction].Num].Visible; return _Playlists[_Interactions[interaction].Num].Visible;
case EType.TParticleEffect: case EType.ParticleEffect:
return false; //_ParticleEffects[_Interactions[interaction].Num].Visible; return false; //_ParticleEffects[_Interactions[interaction].Num].Visible;
} }
@@ -1767,34 +1767,34 @@ namespace VocaluxeLib.Menu
SRectF Result = new SRectF(); SRectF Result = new SRectF();
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Rect; return _Buttons[_Interactions[interaction].Num].Rect;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Rect; return _SelectSlides[_Interactions[interaction].Num].Rect;
case EType.TStatic: case EType.Static:
return _Statics[_Interactions[interaction].Num].Rect; return _Statics[_Interactions[interaction].Num].Rect;
case EType.TText: case EType.Text:
return _Texts[_Interactions[interaction].Num].Bounds; return _Texts[_Interactions[interaction].Num].Bounds;
case EType.TSongMenu: case EType.SongMenu:
return _SongMenus[_Interactions[interaction].Num].Rect; return _SongMenus[_Interactions[interaction].Num].Rect;
case EType.TLyric: case EType.Lyric:
return _Lyrics[_Interactions[interaction].Num].Rect; return _Lyrics[_Interactions[interaction].Num].Rect;
case EType.TNameSelection: case EType.NameSelection:
return _NameSelections[_Interactions[interaction].Num].Rect; return _NameSelections[_Interactions[interaction].Num].Rect;
case EType.TEqualizer: case EType.Equalizer:
return _Equalizers[_Interactions[interaction].Num].Rect; return _Equalizers[_Interactions[interaction].Num].Rect;
case EType.TPlaylist: case EType.Playlist:
return _Playlists[_Interactions[interaction].Num].Rect; return _Playlists[_Interactions[interaction].Num].Rect;
case EType.TParticleEffect: case EType.ParticleEffect:
return _ParticleEffects[_Interactions[interaction].Num].Rect; return _ParticleEffects[_Interactions[interaction].Num].Rect;
} }
@@ -1814,31 +1814,31 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[interaction].Num].Draw(); _Buttons[_Interactions[interaction].Num].Draw();
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[interaction].Num].Draw(); _SelectSlides[_Interactions[interaction].Num].Draw();
break; break;
case EType.TStatic: case EType.Static:
_Statics[_Interactions[interaction].Num].Draw(); _Statics[_Interactions[interaction].Num].Draw();
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[interaction].Num].Draw(); _Texts[_Interactions[interaction].Num].Draw();
break; break;
case EType.TSongMenu: case EType.SongMenu:
_SongMenus[_Interactions[interaction].Num].Draw(); _SongMenus[_Interactions[interaction].Num].Draw();
break; break;
case EType.TNameSelection: case EType.NameSelection:
_NameSelections[_Interactions[interaction].Num].Draw(); _NameSelections[_Interactions[interaction].Num].Draw();
break; break;
case EType.TEqualizer: case EType.Equalizer:
if (!_Equalizers[_Interactions[interaction].Num].ScreenHandles) if (!_Equalizers[_Interactions[interaction].Num].ScreenHandles)
{ {
//TODO: //TODO:
@@ -1847,11 +1847,11 @@ namespace VocaluxeLib.Menu
} }
break; break;
case EType.TPlaylist: case EType.Playlist:
_Playlists[_Interactions[interaction].Num].Draw(); _Playlists[_Interactions[interaction].Num].Draw();
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
_ParticleEffects[_Interactions[interaction].Num].Draw(); _ParticleEffects[_Interactions[interaction].Num].Draw();
break; break;
@@ -1870,43 +1870,43 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Buttons[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _SelectSlides[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TStatic: case EType.Static:
_Statics[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Statics[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Texts[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TSongMenu: case EType.SongMenu:
_SongMenus[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _SongMenus[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TLyric: case EType.Lyric:
_Lyrics[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Lyrics[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TNameSelection: case EType.NameSelection:
_NameSelections[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _NameSelections[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TEqualizer: case EType.Equalizer:
_Equalizers[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Equalizers[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TPlaylist: case EType.Playlist:
_Playlists[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Playlists[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
_ParticleEffects[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _ParticleEffects[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
} }
@@ -1919,43 +1919,43 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Buttons[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _SelectSlides[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TStatic: case EType.Static:
_Statics[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Statics[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Texts[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TSongMenu: case EType.SongMenu:
_SongMenus[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _SongMenus[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TLyric: case EType.Lyric:
_Lyrics[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Lyrics[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TNameSelection: case EType.NameSelection:
_NameSelections[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _NameSelections[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TEqualizer: case EType.Equalizer:
_Equalizers[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Equalizers[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TPlaylist: case EType.Playlist:
_Playlists[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Playlists[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TParticleEffect: case EType.ParticleEffect:
_ParticleEffects[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _ParticleEffects[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
} }
+69 -69
View File
@@ -109,7 +109,7 @@ namespace VocaluxeLib.Menu
{ {
if (KeyEvent.Key == Keys.Left) if (KeyEvent.Key == Keys.Left)
{ {
if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.TSelectSlide && KeyEvent.Mod != EModifier.Shift) if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.SelectSlide && KeyEvent.Mod != EModifier.Shift)
KeyEvent.Handled = PrevElement(); KeyEvent.Handled = PrevElement();
else else
KeyEvent.Handled = _NextInteraction(KeyEvent); KeyEvent.Handled = _NextInteraction(KeyEvent);
@@ -117,7 +117,7 @@ namespace VocaluxeLib.Menu
if (KeyEvent.Key == Keys.Right) if (KeyEvent.Key == Keys.Right)
{ {
if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.TSelectSlide && KeyEvent.Mod != EModifier.Shift) if (_Interactions.Count > 0 && _Interactions[_Selection].Type == EType.SelectSlide && KeyEvent.Mod != EModifier.Shift)
KeyEvent.Handled = NextElement(); KeyEvent.Handled = NextElement();
else else
KeyEvent.Handled = _NextInteraction(KeyEvent); KeyEvent.Handled = _NextInteraction(KeyEvent);
@@ -293,13 +293,13 @@ namespace VocaluxeLib.Menu
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_IsVisible(i) && ( if (_IsVisible(i) && (
_Interactions[i].Type == EType.TButton || _Interactions[i].Type == EType.Button ||
_Interactions[i].Type == EType.TSelectSlide || _Interactions[i].Type == EType.SelectSlide ||
_Interactions[i].Type == EType.TStatic || _Interactions[i].Type == EType.Static ||
_Interactions[i].Type == EType.TNameSelection || _Interactions[i].Type == EType.NameSelection ||
_Interactions[i].Type == EType.TText || _Interactions[i].Type == EType.Text ||
_Interactions[i].Type == EType.TSongMenu || _Interactions[i].Type == EType.SongMenu ||
_Interactions[i].Type == EType.TEqualizer)) _Interactions[i].Type == EType.Equalizer))
{ {
ZSort zs = new ZSort(); ZSort zs = new ZSort();
zs.ID = i; zs.ID = i;
@@ -323,28 +323,28 @@ namespace VocaluxeLib.Menu
public int AddStatic(CStatic stat) public int AddStatic(CStatic stat)
{ {
_Statics.Add(stat); _Statics.Add(stat);
_AddInteraction(_Statics.Count - 1, EType.TStatic); _AddInteraction(_Statics.Count - 1, EType.Static);
return _Statics.Count - 1; return _Statics.Count - 1;
} }
public int AddText(CText text) public int AddText(CText text)
{ {
_Texts.Add(text); _Texts.Add(text);
_AddInteraction(_Texts.Count - 1, EType.TText); _AddInteraction(_Texts.Count - 1, EType.Text);
return _Texts.Count - 1; return _Texts.Count - 1;
} }
public int AddButton(CButton button) public int AddButton(CButton button)
{ {
_Buttons.Add(button); _Buttons.Add(button);
_AddInteraction(_Buttons.Count - 1, EType.TButton); _AddInteraction(_Buttons.Count - 1, EType.Button);
return _Buttons.Count - 1; return _Buttons.Count - 1;
} }
public int AddSelectSlide(CSelectSlide slide) public int AddSelectSlide(CSelectSlide slide)
{ {
_SelectSlides.Add(slide); _SelectSlides.Add(slide);
_AddInteraction(_SelectSlides.Count - 1, EType.TSelectSlide); _AddInteraction(_SelectSlides.Count - 1, EType.SelectSlide);
return _SelectSlides.Count - 1; return _SelectSlides.Count - 1;
} }
#endregion Elements #endregion Elements
@@ -390,7 +390,7 @@ namespace VocaluxeLib.Menu
{ {
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_Interactions[i].Type == EType.TButton) if (_Interactions[i].Type == EType.Button)
{ {
if (_Buttons[_Interactions[i].Num].Visible && _Buttons[_Interactions[i].Num] == button) if (_Buttons[_Interactions[i].Num].Visible && _Buttons[_Interactions[i].Num] == button)
{ {
@@ -409,7 +409,7 @@ namespace VocaluxeLib.Menu
{ {
for (int i = 0; i < _Interactions.Count; i++) for (int i = 0; i < _Interactions.Count; i++)
{ {
if (_Interactions[i].Type == EType.TSelectSlide) if (_Interactions[i].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[i].Num].Visible && _SelectSlides[_Interactions[i].Num] == slide) if (_SelectSlides[_Interactions[i].Num].Visible && _SelectSlides[_Interactions[i].Num] == slide)
{ {
@@ -429,7 +429,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[_Selection].Num].Visible) if (_SelectSlides[_Interactions[_Selection].Num].Visible)
_SelectSlides[_Interactions[_Selection].Num].ProcessMouseLBClick(x, y); _SelectSlides[_Interactions[_Selection].Num].ProcessMouseLBClick(x, y);
@@ -443,7 +443,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
{ {
if (_SelectSlides[_Interactions[_Selection].Num].Visible) if (_SelectSlides[_Interactions[_Selection].Num].Visible)
_SelectSlides[_Interactions[_Selection].Num].ProcessMouseMove(x, y); _SelectSlides[_Interactions[_Selection].Num].ProcessMouseMove(x, y);
@@ -491,11 +491,11 @@ namespace VocaluxeLib.Menu
{ {
switch (interact.Type) switch (interact.Type)
{ {
case EType.TButton: case EType.Button:
if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y)) if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y))
return true; return true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) || if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) ||
CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) ||
CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y)) CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y))
@@ -509,13 +509,13 @@ namespace VocaluxeLib.Menu
{ {
switch (interact.Type) switch (interact.Type)
{ {
case EType.TStatic: case EType.Static:
return _Statics[interact.Num].Rect.Z; return _Statics[interact.Num].Rect.Z;
case EType.TText: case EType.Text:
return _Texts[interact.Num].Z; return _Texts[interact.Num].Z;
case EType.TButton: case EType.Button:
return _Buttons[interact.Num].Rect.Z; return _Buttons[interact.Num].Rect.Z;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[interact.Num].Rect.Z; return _SelectSlides[interact.Num].Rect.Z;
} }
return CBase.Settings.GetZFar(); return CBase.Settings.GetZFar();
@@ -525,13 +525,13 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TStatic: case EType.Static:
return _Statics[_Interactions[interaction].Num].Rect.Z; return _Statics[_Interactions[interaction].Num].Rect.Z;
case EType.TText: case EType.Text:
return _Texts[_Interactions[interaction].Num].Z; return _Texts[_Interactions[interaction].Num].Z;
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Rect.Z; return _Buttons[_Interactions[interaction].Num].Rect.Z;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Rect.Z; return _SelectSlides[_Interactions[interaction].Num].Rect.Z;
} }
@@ -820,7 +820,7 @@ namespace VocaluxeLib.Menu
/// <returns>True if the next element is selected. False if either there is no next element or the interaction does not provide such a method.</returns> /// <returns>True if the next element is selected. False if either there is no next element or the interaction does not provide such a method.</returns>
private bool _NextElement() private bool _NextElement()
{ {
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].NextValue(); return _SelectSlides[_Interactions[_Selection].Num].NextValue();
return false; return false;
@@ -834,7 +834,7 @@ namespace VocaluxeLib.Menu
/// </returns> /// </returns>
private bool _PrevElement() private bool _PrevElement()
{ {
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].PrevValue(); return _SelectSlides[_Interactions[_Selection].Num].PrevValue();
return false; return false;
@@ -844,10 +844,10 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].Selected = true; _Buttons[_Interactions[_Selection].Num].Selected = true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].Selected = true; _SelectSlides[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -857,10 +857,10 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].Selected = false; _Buttons[_Interactions[_Selection].Num].Selected = false;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].Selected = false; _SelectSlides[_Interactions[_Selection].Num].Selected = false;
break; break;
} }
@@ -873,28 +873,28 @@ namespace VocaluxeLib.Menu
switch (_Interactions[selection].Type) switch (_Interactions[selection].Type)
{ {
case EType.TButton: case EType.Button:
//_Buttons[_Interactions[selection].Num].Selected = true; //_Buttons[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[selection].Num].Highlighted = true; _SelectSlides[_Interactions[selection].Num].Highlighted = true;
break; break;
case EType.TStatic: case EType.Static:
//_Statics[_Interactions[selection].Num].Selected = true; //_Statics[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TText: case EType.Text:
//_Texts[_Interactions[selection].Num].Selected = true; //_Texts[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TSongMenu: case EType.SongMenu:
//_SongMenus[_Interactions[selection].Num].Selected = true; //_SongMenus[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TLyric: case EType.Lyric:
//_Lyrics[_Interactions[selection].Num].Selected = true; //_Lyrics[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TNameSelection: case EType.NameSelection:
//_NameSelections[_Interactions[selection].Num].Selected = true; //_NameSelections[_Interactions[selection].Num].Selected = true;
break; break;
case EType.TPlaylist: case EType.Playlist:
//_Playlists[_Interactions[_Selection].Num].Selected = true; //_Playlists[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -907,28 +907,28 @@ namespace VocaluxeLib.Menu
switch (_Interactions[selection].Type) switch (_Interactions[selection].Type)
{ {
case EType.TButton: case EType.Button:
//_Buttons[_Interactions[selection].Num].Selected = false; //_Buttons[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[selection].Num].Highlighted = false; _SelectSlides[_Interactions[selection].Num].Highlighted = false;
break; break;
case EType.TStatic: case EType.Static:
//_Statics[_Interactions[selection].Num].Selected = false; //_Statics[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TText: case EType.Text:
//_Texts[_Interactions[selection].Num].Selected = false; //_Texts[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TSongMenu: case EType.SongMenu:
//_SongMenus[_Interactions[selection].Num].Selected = false; //_SongMenus[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TLyric: case EType.Lyric:
//_Lyrics[_Interactions[selection].Num].Selected = false; //_Lyrics[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TNameSelection: case EType.NameSelection:
//_NameSelections[_Interactions[selection].Num].Selected = false; //_NameSelections[_Interactions[selection].Num].Selected = false;
break; break;
case EType.TPlaylist: case EType.Playlist:
//_Playlists[_Interactions[_Selection].Num].Selected = true; //_Playlists[_Interactions[_Selection].Num].Selected = true;
break; break;
} }
@@ -939,7 +939,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return; return;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
_SelectSlides[_Interactions[_Selection].Num].Highlighted = !_SelectSlides[_Interactions[_Selection].Num].Highlighted; _SelectSlides[_Interactions[_Selection].Num].Highlighted = !_SelectSlides[_Interactions[_Selection].Num].Highlighted;
} }
@@ -948,7 +948,7 @@ namespace VocaluxeLib.Menu
if (_Selection >= _Interactions.Count || _Selection < 0) if (_Selection >= _Interactions.Count || _Selection < 0)
return false; return false;
if (_Interactions[_Selection].Type == EType.TSelectSlide) if (_Interactions[_Selection].Type == EType.SelectSlide)
return _SelectSlides[_Interactions[_Selection].Num].Highlighted; return _SelectSlides[_Interactions[_Selection].Num].Highlighted;
return false; return false;
@@ -958,16 +958,16 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TStatic: case EType.Static:
return _Statics[_Interactions[interaction].Num].Visible; return _Statics[_Interactions[interaction].Num].Visible;
case EType.TText: case EType.Text:
return _Texts[_Interactions[interaction].Num].Visible; return _Texts[_Interactions[interaction].Num].Visible;
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Visible; return _Buttons[_Interactions[interaction].Num].Visible;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Visible; return _SelectSlides[_Interactions[interaction].Num].Visible;
} }
@@ -978,16 +978,16 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Enabled; return _Buttons[_Interactions[interaction].Num].Enabled;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Visible; return _SelectSlides[_Interactions[interaction].Num].Visible;
case EType.TStatic: case EType.Static:
return false; //_Statics[_Interactions[interaction].Num].Visible; return false; //_Statics[_Interactions[interaction].Num].Visible;
case EType.TText: case EType.Text:
return false; //_Texts[_Interactions[interaction].Num].Visible; return false; //_Texts[_Interactions[interaction].Num].Visible;
} }
@@ -999,10 +999,10 @@ namespace VocaluxeLib.Menu
SRectF Result = new SRectF(); SRectF Result = new SRectF();
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TButton: case EType.Button:
return _Buttons[_Interactions[interaction].Num].Rect; return _Buttons[_Interactions[interaction].Num].Rect;
case EType.TSelectSlide: case EType.SelectSlide:
return _SelectSlides[_Interactions[interaction].Num].Rect; return _SelectSlides[_Interactions[interaction].Num].Rect;
} }
@@ -1023,15 +1023,15 @@ namespace VocaluxeLib.Menu
bool sel = false; bool sel = false;
switch (_Interactions[interaction].Type) switch (_Interactions[interaction].Type)
{ {
case EType.TStatic: case EType.Static:
_Statics[_Interactions[interaction].Num].Draw(); _Statics[_Interactions[interaction].Num].Draw();
break; break;
case EType.TText: case EType.Text:
_Texts[_Interactions[interaction].Num].Draw(); _Texts[_Interactions[interaction].Num].Draw();
break; break;
case EType.TButton: case EType.Button:
sel = _Buttons[_Interactions[interaction].Num].Selected; sel = _Buttons[_Interactions[interaction].Num].Selected;
if (!Active) if (!Active)
_Buttons[_Interactions[interaction].Num].Selected = false; _Buttons[_Interactions[interaction].Num].Selected = false;
@@ -1039,7 +1039,7 @@ namespace VocaluxeLib.Menu
_Buttons[_Interactions[interaction].Num].Selected = sel; _Buttons[_Interactions[interaction].Num].Selected = sel;
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
sel = _SelectSlides[_Interactions[interaction].Num].Selected; sel = _SelectSlides[_Interactions[interaction].Num].Selected;
if (!Active) if (!Active)
_SelectSlides[_Interactions[interaction].Num].Selected = false; _SelectSlides[_Interactions[interaction].Num].Selected = false;
@@ -1057,11 +1057,11 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _Buttons[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].MoveElement(stepX, stepY); _SelectSlides[_Interactions[_Selection].Num].MoveElement(stepX, stepY);
break; break;
} }
@@ -1074,11 +1074,11 @@ namespace VocaluxeLib.Menu
{ {
switch (_Interactions[_Selection].Type) switch (_Interactions[_Selection].Type)
{ {
case EType.TButton: case EType.Button:
_Buttons[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _Buttons[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
case EType.TSelectSlide: case EType.SelectSlide:
_SelectSlides[_Interactions[_Selection].Num].ResizeElement(stepW, stepH); _SelectSlides[_Interactions[_Selection].Num].ResizeElement(stepW, stepH);
break; break;
} }
+22 -22
View File
@@ -41,10 +41,10 @@ namespace VocaluxeLib.Menu
public string Name; public string Name;
public string ColorBackgroundName; public string ColorBackgroundName;
public string SColorBackgroundName; public string SelColorBackgroundName;
public string TextureBackgroundName; public string TextureBackgroundName;
public string STextureBackgroundName; public string SelTextureBackgroundName;
public float EntryHeight; public float EntryHeight;
@@ -141,7 +141,7 @@ namespace VocaluxeLib.Menu
public SRectF CompleteRect; public SRectF CompleteRect;
public SRectF Rect; public SRectF Rect;
public SColorF BackgroundColor; public SColorF BackgroundColor;
public SColorF BackgroundSColor; public SColorF BackgroundSelColor;
public bool Visible; public bool Visible;
@@ -199,7 +199,7 @@ namespace VocaluxeLib.Menu
CompleteRect = new SRectF(); CompleteRect = new SRectF();
Rect = new SRectF(); Rect = new SRectF();
BackgroundColor = new SColorF(); BackgroundColor = new SColorF();
BackgroundSColor = new SColorF(); BackgroundSelColor = new SColorF();
PlaylistElements = new List<PlaylistElement>(); PlaylistElements = new List<PlaylistElement>();
PlaylistElementContents = new List<PlaylistElementContent>(); PlaylistElementContents = new List<PlaylistElementContent>();
@@ -231,7 +231,7 @@ namespace VocaluxeLib.Menu
_ThemeLoaded = true; _ThemeLoaded = true;
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinBackground", ref _Theme.TextureBackgroundName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinBackground", ref _Theme.TextureBackgroundName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinBackgroundSelected", ref _Theme.STextureBackgroundName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinBackgroundSelected", ref _Theme.SelTextureBackgroundName, String.Empty);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y);
@@ -247,14 +247,14 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/BackgroundB", ref BackgroundColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/BackgroundB", ref BackgroundColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/BackgroundA", ref BackgroundColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/BackgroundA", ref BackgroundColor.A);
} }
if (xmlReader.GetValue(item + "/SColorBackground", ref _Theme.SColorBackgroundName, String.Empty)) if (xmlReader.GetValue(item + "/SColorBackground", ref _Theme.SelColorBackgroundName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SColorBackgroundName, SkinIndex, out BackgroundSColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelColorBackgroundName, SkinIndex, out BackgroundSelColor);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundR", ref BackgroundSColor.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundR", ref BackgroundSelColor.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundG", ref BackgroundSColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundG", ref BackgroundSelColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundB", ref BackgroundSColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundB", ref BackgroundSelColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundA", ref BackgroundSColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SBackgroundA", ref BackgroundSelColor.A);
} }
_ThemeLoaded &= _Theme.Text1.LoadTheme(item, "TextPart1", xmlReader, SkinIndex); _ThemeLoaded &= _Theme.Text1.LoadTheme(item, "TextPart1", xmlReader, SkinIndex);
@@ -347,7 +347,7 @@ namespace VocaluxeLib.Menu
writer.WriteElementString("SkinBackground", _Theme.TextureBackgroundName); writer.WriteElementString("SkinBackground", _Theme.TextureBackgroundName);
writer.WriteComment("<SkinBackgroundSelected>: Texture name for selected playlist-entry"); writer.WriteComment("<SkinBackgroundSelected>: Texture name for selected playlist-entry");
writer.WriteElementString("SkinBackgroundSelected", _Theme.STextureBackgroundName); writer.WriteElementString("SkinBackgroundSelected", _Theme.SelTextureBackgroundName);
writer.WriteComment("<ColorBackground>: Button color from ColorScheme (high priority)"); writer.WriteComment("<ColorBackground>: Button color from ColorScheme (high priority)");
writer.WriteComment("or <BackgroundR>, <BackgroundG>, <BackgroundB>, <BackgroundA> (lower priority)"); writer.WriteComment("or <BackgroundR>, <BackgroundG>, <BackgroundB>, <BackgroundA> (lower priority)");
@@ -363,14 +363,14 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SColorBackground>: Selected paylist-entry color from ColorScheme (high priority)"); writer.WriteComment("<SColorBackground>: Selected paylist-entry color from ColorScheme (high priority)");
writer.WriteComment("or <SBackgroundR>, <SBackgroundG>, <SBackgroundB>, <SBackgroundA> (lower priority)"); writer.WriteComment("or <SBackgroundR>, <SBackgroundG>, <SBackgroundB>, <SBackgroundA> (lower priority)");
if (_Theme.SColorBackgroundName.Length > 0) if (_Theme.SelColorBackgroundName.Length > 0)
writer.WriteElementString("SColorBackground", _Theme.SColorBackgroundName); writer.WriteElementString("SColorBackground", _Theme.SelColorBackgroundName);
else else
{ {
writer.WriteElementString("SBackgroundR", BackgroundSColor.R.ToString("#0.00")); writer.WriteElementString("SBackgroundR", BackgroundSelColor.R.ToString("#0.00"));
writer.WriteElementString("SBackgroundG", BackgroundSColor.G.ToString("#0.00")); writer.WriteElementString("SBackgroundG", BackgroundSelColor.G.ToString("#0.00"));
writer.WriteElementString("SBackgroundB", BackgroundSColor.B.ToString("#0.00")); writer.WriteElementString("SBackgroundB", BackgroundSelColor.B.ToString("#0.00"));
writer.WriteElementString("SBackgroundA", BackgroundSColor.A.ToString("#0.00")); writer.WriteElementString("SBackgroundA", BackgroundSelColor.A.ToString("#0.00"));
} }
writer.WriteComment("Positions of <TextPart1>, <TextPart2>, <TextPart3>, <StaticCover> and <SelectSlideGameMode> are relative to playlist-entry!"); writer.WriteComment("Positions of <TextPart1>, <TextPart2>, <TextPart3>, <StaticCover> and <SelectSlideGameMode> are relative to playlist-entry!");
@@ -414,8 +414,8 @@ namespace VocaluxeLib.Menu
{ {
if (i == CurrentPlaylistElement && _Selected) if (i == CurrentPlaylistElement && _Selected)
{ {
PlaylistElements[i].Background.Texture = CBase.Theme.GetSkinTexture(_Theme.STextureBackgroundName, _PartyModeID); PlaylistElements[i].Background.Texture = CBase.Theme.GetSkinTexture(_Theme.SelTextureBackgroundName, _PartyModeID);
PlaylistElements[i].Background.Color = BackgroundSColor; PlaylistElements[i].Background.Color = BackgroundSelColor;
} }
else else
{ {
@@ -455,8 +455,8 @@ namespace VocaluxeLib.Menu
if (_Theme.ColorBackgroundName.Length > 0) if (_Theme.ColorBackgroundName.Length > 0)
BackgroundColor = CBase.Theme.GetColor(_Theme.ColorBackgroundName, _PartyModeID); BackgroundColor = CBase.Theme.GetColor(_Theme.ColorBackgroundName, _PartyModeID);
if (_Theme.SColorBackgroundName.Length > 0) if (_Theme.SelColorBackgroundName.Length > 0)
BackgroundSColor = CBase.Theme.GetColor(_Theme.SColorBackgroundName, _PartyModeID); BackgroundSelColor = CBase.Theme.GetColor(_Theme.SelColorBackgroundName, _PartyModeID);
_Theme.Text1.LoadTextures(); _Theme.Text1.LoadTextures();
_Theme.ButtonPlaylistClose.LoadTextures(); _Theme.ButtonPlaylistClose.LoadTextures();
+99 -99
View File
@@ -13,21 +13,21 @@ namespace VocaluxeLib.Menu
public string TextureArrowLeftName; public string TextureArrowLeftName;
public string TextureArrowRightName; public string TextureArrowRightName;
public string STextureName; public string SelTextureName;
public string STextureArrowLeftName; public string SelTextureArrowLeftName;
public string STextureArrowRightName; public string SelTextureArrowRightName;
public string HTextureName; public string HighlightTextureName;
public string ColorName; public string ColorName;
public string SColorName; public string SelColorName;
public string HColorName; public string HighlightColorName;
public string ArrowColorName; public string ArrowColorName;
public string SArrowColorName; public string SelArrowColorName;
public string TextColorName; public string TextColorName;
public string STextColorName; public string SelTextColorName;
public string TextFont; public string TextFont;
public EStyle TextStyle; public EStyle TextStyle;
@@ -49,14 +49,14 @@ namespace VocaluxeLib.Menu
public SRectF RectArrowRight; public SRectF RectArrowRight;
public SColorF Color; public SColorF Color;
public SColorF SColor; public SColorF SelColor;
public SColorF HColor; public SColorF HighlightColor;
public SColorF ColorArrow; public SColorF ColorArrow;
public SColorF SColorArrow; public SColorF SelColorArrow;
public SColorF TextColor; public SColorF TextColor;
public SColorF STextColor; public SColorF SelTextColor;
public float TextRelativeX; public float TextRelativeX;
public float TextRelativeY; public float TextRelativeY;
@@ -149,13 +149,13 @@ namespace VocaluxeLib.Menu
RectArrowRight = new SRectF(); RectArrowRight = new SRectF();
Color = new SColorF(); Color = new SColorF();
SColor = new SColorF(); SelColor = new SColorF();
ColorArrow = new SColorF(); ColorArrow = new SColorF();
SColorArrow = new SColorF(); SelColorArrow = new SColorF();
TextColor = new SColorF(); TextColor = new SColorF();
STextColor = new SColorF(); SelTextColor = new SColorF();
TextH = 1f; TextH = 1f;
MaxW = 0f; MaxW = 0f;
@@ -174,21 +174,21 @@ namespace VocaluxeLib.Menu
_Theme.TextureArrowLeftName = slide._Theme.TextureArrowLeftName; _Theme.TextureArrowLeftName = slide._Theme.TextureArrowLeftName;
_Theme.TextureArrowRightName = slide._Theme.TextureArrowRightName; _Theme.TextureArrowRightName = slide._Theme.TextureArrowRightName;
_Theme.STextureName = slide._Theme.STextureName; _Theme.SelTextureName = slide._Theme.SelTextureName;
_Theme.STextureArrowLeftName = slide._Theme.STextureArrowLeftName; _Theme.SelTextureArrowLeftName = slide._Theme.SelTextureArrowLeftName;
_Theme.STextureArrowRightName = slide._Theme.STextureArrowRightName; _Theme.SelTextureArrowRightName = slide._Theme.SelTextureArrowRightName;
_Theme.HTextureName = slide._Theme.HTextureName; _Theme.HighlightTextureName = slide._Theme.HighlightTextureName;
_Theme.ColorName = slide._Theme.ColorName; _Theme.ColorName = slide._Theme.ColorName;
_Theme.SColorName = slide._Theme.SColorName; _Theme.SelColorName = slide._Theme.SelColorName;
_Theme.HColorName = slide._Theme.HColorName; _Theme.HighlightColorName = slide._Theme.HighlightColorName;
_Theme.ArrowColorName = slide._Theme.ArrowColorName; _Theme.ArrowColorName = slide._Theme.ArrowColorName;
_Theme.SArrowColorName = slide._Theme.SArrowColorName; _Theme.SelArrowColorName = slide._Theme.SelArrowColorName;
_Theme.TextColorName = slide._Theme.TextColorName; _Theme.TextColorName = slide._Theme.TextColorName;
_Theme.STextColorName = slide._Theme.STextColorName; _Theme.SelTextColorName = slide._Theme.SelTextColorName;
_Theme.TextFont = slide._Theme.TextFont; _Theme.TextFont = slide._Theme.TextFont;
_Theme.TextStyle = slide._Theme.TextStyle; _Theme.TextStyle = slide._Theme.TextStyle;
@@ -200,13 +200,13 @@ namespace VocaluxeLib.Menu
RectArrowRight = new SRectF(slide.RectArrowRight); RectArrowRight = new SRectF(slide.RectArrowRight);
Color = new SColorF(slide.Color); Color = new SColorF(slide.Color);
SColor = new SColorF(slide.SColor); SelColor = new SColorF(slide.SelColor);
ColorArrow = new SColorF(slide.ColorArrow); ColorArrow = new SColorF(slide.ColorArrow);
SColorArrow = new SColorF(slide.SColorArrow); SelColorArrow = new SColorF(slide.SelColorArrow);
TextColor = new SColorF(slide.TextColor); TextColor = new SColorF(slide.TextColor);
STextColor = new SColorF(slide.STextColor); SelTextColor = new SColorF(slide.SelTextColor);
TextH = slide.TextH; TextH = slide.TextH;
TextRelativeX = slide.TextRelativeX; TextRelativeX = slide.TextRelativeX;
TextRelativeY = slide.TextRelativeY; TextRelativeY = slide.TextRelativeY;
@@ -234,11 +234,11 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowLeft", ref _Theme.TextureArrowLeftName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowLeft", ref _Theme.TextureArrowLeftName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowRight", ref _Theme.TextureArrowRightName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowRight", ref _Theme.TextureArrowRightName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinSelected", ref _Theme.STextureName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinSelected", ref _Theme.SelTextureName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowLeftSelected", ref _Theme.STextureArrowLeftName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowLeftSelected", ref _Theme.SelTextureArrowLeftName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowRightSelected", ref _Theme.STextureArrowRightName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinArrowRightSelected", ref _Theme.SelTextureArrowRightName, String.Empty);
_ThemeLoaded &= xmlReader.GetValue(item + "/SkinHighlighted", ref _Theme.HTextureName, String.Empty); _ThemeLoaded &= xmlReader.GetValue(item + "/SkinHighlighted", ref _Theme.HighlightTextureName, String.Empty);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/X", ref Rect.X);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/Y", ref Rect.Y);
@@ -256,24 +256,24 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A);
} }
if (xmlReader.GetValue(item + "/SColor", ref _Theme.SColorName, String.Empty)) if (xmlReader.GetValue(item + "/SColor", ref _Theme.SelColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SColorName, SkinIndex, out SColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelColorName, SkinIndex, out SelColor);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref SColor.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SR", ref SelColor.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SelColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SelColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SelColor.A);
} }
if (xmlReader.GetValue(item + "/HColor", ref _Theme.HColorName, String.Empty)) if (xmlReader.GetValue(item + "/HColor", ref _Theme.HighlightColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.HColorName, SkinIndex, out HColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.HighlightColorName, SkinIndex, out HighlightColor);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HR", ref HColor.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HR", ref HighlightColor.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HG", ref HColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HG", ref HighlightColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HB", ref HColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HB", ref HighlightColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HA", ref HColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/HA", ref HighlightColor.A);
} }
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowLeftX", ref RectArrowLeft.X); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowLeftX", ref RectArrowLeft.X);
@@ -298,14 +298,14 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowA", ref ColorArrow.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowA", ref ColorArrow.A);
} }
if (xmlReader.GetValue(item + "/ArrowSColor", ref _Theme.SArrowColorName, String.Empty)) if (xmlReader.GetValue(item + "/ArrowSColor", ref _Theme.SelArrowColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SArrowColorName, SkinIndex, out SColorArrow); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelArrowColorName, SkinIndex, out SelColorArrow);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSR", ref SColorArrow.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSR", ref SelColorArrow.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSG", ref SColorArrow.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSG", ref SelColorArrow.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSB", ref SColorArrow.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSB", ref SelColorArrow.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSA", ref SColorArrow.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/ArrowSA", ref SelColorArrow.A);
} }
if (xmlReader.GetValue(item + "/TextColor", ref _Theme.TextColorName, String.Empty)) if (xmlReader.GetValue(item + "/TextColor", ref _Theme.TextColorName, String.Empty))
@@ -318,14 +318,14 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextA", ref TextColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextA", ref TextColor.A);
} }
if (xmlReader.GetValue(item + "/TextSColor", ref _Theme.STextColorName, String.Empty)) if (xmlReader.GetValue(item + "/TextSColor", ref _Theme.SelTextColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.STextColorName, SkinIndex, out STextColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelTextColorName, SkinIndex, out SelTextColor);
else else
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSR", ref STextColor.R); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSR", ref SelTextColor.R);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSG", ref STextColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSG", ref SelTextColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSB", ref STextColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSB", ref SelTextColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSA", ref STextColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextSA", ref SelTextColor.A);
} }
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextH", ref TextH); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/TextH", ref TextH);
@@ -364,16 +364,16 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SkinSelected>: Texture name for selected SelectSlide"); writer.WriteComment("<SkinSelected>: Texture name for selected SelectSlide");
writer.WriteElementString("SkinSelected", _Theme.STextureName); writer.WriteElementString("SkinSelected", _Theme.SelTextureName);
writer.WriteComment("<SkinArrowLeftSelected>: Texture name of selected left arrow"); writer.WriteComment("<SkinArrowLeftSelected>: Texture name of selected left arrow");
writer.WriteElementString("SkinArrowLeftSelected", _Theme.STextureArrowLeftName); writer.WriteElementString("SkinArrowLeftSelected", _Theme.SelTextureArrowLeftName);
writer.WriteComment("<SkinArrowRightSelected>: Texture name of selected right arrow"); writer.WriteComment("<SkinArrowRightSelected>: Texture name of selected right arrow");
writer.WriteElementString("SkinArrowRightSelected", _Theme.STextureArrowRightName); writer.WriteElementString("SkinArrowRightSelected", _Theme.SelTextureArrowRightName);
writer.WriteComment("<SkinHighlighted>: Texture name for highlighted SelectSlide"); writer.WriteComment("<SkinHighlighted>: Texture name for highlighted SelectSlide");
writer.WriteElementString("SkinHighlighted", _Theme.HTextureName); writer.WriteElementString("SkinHighlighted", _Theme.HighlightTextureName);
writer.WriteComment("<X>, <Y>, <Z>, <W>, <H>: SelectSlide position, width and height"); writer.WriteComment("<X>, <Y>, <Z>, <W>, <H>: SelectSlide position, width and height");
writer.WriteElementString("X", Rect.X.ToString("#0")); writer.WriteElementString("X", Rect.X.ToString("#0"));
@@ -410,26 +410,26 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SColor>: Selected SelectSlide color from ColorScheme (high priority)"); writer.WriteComment("<SColor>: Selected SelectSlide color from ColorScheme (high priority)");
writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)"); writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)");
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
writer.WriteElementString("SColor", _Theme.SColorName); writer.WriteElementString("SColor", _Theme.SelColorName);
else else
{ {
writer.WriteElementString("SR", SColor.R.ToString("#0.00")); writer.WriteElementString("SR", SelColor.R.ToString("#0.00"));
writer.WriteElementString("SG", SColor.G.ToString("#0.00")); writer.WriteElementString("SG", SelColor.G.ToString("#0.00"));
writer.WriteElementString("SB", SColor.B.ToString("#0.00")); writer.WriteElementString("SB", SelColor.B.ToString("#0.00"));
writer.WriteElementString("SA", SColor.A.ToString("#0.00")); writer.WriteElementString("SA", SelColor.A.ToString("#0.00"));
} }
writer.WriteComment("<HColor>: Highlighted SelectSlide color from ColorScheme (high priority)"); writer.WriteComment("<HColor>: Highlighted SelectSlide color from ColorScheme (high priority)");
writer.WriteComment("or <HR>, <HG>, <HB>, <HA> (lower priority)"); writer.WriteComment("or <HR>, <HG>, <HB>, <HA> (lower priority)");
if (_Theme.HColorName.Length > 0) if (_Theme.HighlightColorName.Length > 0)
writer.WriteElementString("HColor", _Theme.HColorName); writer.WriteElementString("HColor", _Theme.HighlightColorName);
else else
{ {
writer.WriteElementString("HR", HColor.R.ToString("#0.00")); writer.WriteElementString("HR", HighlightColor.R.ToString("#0.00"));
writer.WriteElementString("HG", HColor.G.ToString("#0.00")); writer.WriteElementString("HG", HighlightColor.G.ToString("#0.00"));
writer.WriteElementString("HB", HColor.B.ToString("#0.00")); writer.WriteElementString("HB", HighlightColor.B.ToString("#0.00"));
writer.WriteElementString("HA", HColor.A.ToString("#0.00")); writer.WriteElementString("HA", HighlightColor.A.ToString("#0.00"));
} }
writer.WriteComment("<ArrowColor>: Arrow color from ColorScheme (high priority)"); writer.WriteComment("<ArrowColor>: Arrow color from ColorScheme (high priority)");
@@ -446,14 +446,14 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<ArrowSColor>: Selected arrow color from ColorScheme (high priority)"); writer.WriteComment("<ArrowSColor>: Selected arrow color from ColorScheme (high priority)");
writer.WriteComment("or <ArrowSR>, <ArrowSG>, <ArrowSB>, <ArrowSA> (lower priority)"); writer.WriteComment("or <ArrowSR>, <ArrowSG>, <ArrowSB>, <ArrowSA> (lower priority)");
if (_Theme.SArrowColorName.Length > 0) if (_Theme.SelArrowColorName.Length > 0)
writer.WriteElementString("ArrowSColor", _Theme.SArrowColorName); writer.WriteElementString("ArrowSColor", _Theme.SelArrowColorName);
else else
{ {
writer.WriteElementString("ArrowSR", SColorArrow.R.ToString("#0.00")); writer.WriteElementString("ArrowSR", SelColorArrow.R.ToString("#0.00"));
writer.WriteElementString("ArrowSG", SColorArrow.G.ToString("#0.00")); writer.WriteElementString("ArrowSG", SelColorArrow.G.ToString("#0.00"));
writer.WriteElementString("ArrowSB", SColorArrow.B.ToString("#0.00")); writer.WriteElementString("ArrowSB", SelColorArrow.B.ToString("#0.00"));
writer.WriteElementString("ArrowSA", SColorArrow.A.ToString("#0.00")); writer.WriteElementString("ArrowSA", SelColorArrow.A.ToString("#0.00"));
} }
writer.WriteComment("<TextColor>: Text color from ColorScheme (high priority)"); writer.WriteComment("<TextColor>: Text color from ColorScheme (high priority)");
@@ -470,14 +470,14 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<TextSColor>: Selected text color from ColorScheme (high priority)"); writer.WriteComment("<TextSColor>: Selected text color from ColorScheme (high priority)");
writer.WriteComment("or <TextSR>, <TextSG>, <TextSB>, <TextSA> (lower priority)"); writer.WriteComment("or <TextSR>, <TextSG>, <TextSB>, <TextSA> (lower priority)");
if (_Theme.STextColorName.Length > 0) if (_Theme.SelTextColorName.Length > 0)
writer.WriteElementString("TextSColor", _Theme.STextColorName); writer.WriteElementString("TextSColor", _Theme.SelTextColorName);
else else
{ {
writer.WriteElementString("TextSR", STextColor.R.ToString("#0.00")); writer.WriteElementString("TextSR", SelTextColor.R.ToString("#0.00"));
writer.WriteElementString("TextSG", STextColor.G.ToString("#0.00")); writer.WriteElementString("TextSG", SelTextColor.G.ToString("#0.00"));
writer.WriteElementString("TextSB", STextColor.B.ToString("#0.00")); writer.WriteElementString("TextSB", SelTextColor.B.ToString("#0.00"));
writer.WriteElementString("TextSA", STextColor.A.ToString("#0.00")); writer.WriteElementString("TextSA", SelTextColor.A.ToString("#0.00"));
} }
writer.WriteComment("<TextH>: Text height"); writer.WriteComment("<TextH>: Text height");
@@ -687,18 +687,18 @@ namespace VocaluxeLib.Menu
STexture TextureArrowLeft = CBase.Theme.GetSkinTexture(_Theme.TextureArrowLeftName, _PartyModeID); STexture TextureArrowLeft = CBase.Theme.GetSkinTexture(_Theme.TextureArrowLeftName, _PartyModeID);
STexture TextureArrowRight = CBase.Theme.GetSkinTexture(_Theme.TextureArrowRightName, _PartyModeID); STexture TextureArrowRight = CBase.Theme.GetSkinTexture(_Theme.TextureArrowRightName, _PartyModeID);
STexture STexture = CBase.Theme.GetSkinTexture(_Theme.STextureName, _PartyModeID); STexture selTexture = CBase.Theme.GetSkinTexture(_Theme.SelTextureName, _PartyModeID);
STexture STextureArrowLeft = CBase.Theme.GetSkinTexture(_Theme.STextureArrowLeftName, _PartyModeID); STexture selTextureArrowLeft = CBase.Theme.GetSkinTexture(_Theme.SelTextureArrowLeftName, _PartyModeID);
STexture STextureArrowRight = CBase.Theme.GetSkinTexture(_Theme.STextureArrowRightName, _PartyModeID); STexture SelTextureArrowRight = CBase.Theme.GetSkinTexture(_Theme.SelTextureArrowRightName, _PartyModeID);
STexture HTexture = CBase.Theme.GetSkinTexture(_Theme.HTextureName, _PartyModeID); STexture HighlightTexture = CBase.Theme.GetSkinTexture(_Theme.HighlightTextureName, _PartyModeID);
if (Selected) if (Selected)
{ {
if (Highlighted) if (Highlighted)
CBase.Drawing.DrawTexture(HTexture, Rect, HColor); CBase.Drawing.DrawTexture(HighlightTexture, Rect, HighlightColor);
else else
CBase.Drawing.DrawTexture(STexture, Rect, SColor); CBase.Drawing.DrawTexture(selTexture, Rect, SelColor);
} }
else else
CBase.Drawing.DrawTexture(Texture, Rect, Color); CBase.Drawing.DrawTexture(Texture, Rect, Color);
@@ -706,7 +706,7 @@ namespace VocaluxeLib.Menu
if (_Selection > 0 || CBase.Settings.GetGameState() == EGameState.EditTheme) if (_Selection > 0 || CBase.Settings.GetGameState() == EGameState.EditTheme)
{ {
if (_ArrowLeftSelected) if (_ArrowLeftSelected)
CBase.Drawing.DrawTexture(STextureArrowLeft, RectArrowLeft, SColorArrow); CBase.Drawing.DrawTexture(selTextureArrowLeft, RectArrowLeft, SelColorArrow);
else else
CBase.Drawing.DrawTexture(TextureArrowLeft, RectArrowLeft, ColorArrow); CBase.Drawing.DrawTexture(TextureArrowLeft, RectArrowLeft, ColorArrow);
} }
@@ -714,7 +714,7 @@ namespace VocaluxeLib.Menu
if (_Selection < _ValueNames.Count - 1 || CBase.Settings.GetGameState() == EGameState.EditTheme) if (_Selection < _ValueNames.Count - 1 || CBase.Settings.GetGameState() == EGameState.EditTheme)
{ {
if (_ArrowRightSelected) if (_ArrowRightSelected)
CBase.Drawing.DrawTexture(STextureArrowRight, RectArrowRight, SColorArrow); CBase.Drawing.DrawTexture(SelTextureArrowRight, RectArrowRight, SelColorArrow);
else else
CBase.Drawing.DrawTexture(TextureArrowRight, RectArrowRight, ColorArrow); CBase.Drawing.DrawTexture(TextureArrowRight, RectArrowRight, ColorArrow);
} }
@@ -747,7 +747,7 @@ namespace VocaluxeLib.Menu
SColorF Alpha = new SColorF(1f, 1f, 1f, 0.35f); SColorF Alpha = new SColorF(1f, 1f, 1f, 0.35f);
if (i + offset == _Selection) if (i + offset == _Selection)
{ {
Text.Color = STextColor; Text.Color = SelTextColor;
Alpha = new SColorF(1f, 1f, 1f, 1f); Alpha = new SColorF(1f, 1f, 1f, 1f);
} }
@@ -781,23 +781,23 @@ namespace VocaluxeLib.Menu
if (_Theme.ColorName.Length > 0) if (_Theme.ColorName.Length > 0)
Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID); Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID);
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
SColor = CBase.Theme.GetColor(_Theme.SColorName, _PartyModeID); SelColor = CBase.Theme.GetColor(_Theme.SelColorName, _PartyModeID);
if (_Theme.HColorName.Length > 0) if (_Theme.HighlightColorName.Length > 0)
HColor = CBase.Theme.GetColor(_Theme.HColorName, _PartyModeID); HighlightColor = CBase.Theme.GetColor(_Theme.HighlightColorName, _PartyModeID);
if (_Theme.ArrowColorName.Length > 0) if (_Theme.ArrowColorName.Length > 0)
ColorArrow = CBase.Theme.GetColor(_Theme.ArrowColorName, _PartyModeID); ColorArrow = CBase.Theme.GetColor(_Theme.ArrowColorName, _PartyModeID);
if (_Theme.SArrowColorName.Length > 0) if (_Theme.SelArrowColorName.Length > 0)
SColorArrow = CBase.Theme.GetColor(_Theme.SArrowColorName, _PartyModeID); SelColorArrow = CBase.Theme.GetColor(_Theme.SelArrowColorName, _PartyModeID);
if (_Theme.TextColorName.Length > 0) if (_Theme.TextColorName.Length > 0)
TextColor = CBase.Theme.GetColor(_Theme.TextColorName, _PartyModeID); TextColor = CBase.Theme.GetColor(_Theme.TextColorName, _PartyModeID);
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
STextColor = CBase.Theme.GetColor(_Theme.STextColorName, _PartyModeID); SelTextColor = CBase.Theme.GetColor(_Theme.SelTextColorName, _PartyModeID);
} }
public void ReloadTextures() public void ReloadTextures()
+33 -33
View File
@@ -10,14 +10,14 @@ namespace VocaluxeLib.Menu
public string Text; public string Text;
public string ColorName; public string ColorName;
public string SColorName; //for Buttons public string SelColorName; //for Buttons
} }
struct STextPosition struct STextPosition
{ {
public float X; public float X;
public float Y; public float Y;
public float tH; public float textHeight;
public float Width; public float Width;
public float Height; public float Height;
@@ -25,7 +25,7 @@ namespace VocaluxeLib.Menu
{ {
X = 0f; X = 0f;
Y = 0f; Y = 0f;
tH = 0f; textHeight = 0f;
Width = 0f; Width = 0f;
Height = 0f; Height = 0f;
} }
@@ -189,7 +189,7 @@ namespace VocaluxeLib.Menu
} }
public SColorF Color; //normal Color public SColorF Color; //normal Color
public SColorF SColor; //selected Color for Buttons public SColorF SelColor; //selected Color for Buttons
public bool Reflection = false; public bool Reflection = false;
public float ReflectionSpace; public float ReflectionSpace;
@@ -273,7 +273,7 @@ namespace VocaluxeLib.Menu
_Font = text._Font; _Font = text._Font;
Color = new SColorF(text.Color); Color = new SColorF(text.Color);
SColor = new SColorF(text.SColor); SelColor = new SColorF(text.SelColor);
Reflection = text.Reflection; Reflection = text.Reflection;
ReflectionSpace = text.ReflectionSpace; ReflectionSpace = text.ReflectionSpace;
ReflectionHeight = text.ReflectionHeight; ReflectionHeight = text.ReflectionHeight;
@@ -306,7 +306,7 @@ namespace VocaluxeLib.Menu
Font = font; Font = font;
Color = new SColorF(r, g, b, a); Color = new SColorF(r, g, b, a);
SColor = new SColorF(r, g, b, a); SelColor = new SColorF(r, g, b, a);
Text = text; Text = text;
@@ -341,7 +341,7 @@ namespace VocaluxeLib.Menu
Font = font; Font = font;
Color = new SColorF(r, g, b, a); Color = new SColorF(r, g, b, a);
SColor = new SColorF(r, g, b, a); SelColor = new SColorF(r, g, b, a);
Text = text; Text = text;
@@ -374,7 +374,7 @@ namespace VocaluxeLib.Menu
Font = font; Font = font;
Color = col; Color = col;
SColor = new SColorF(col); SelColor = new SColorF(col);
Text = text; Text = text;
@@ -409,7 +409,7 @@ namespace VocaluxeLib.Menu
Font = font; Font = font;
Color = col; Color = col;
SColor = new SColorF(col); SelColor = new SColorF(col);
Text = text; Text = text;
@@ -452,15 +452,15 @@ namespace VocaluxeLib.Menu
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/A", ref Color.A);
} }
if (xmlReader.GetValue(item + "/SColor", ref _Theme.SColorName, String.Empty)) if (xmlReader.GetValue(item + "/SColor", ref _Theme.SelColorName, String.Empty))
_ThemeLoaded &= CBase.Theme.GetColor(_Theme.SColorName, SkinIndex, out SColor); _ThemeLoaded &= CBase.Theme.GetColor(_Theme.SelColorName, SkinIndex, out SelColor);
else else
{ {
if (xmlReader.TryGetFloatValue(item + "/SR", ref SColor.R)) if (xmlReader.TryGetFloatValue(item + "/SR", ref SelColor.R))
{ {
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SColor.G); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SG", ref SelColor.G);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SColor.B); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SB", ref SelColor.B);
_ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SColor.A); _ThemeLoaded &= xmlReader.TryGetFloatValue(item + "/SA", ref SelColor.A);
} }
} }
@@ -534,14 +534,14 @@ namespace VocaluxeLib.Menu
writer.WriteComment("<SColor>: Selected Text color from ColorScheme (high priority)"); writer.WriteComment("<SColor>: Selected Text color from ColorScheme (high priority)");
writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)"); writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)");
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
writer.WriteElementString("SColor", _Theme.SColorName); writer.WriteElementString("SColor", _Theme.SelColorName);
else else
{ {
writer.WriteElementString("SR", SColor.R.ToString("#0.00")); writer.WriteElementString("SR", SelColor.R.ToString("#0.00"));
writer.WriteElementString("SG", SColor.G.ToString("#0.00")); writer.WriteElementString("SG", SelColor.G.ToString("#0.00"));
writer.WriteElementString("SB", SColor.B.ToString("#0.00")); writer.WriteElementString("SB", SelColor.B.ToString("#0.00"));
writer.WriteElementString("SA", SColor.A.ToString("#0.00")); writer.WriteElementString("SA", SelColor.A.ToString("#0.00"));
} }
writer.WriteComment("<Align>: Text align horizontal: " + CHelper.ListStrings(Enum.GetNames(typeof(EAlignment)))); writer.WriteComment("<Align>: Text align horizontal: " + CHelper.ListStrings(Enum.GetNames(typeof(EAlignment))));
@@ -605,28 +605,28 @@ namespace VocaluxeLib.Menu
SColorF CurrentColor = new SColorF(Color); SColorF CurrentColor = new SColorF(Color);
if (Selected) if (Selected)
CurrentColor = new SColorF(SColor); CurrentColor = new SColorF(SelColor);
SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha); SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha);
CBase.Fonts.DrawText(_Text, _DrawPosition.tH, _DrawPosition.X, _DrawPosition.Y, Z, color); CBase.Fonts.DrawText(_Text, _DrawPosition.textHeight, _DrawPosition.X, _DrawPosition.Y, Z, color);
if (Reflection) if (Reflection)
{ {
float sFactor = 0f; float factor = 0f;
switch (HAlign) switch (HAlign)
{ {
case EHAlignment.Top: case EHAlignment.Top:
sFactor = (Height - _DrawPosition.tH) * 1.5f; factor = (Height - _DrawPosition.textHeight) * 1.5f;
break; break;
case EHAlignment.Center: case EHAlignment.Center:
sFactor = (Height - _DrawPosition.tH) * 1.0f; factor = (Height - _DrawPosition.textHeight) * 1.0f;
break; break;
case EHAlignment.Bottom: case EHAlignment.Bottom:
sFactor = (Height - _DrawPosition.tH) * 0.5f; factor = (Height - _DrawPosition.textHeight) * 0.5f;
break; break;
} }
CBase.Fonts.DrawTextReflection(_Text, _DrawPosition.tH, _DrawPosition.X, _DrawPosition.Y, Z, color, ReflectionSpace + sFactor, ReflectionHeight); CBase.Fonts.DrawTextReflection(_Text, _DrawPosition.textHeight, _DrawPosition.X, _DrawPosition.Y, Z, color, ReflectionSpace + factor, ReflectionHeight);
} }
if (Selected && (CBase.Settings.GetGameState() == EGameState.EditTheme)) if (Selected && (CBase.Settings.GetGameState() == EGameState.EditTheme))
@@ -655,7 +655,7 @@ namespace VocaluxeLib.Menu
SColorF CurrentColor = new SColorF(Color); SColorF CurrentColor = new SColorF(Color);
if (Selected) if (Selected)
CurrentColor = new SColorF(SColor); CurrentColor = new SColorF(SelColor);
SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha); SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha);
@@ -732,7 +732,7 @@ namespace VocaluxeLib.Menu
SColorF CurrentColor = new SColorF(Color); SColorF CurrentColor = new SColorF(Color);
if (Selected) if (Selected)
CurrentColor = new SColorF(SColor); CurrentColor = new SColorF(SelColor);
SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha); SColorF color = new SColorF(CurrentColor.R, CurrentColor.G, CurrentColor.B, CurrentColor.A * Alpha);
@@ -760,8 +760,8 @@ namespace VocaluxeLib.Menu
if (_Theme.ColorName.Length > 0) if (_Theme.ColorName.Length > 0)
Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID); Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID);
if (_Theme.SColorName.Length > 0) if (_Theme.SelColorName.Length > 0)
SColor = CBase.Theme.GetColor(_Theme.SColorName, _PartyModeID); SelColor = CBase.Theme.GetColor(_Theme.SelColorName, _PartyModeID);
} }
public void ReloadTextures() public void ReloadTextures()
@@ -831,7 +831,7 @@ namespace VocaluxeLib.Menu
_DrawPosition.X = x; _DrawPosition.X = x;
_DrawPosition.Y = y; _DrawPosition.Y = y;
_DrawPosition.tH = h; _DrawPosition.textHeight = h;
_DrawPosition.Width = bounds.Width; _DrawPosition.Width = bounds.Width;
_DrawPosition.Height = bounds.Height; _DrawPosition.Height = bounds.Height;
+5 -5
View File
@@ -18,8 +18,8 @@ namespace VocaluxeLib.Menu
private CXMLReader(string uri) private CXMLReader(string uri)
{ {
_FileName = uri; _FileName = uri;
XPathDocument xPathDoc = new XPathDocument(uri); XPathDocument xmlDoc = new XPathDocument(uri);
_Navigator = xPathDoc.CreateNavigator(); _Navigator = xmlDoc.CreateNavigator();
} }
public XPathNavigator Navigator public XPathNavigator Navigator
@@ -27,15 +27,15 @@ namespace VocaluxeLib.Menu
get { return _Navigator; } get { return _Navigator; }
} }
public static CXMLReader OpenFile(string sFile) public static CXMLReader OpenFile(string fileName)
{ {
try try
{ {
return new CXMLReader(sFile); return new CXMLReader(fileName);
} }
catch (Exception e) catch (Exception e)
{ {
CBase.Log.LogError("Can't open XML file: " + sFile + ": " + e.Message); CBase.Log.LogError("Can't open XML file: " + fileName + ": " + e.Message);
return null; return null;
} }
} }
+7 -7
View File
@@ -670,7 +670,7 @@ namespace VocaluxeLib.Menu.SingNotes
_PlayerNotes[n].PerfectLineTwinkle.Add(twinkle); _PlayerNotes[n].PerfectLineTwinkle.Add(twinkle);
} }
private void DrawToneHelper(int n, int BaseLine, float XOffset) private void DrawToneHelper(int n, int BaseLine, float OffsetX)
{ {
int TonePlayer = CBase.Record.GetToneAbs(_PlayerNotes[n].PlayerNr); int TonePlayer = CBase.Record.GetToneAbs(_PlayerNotes[n].PlayerNr);
@@ -682,15 +682,15 @@ namespace VocaluxeLib.Menu.SingNotes
while (TonePlayer - BaseLine > 12) while (TonePlayer - BaseLine > 12)
TonePlayer -= 12; TonePlayer -= 12;
if (XOffset < 0f) if (OffsetX < 0f)
XOffset = 0f; OffsetX = 0f;
if (XOffset > noteBounds.W) if (OffsetX > noteBounds.W)
XOffset = noteBounds.W; OffsetX = noteBounds.W;
float dy = noteBounds.H / CBase.Settings.GetNumNoteLines(); float dy = noteBounds.H / CBase.Settings.GetNumNoteLines();
SRectF drawRect = new SRectF( SRectF drawRect = new SRectF(
noteBounds.X - dy + XOffset, noteBounds.X - dy + OffsetX,
noteBounds.Y + dy * (CBase.Settings.GetNumNoteLines() - 1 - (TonePlayer - BaseLine) / 2f), noteBounds.Y + dy * (CBase.Settings.GetNumNoteLines() - 1 - (TonePlayer - BaseLine) / 2f),
dy, dy,
dy, dy,
@@ -714,7 +714,7 @@ namespace VocaluxeLib.Menu.SingNotes
TonePlayer -= 12; TonePlayer -= 12;
drawRect = new SRectF( drawRect = new SRectF(
noteBounds.X - dy + XOffset, noteBounds.X - dy + OffsetX,
noteBounds.Y + dy * (CBase.Settings.GetNumNoteLines() - 1 - (TonePlayer - BaseLine) / 2f), noteBounds.Y + dy * (CBase.Settings.GetNumNoteLines() - 1 - (TonePlayer - BaseLine) / 2f),
dy, dy,
dy, dy,
+1 -1
View File
@@ -21,7 +21,7 @@ namespace VocaluxeLib.PartyModes
Warning.Font = "Normal"; Warning.Font = "Normal";
Warning.Style = EStyle.Normal; Warning.Style = EStyle.Normal;
Warning.Color = new SColorF(1f, 0f, 0f, 1f); Warning.Color = new SColorF(1f, 0f, 0f, 1f);
Warning.SColor = new SColorF(1f, 0f, 0f, 1f); Warning.SelColor = new SColorF(1f, 0f, 0f, 1f);
Warning.Text = "SOMETHING WENT WRONG!"; Warning.Text = "SOMETHING WENT WRONG!";
AddText(Warning); AddText(Warning);
} }