PartyNames: Fix 'remembering' of selected profiles.
This commit is contained in:
1 parent
3e91ad499d
commit
b433576de0
4 files changed
+14
-1
No files matched your search
@@ -59,6 +59,9 @@ namespace VocaluxeLib.PartyModes.Challenge
|
|||||||
|
|
||||||
while (_Data.ScreenNames.ProfileIDs.Count > _NumPlayer)
|
while (_Data.ScreenNames.ProfileIDs.Count > _NumPlayer)
|
||||||
_Data.ScreenNames.ProfileIDs.RemoveAt(_Data.ScreenNames.ProfileIDs.Count - 1);
|
_Data.ScreenNames.ProfileIDs.RemoveAt(_Data.ScreenNames.ProfileIDs.Count - 1);
|
||||||
|
|
||||||
|
List<int>[] ids = new List<int>[] { _Data.ScreenNames.ProfileIDs };
|
||||||
|
SetPartyModeProfiles(ids);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -69,7 +72,6 @@ namespace VocaluxeLib.PartyModes.Challenge
|
|||||||
public override void OnShow()
|
public override void OnShow()
|
||||||
{
|
{
|
||||||
base.OnShow();
|
base.OnShow();
|
||||||
SetPartyModeData(_NumPlayer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Back()
|
public override void Back()
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ namespace VocaluxeLib.PartyModes.ChallengeMedley
|
|||||||
|
|
||||||
while (_Data.ScreenNames.ProfileIDs.Count > _NumPlayer)
|
while (_Data.ScreenNames.ProfileIDs.Count > _NumPlayer)
|
||||||
_Data.ScreenNames.ProfileIDs.RemoveAt(_Data.ScreenNames.ProfileIDs.Count - 1);
|
_Data.ScreenNames.ProfileIDs.RemoveAt(_Data.ScreenNames.ProfileIDs.Count - 1);
|
||||||
|
|
||||||
|
List<int>[] ids = new List<int>[] { _Data.ScreenNames.ProfileIDs };
|
||||||
|
SetPartyModeProfiles(ids);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ namespace VocaluxeLib.PartyModes.TicTacToe
|
|||||||
{
|
{
|
||||||
base.OnShow();
|
base.OnShow();
|
||||||
SetPartyModeData(2, _NumPlayerTeam1 + _NumPlayerTeam2, new int[] { _NumPlayerTeam1, _NumPlayerTeam2 });
|
SetPartyModeData(2, _NumPlayerTeam1 + _NumPlayerTeam2, new int[] { _NumPlayerTeam1, _NumPlayerTeam2 });
|
||||||
|
List<int>[] ids = new List<int>[] {_Data.ScreenNames.ProfileIDsTeam1, _Data.ScreenNames.ProfileIDsTeam2};
|
||||||
|
SetPartyModeProfiles(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Back()
|
public override void Back()
|
||||||
|
|||||||
@@ -112,6 +112,12 @@ namespace VocaluxeLib.Menu
|
|||||||
_UpdateButtonState();
|
_UpdateButtonState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetPartyModeProfiles(List<int>[] teamProfiles)
|
||||||
|
{
|
||||||
|
_TeamList = teamProfiles;
|
||||||
|
_UpdateSlides();
|
||||||
|
}
|
||||||
|
|
||||||
public override bool HandleInput(SKeyEvent keyEvent)
|
public override bool HandleInput(SKeyEvent keyEvent)
|
||||||
{
|
{
|
||||||
//Check if selecting with keyboard is active
|
//Check if selecting with keyboard is active
|
||||||
|
|||||||
Reference in new issue
Block a user