aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-09-15 17:05:10 -0700
committerPinapelz <yukais@pinapelz.com>2024-09-15 17:05:10 -0700
commite2d1d22e2712c05f17a1d0b0d759a037f52810a4 (patch)
treee908fbfe19a252d635a82478dba13897b395bf5d
parent3f265b847de26d51da4b5444380e8396bfbb5f54 (diff)
add MainWindow stub
-rw-r--r--DiscordToXIV/ChatUtils.cs0
-rw-r--r--DiscordToXIV/Windows/MainWindow.cs35
2 files changed, 35 insertions, 0 deletions
diff --git a/DiscordToXIV/ChatUtils.cs b/DiscordToXIV/ChatUtils.cs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/DiscordToXIV/ChatUtils.cs
diff --git a/DiscordToXIV/Windows/MainWindow.cs b/DiscordToXIV/Windows/MainWindow.cs
new file mode 100644
index 0000000..a636553
--- /dev/null
+++ b/DiscordToXIV/Windows/MainWindow.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Numerics;
+using Dalamud.Interface.Internal;
+using Dalamud.Interface.Utility;
+using Dalamud.Interface.Windowing;
+using Dalamud.Plugin.Services;
+using DiscordToXIV;
+using ImGuiNET;
+
+namespace DiscordTOXIV.Windows;
+
+public class MainWindow : Window, IDisposable
+{
+ private Plugin Plugin;
+
+ public MainWindow(Plugin plugin)
+ : base("DiscordToXIV###DiscordToXIVMainWindow", ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse)
+ {
+ SizeConstraints = new WindowSizeConstraints
+ {
+ MinimumSize = new Vector2(375, 330),
+ MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
+ };
+ Plugin = plugin;
+ }
+
+ public void Dispose() { }
+
+ public override void Draw()
+ {
+ ImGui.Text("DiscordToXIV");
+ ImGui.Text("Nothing much here for now... Use /pdiscordtoxiv <port> to start the server");
+ ImGui.Text("Stop the server: /pdiscordtoxiv stop");
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage