Added SetSelectionToSelectSlide and use this on party-screen.
This commit is contained in:
1 parent
48a6958687
commit
b015f2c313
2 files changed
+21
No files matched your search
@@ -118,6 +118,8 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
SelectSlides[htSelectSlides(SelectSlideModes)].Selection = 0;
|
||||
UpdateSelection();
|
||||
|
||||
SetInteractionToSelectSlide(SelectSlides[htSelectSlides(SelectSlideModes)]);
|
||||
}
|
||||
|
||||
public override bool UpdateGame()
|
||||
|
||||
@@ -1552,6 +1552,25 @@ namespace Vocaluxe.Menu
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool SetInteractionToSelectSlide(CSelectSlide slide)
|
||||
{
|
||||
for (int i = 0; i < _Interactions.Count; i++)
|
||||
{
|
||||
if (_Interactions[i].Type == EType.TSelectSlide)
|
||||
{
|
||||
if (_SelectSlides[_Interactions[i].Num] == slide)
|
||||
{
|
||||
_UnsetSelected();
|
||||
_UnsetHighlighted(_Selection);
|
||||
_Selection = i;
|
||||
_SetSelected();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void ProcessMouseClick(int x, int y)
|
||||
{
|
||||
if (_Selection >= _Interactions.Count || _Selection < 0)
|
||||
|
||||
Reference in new issue
Block a user