mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 14:53:48 +00:00
PowerControl: Move Menu.cs into Menu/
This commit is contained in:
parent
c2ea59d253
commit
bbc4cf8200
5 changed files with 476 additions and 480 deletions
42
PowerControl/Menu/MenuSeparator.cs
Normal file
42
PowerControl/Menu/MenuSeparator.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue