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

Commit 24c4302

Browse files
committed
Adjust "Only owned" Text further.
Implement recommendations.
1 parent 059c899 commit 24c4302

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

CustomizePlus/CustomizePlus.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<Authors></Authors>
66
<Company></Company>
7-
<Version>1.2.6.2</Version>
7+
<Version>1.2.6.9</Version>
88
<Description>CustomizePlus</Description>
99
<Copyright></Copyright>
1010
<PackageProjectUrl>https://github.com/XIV-Tools/CustomizePlus</PackageProjectUrl>

CustomizePlus/UI/Windows/MainWindow.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22
// Licensed under the MIT license.
33

44
using System;
5+
using System.Diagnostics;
56
using System.IO;
67
using System.Linq;
78
using System.Numerics;
89
using System.Windows.Forms;
910
using CustomizePlus.Data;
1011
using CustomizePlus.Data.Profile;
1112
using CustomizePlus.Helpers;
13+
using CustomizePlus.Services;
1214
using CustomizePlus.UI.Dialogs;
1315
using CustomizePlus.UI.Windows.Debug;
1416
using Dalamud.Interface;
1517
using Dalamud.Interface.Components;
1618
using Dalamud.Interface.ImGuiFileDialog;
1719
using Dalamud.Logging;
20+
using Dalamud.Plugin;
1821
using ImGuiNET;
1922
using Newtonsoft.Json;
2023

@@ -25,11 +28,20 @@ public class MainWindow : WindowBase
2528
private static string _newCharacterName = GameDataHelper.GetPlayerName() ?? string.Empty;
2629
private static string _newProfileName = "New Profile";
2730
private readonly FileDialogManager _importFilePicker = new();
31+
public const string SeaOfStarsLower = "https://raw.githubusercontent.com/ottermandias/seaofstars/main/repo.json";
2832
private static string? PlayerCharacterName => GameDataHelper.GetPlayerName();
2933

3034
protected override string Title => "Customize+";
3135
protected override bool SingleInstance => true;
3236

37+
private static bool CheckSourceRepo() {
38+
return DalamudServices.PluginInterface.SourceRepository?.Trim().ToLowerInvariant() switch {
39+
null => false,
40+
SeaOfStarsLower => true,
41+
_ => false,
42+
};
43+
}
44+
3345
public static void Show()
3446
{
3547
Plugin.InterfaceManager.Show<MainWindow>();
@@ -146,6 +158,24 @@ protected override void DrawContents()
146158
ImGui.Separator();
147159
ImGui.Spacing();
148160

161+
if (!CheckSourceRepo()) {
162+
CtrlHelper.StaticLabel("ATTENTION, PLEASE READ! We are moving Repository! This one will not receive updates any further!", CtrlHelper.TextAlignment.Center);
163+
CtrlHelper.StaticLabel("The new one can be found here: https://github.com/Aether-Tools/CustomizePlus/tree/main", CtrlHelper.TextAlignment.Center);
164+
165+
ImGui.Dummy(new Vector2((ImGui.GetContentRegionAvail().X / 2) - 150, 0));
166+
ImGui.SameLine();
167+
if (ImGui.Button("Copy Repository Link")) {
168+
Clipboard.SetText("https://raw.githubusercontent.com/Aether-Tools/DalamudPlugins/main/repo.json");
169+
}
170+
ImGui.SameLine();
171+
if (ImGui.Button("Open Link to Github")) {
172+
Process.Start(new ProcessStartInfo("https://github.com/Aether-Tools/CustomizePlus") { UseShellExecute = true });
173+
}
174+
175+
CtrlHelper.StaticLabel("If you somehow see this DESPITE using the Sea of Stars Repository, you dont need to worry.", CtrlHelper.TextAlignment.Center);
176+
CtrlHelper.StaticLabel("The Sea of Stars repository will remain updated. Still, please doublecheck you are using Sea of Stars.", CtrlHelper.TextAlignment.Center);
177+
}
178+
149179
ImGui.PushStyleVar(ImGuiStyleVar.CellPadding, new Vector2(5f, 6f));
150180

151181
//TODO there's probably some imgui functionality to sort the table when you click on the headers

0 commit comments

Comments
 (0)