2023-01-21 20:39:04 +01:00
|
|
|
using System.Globalization;
|
|
|
|
|
|
2022-11-14 11:06:03 +01:00
|
|
|
namespace PowerControl
|
|
|
|
|
{
|
|
|
|
|
internal class MenuStack
|
|
|
|
|
{
|
|
|
|
|
public static Menu.MenuRoot Root = new Menu.MenuRoot()
|
|
|
|
|
{
|
2023-01-21 20:39:04 +01:00
|
|
|
Name = String.Format(
|
|
|
|
|
"\r\n\r\nPower Control v{0} <C4>-<C> <TIME={1}>\r\n",
|
|
|
|
|
Application.ProductVersion.ToString(),
|
|
|
|
|
Is24hClock ? "%H:%M:%S" : "%I:%M:%S %p"
|
|
|
|
|
),
|
2022-11-14 11:06:03 +01:00
|
|
|
Items =
|
|
|
|
|
{
|
2023-01-05 23:35:31 +01:00
|
|
|
Options.Profiles.Instance,
|
|
|
|
|
new Menu.MenuItemSeparator(),
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.Brightness.Instance,
|
|
|
|
|
Options.Volume.Instance,
|
2022-11-21 21:27:33 +01:00
|
|
|
new Menu.MenuItemSeparator(),
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.Resolution.Instance,
|
|
|
|
|
Options.RefreshRate.Instance,
|
|
|
|
|
Options.FPSLimit.Instance,
|
|
|
|
|
Options.GPUScalingItem.Instance,
|
2022-12-10 12:24:29 +01:00
|
|
|
#if DEBUG
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.Sharpening.Instance,
|
2022-12-10 12:24:29 +01:00
|
|
|
#endif
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.GPUColors.Instance,
|
2022-11-21 21:27:33 +01:00
|
|
|
new Menu.MenuItemSeparator(),
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.TDP.Instance,
|
|
|
|
|
Options.GPUFrequency.Instance,
|
|
|
|
|
Options.CPUFrequency.Instance,
|
|
|
|
|
Options.SMT.Instance,
|
2022-11-16 00:33:23 +01:00
|
|
|
new Menu.MenuItemSeparator(),
|
2022-12-19 22:47:10 +01:00
|
|
|
Options.PerformanceOverlay.EnabledInstance,
|
|
|
|
|
Options.PerformanceOverlay.ModeInstance,
|
|
|
|
|
Options.PerformanceOverlay.KernelDriversInstance,
|
|
|
|
|
Options.FanControl.Instance,
|
2023-12-14 19:49:39 +01:00
|
|
|
Options.SteamController.Instance,
|
|
|
|
|
Options.BatteryChargeLimit.Instance
|
2022-11-14 11:06:03 +01:00
|
|
|
}
|
|
|
|
|
};
|
2023-01-21 20:39:04 +01:00
|
|
|
|
|
|
|
|
private static bool Is24hClock
|
|
|
|
|
{
|
|
|
|
|
get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains("HH");
|
|
|
|
|
}
|
2022-11-14 11:06:03 +01:00
|
|
|
}
|
|
|
|
|
}
|