From 8f8be7a13e3142b55317da379a740d3f7be849c0 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:55:25 +0200 Subject: [PATCH] Single Color Modes --- app/AsusUSB.cs | 59 ++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/app/AsusUSB.cs b/app/AsusUSB.cs index ba000f31..055119c0 100644 --- a/app/AsusUSB.cs +++ b/app/AsusUSB.cs @@ -157,34 +157,40 @@ namespace GHelper }; } + static Dictionary _modesSingleColor = new Dictionary + { + { 0, Properties.Strings.AuraStatic }, + { 1, Properties.Strings.AuraBreathe }, + { 10, Properties.Strings.AuraStrobe }, + }; static Dictionary _modes = new Dictionary - { - { 0, Properties.Strings.AuraStatic }, - { 1, Properties.Strings.AuraBreathe }, - { 2, Properties.Strings.AuraColorCycle }, - { 3, Properties.Strings.AuraRainbow }, - { 10, Properties.Strings.AuraStrobe }, - { HEATMAP, "Heatmap"}, - { GPUMODE, "GPU Mode" } - }; + { + { 0, Properties.Strings.AuraStatic }, + { 1, Properties.Strings.AuraBreathe }, + { 2, Properties.Strings.AuraColorCycle }, + { 3, Properties.Strings.AuraRainbow }, + { 10, Properties.Strings.AuraStrobe }, + { HEATMAP, "Heatmap"}, + { GPUMODE, "GPU Mode" } + }; static Dictionary _modesStrix = new Dictionary - { - { 0, Properties.Strings.AuraStatic }, - { 1, Properties.Strings.AuraBreathe }, - { 2, Properties.Strings.AuraColorCycle }, - { 3, Properties.Strings.AuraRainbow }, - { 4, "Star" }, - { 5, "Rain" }, - { 6, "Highlight" }, - { 7, "Laser" }, - { 8, "Ripple" }, - { 10, Properties.Strings.AuraStrobe}, - { 11, "Comet" }, - { 12, "Flash" }, - { HEATMAP, "Heatmap"} - }; + { + { 0, Properties.Strings.AuraStatic }, + { 1, Properties.Strings.AuraBreathe }, + { 2, Properties.Strings.AuraColorCycle }, + { 3, Properties.Strings.AuraRainbow }, + { 4, "Star" }, + { 5, "Rain" }, + { 6, "Highlight" }, + { 7, "Laser" }, + { 8, "Ripple" }, + { 10, Properties.Strings.AuraStrobe}, + { 11, "Comet" }, + { 12, "Flash" }, + { HEATMAP, "Heatmap"} + }; public static Dictionary GetModes() @@ -196,10 +202,7 @@ namespace GHelper if (isSingleColor) { - _modes.Remove(2); - _modes.Remove(3); - _modes.Remove(HEATMAP); - _modes.Remove(GPUMODE); + return _modesSingleColor; } if (AppConfig.IsAdvantageEdition())