added SetSelectionByValueIndex to SelectSlides
This commit is contained in:
1 parent
3bb7eb281a
commit
4c461a3ad9
1 file changed
+13
@@ -525,6 +525,19 @@ namespace Vocaluxe.Menu
|
||||
_Textures[selection] = NewTexture;
|
||||
}
|
||||
|
||||
public bool SetSelectionByValueIndex(int ValueIndex)
|
||||
{
|
||||
for (int i = 0; i < _ValueIndexes.Count; i++)
|
||||
{
|
||||
if (_ValueIndexes[i] == ValueIndex)
|
||||
{
|
||||
Selection = i;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool NextValue()
|
||||
{
|
||||
if (Selection < _ValueNames.Count - 1)
|
||||
|
||||
Reference in new issue
Block a user