Draw highlighted element
This commit is contained in:
1 parent
67d081d1c1
commit
6bf8a5d64c
1 file changed
+7
-1
@@ -46,6 +46,7 @@ namespace VocaluxeLib.Menu
|
|||||||
protected readonly COrderedDictionaryLite<CEqualizer> _Equalizers;
|
protected readonly COrderedDictionaryLite<CEqualizer> _Equalizers;
|
||||||
protected readonly COrderedDictionaryLite<CPlaylist> _Playlists;
|
protected readonly COrderedDictionaryLite<CPlaylist> _Playlists;
|
||||||
protected readonly COrderedDictionaryLite<CParticleEffect> _ParticleEffects;
|
protected readonly COrderedDictionaryLite<CParticleEffect> _ParticleEffects;
|
||||||
|
private readonly SColorF _HighlightColor = new SColorF(1, 0, 0, 0);
|
||||||
|
|
||||||
protected CObjectInteractions()
|
protected CObjectInteractions()
|
||||||
{
|
{
|
||||||
@@ -307,7 +308,12 @@ namespace VocaluxeLib.Menu
|
|||||||
items.Sort((s1, s2) => s2.Z.CompareTo(s1.Z));
|
items.Sort((s1, s2) => s2.Z.CompareTo(s1.Z));
|
||||||
|
|
||||||
for (int i = 0; i < items.Count; i++)
|
for (int i = 0; i < items.Count; i++)
|
||||||
_GetElement(items[i].ID).Draw();
|
{
|
||||||
|
IMenuElement el = _GetElement(items[i].ID);
|
||||||
|
if (el.Highlighted)
|
||||||
|
CBase.Drawing.DrawRect(_HighlightColor, el.MaxRect);
|
||||||
|
el.Draw();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion Drawing
|
#endregion Drawing
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user