mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-02 06:40:21 +01:00
43 lines
848 B
C#
43 lines
848 B
C#
|
|
namespace PowerControl.Menu
|
||
|
|
{
|
||
|
|
public class MenuItemSeparator : MenuItem
|
||
|
|
{
|
||
|
|
private ToolStripItem toolStripItem;
|
||
|
|
|
||
|
|
public MenuItemSeparator()
|
||
|
|
{
|
||
|
|
Selectable = false;
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void CreateMenu(ToolStripItemCollection collection)
|
||
|
|
{
|
||
|
|
if (toolStripItem != null)
|
||
|
|
return;
|
||
|
|
|
||
|
|
toolStripItem = new ToolStripSeparator();
|
||
|
|
collection.Add(toolStripItem);
|
||
|
|
}
|
||
|
|
|
||
|
|
public override string Render(MenuItem selected)
|
||
|
|
{
|
||
|
|
return Color("---", Colors.Blue);
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void SelectNext()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void SelectPrev()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void Update()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void Reset()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|