From 965bb76d7f683961149ef97ceba0b0aa22c8ca2b Mon Sep 17 00:00:00 2001 From: Paloys Date: Fri, 15 Jul 2022 23:13:53 +0200 Subject: [PATCH] Code Cleanup --- GoldenTrainer/CompleteDisplay.cs | 3 ++- GoldenTrainer/ExampleModuleSettings.cs | 5 ++--- GoldenTrainer/GoldenTrainer.cs | 6 +++--- GoldenTrainer/Properties/AssemblyInfo.cs | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/GoldenTrainer/CompleteDisplay.cs b/GoldenTrainer/CompleteDisplay.cs index 279ef61..2cb59c6 100644 --- a/GoldenTrainer/CompleteDisplay.cs +++ b/GoldenTrainer/CompleteDisplay.cs @@ -86,7 +86,8 @@ public override void Update() public override void Render() { - if (GoldenTrainerModule.Settings.ActivateMod) { + if (GoldenTrainerModule.Settings.ActivateMod) + { var basePos = Vector2.Lerp(new Vector2(0 - _width, Y), new Vector2(0, Y), Ease.CubeOut(_lerp)).Round(); _bg.Draw(new Vector2(_width - _bg.Width + basePos.X, Y)); diff --git a/GoldenTrainer/ExampleModuleSettings.cs b/GoldenTrainer/ExampleModuleSettings.cs index 5f72903..d86de75 100644 --- a/GoldenTrainer/ExampleModuleSettings.cs +++ b/GoldenTrainer/ExampleModuleSettings.cs @@ -1,6 +1,5 @@ -using Microsoft.Xna.Framework.Input; -using YamlDotNet.Serialization; -using Celeste.Mod; +using Celeste.Mod; +using Microsoft.Xna.Framework.Input; namespace GoldenTrainer { diff --git a/GoldenTrainer/GoldenTrainer.cs b/GoldenTrainer/GoldenTrainer.cs index 2bf7538..cf7ed1f 100644 --- a/GoldenTrainer/GoldenTrainer.cs +++ b/GoldenTrainer/GoldenTrainer.cs @@ -1,8 +1,8 @@ -using Microsoft.Xna.Framework; +using Celeste; +using Celeste.Mod; +using Microsoft.Xna.Framework; using Monocle; using System; -using Celeste; -using Celeste.Mod; namespace GoldenTrainer diff --git a/GoldenTrainer/Properties/AssemblyInfo.cs b/GoldenTrainer/Properties/AssemblyInfo.cs index 4639aea..8d0ad55 100644 --- a/GoldenTrainer/Properties/AssemblyInfo.cs +++ b/GoldenTrainer/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de