Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
style: changed the code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 5, 2023
1 parent 6f6eb2a commit 3fa1753
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion FakeName/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Dalamud.Configuration;
using System;

namespace FakeName;

Expand Down
3 changes: 1 addition & 2 deletions FakeName/Hooker.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using Dalamud.Game.Text;
using Dalamud.Game.Text.SeStringHandling;
using Dalamud.Hooking;
using Dalamud.Logging;
using Dalamud.Utility.Signatures;
using System;

namespace FakeName;

Expand Down
8 changes: 3 additions & 5 deletions FakeName/Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Dalamud.Game.Command;
using Dalamud.Game.Text.SeStringHandling;
using Dalamud.Plugin;
using FakeName.Windows;
using System.Linq;

namespace FakeName;

Expand All @@ -19,13 +17,13 @@ public Plugin(DalamudPluginInterface pluginInterface, CommandManager commandMana
pluginInterface.Create<Service>();
Service.Config = Service.Interface.GetPluginConfig() as Configuration ?? new Configuration();

WindowManager = new WindowManager(this);
WindowManager = new WindowManager();

AtkTextNodeSetText = new Hooker();

Service.CommandManager.AddHandler("/fakename", new CommandInfo(this.OnCommand)
Service.CommandManager.AddHandler("/fakename", new CommandInfo(OnCommand)
{
HelpMessage = "打开FakeName",
HelpMessage = "Open a config window about fake name.",
});
}

Expand Down
3 changes: 1 addition & 2 deletions FakeName/Windows/ConfigWindow.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System;
using Dalamud.Interface.Windowing;
using ImGuiNET;

namespace FakeName.Windows;

internal class ConfigWindow : Window
{
public ConfigWindow(Plugin plugin) : base("Fake Name")
public ConfigWindow() : base("Fake Name")
{
}

Expand Down
6 changes: 3 additions & 3 deletions FakeName/Windows/WindowManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Dalamud.Interface.Windowing;
using System;

namespace FakeName.Windows;

Expand All @@ -8,9 +8,9 @@ internal class WindowManager : IDisposable
internal readonly WindowSystem WindowSystem = new("FakeName");
internal ConfigWindow ConfigWindow { get; }

public WindowManager(Plugin plugin)
public WindowManager()
{
ConfigWindow = new ConfigWindow(plugin);
ConfigWindow = new ConfigWindow();
WindowSystem.AddWindow(ConfigWindow);

Service.Interface.UiBuilder.Draw += DrawUi;
Expand Down

0 comments on commit 3fa1753

Please sign in to comment.