mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Cleanup
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Diagnostics;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Timers;
|
||||
using static GHelper.AnimeMatrix.BuiltInAnimation;
|
||||
|
||||
namespace GHelper.AnimeMatrix
|
||||
{
|
||||
@@ -36,7 +35,7 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
try
|
||||
{
|
||||
if (AppConfig.ContainsModel("GA403") || AppConfig.ContainsModel("GU605"))
|
||||
if (AppConfig.IsSlash())
|
||||
deviceSlash = new SlashDevice();
|
||||
else
|
||||
deviceMatrix = new AnimeMatrixDevice();
|
||||
@@ -165,9 +164,9 @@ namespace GHelper.AnimeMatrix
|
||||
private void SetBuiltIn(int running)
|
||||
{
|
||||
BuiltInAnimation animation = new BuiltInAnimation(
|
||||
(Running)running,
|
||||
Sleeping.Starfield,
|
||||
Shutdown.SeeYa,
|
||||
(BuiltInAnimation.Running)running,
|
||||
BuiltInAnimation.Sleeping.Starfield,
|
||||
BuiltInAnimation.Shutdown.SeeYa,
|
||||
BuiltInAnimation.Startup.StaticEmergence
|
||||
);
|
||||
deviceMatrix.SetBuiltInAnimation(true, animation);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using GHelper.AnimeMatrix.Communication;
|
||||
using GHelper.Mode;
|
||||
using System.Text;
|
||||
|
||||
namespace GHelper.AnimeMatrix
|
||||
@@ -38,10 +37,10 @@ namespace GHelper.AnimeMatrix
|
||||
{ SlashMode.Bounce, "Bounce"},
|
||||
{ SlashMode.Slash, "Slash"},
|
||||
{ SlashMode.Loading, "Loading"},
|
||||
|
||||
|
||||
{ SlashMode.BitStream, "Bit Stream"},
|
||||
{ SlashMode.Transmission, "Transmission"},
|
||||
|
||||
|
||||
{ SlashMode.Flow, "Flow"},
|
||||
{ SlashMode.Flux, "Flux"},
|
||||
{ SlashMode.Phantom, "Phantom"},
|
||||
@@ -106,7 +105,8 @@ namespace GHelper.AnimeMatrix
|
||||
try
|
||||
{
|
||||
modeByte = modeCodes[mode];
|
||||
} catch (Exception)
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
modeByte = 0x00;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user