Log third party repo usage
This commit is contained in:
parent
b69a53ef3d
commit
bdc8187492
@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0-windows</TargetFramework>
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>9.0</LangVersion>
|
||||||
<Version>1.20</Version>
|
<Version>1.21</Version>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ using Dalamud.Game.Command;
|
|||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
|
using Dalamud.Logging;
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
using ECommons;
|
using ECommons;
|
||||||
using ECommons.Schedulers;
|
using ECommons.Schedulers;
|
||||||
@ -49,6 +50,7 @@ namespace Pal.Client
|
|||||||
public PomanderState PomanderOfSight { get; set; } = PomanderState.Inactive;
|
public PomanderState PomanderOfSight { get; set; } = PomanderState.Inactive;
|
||||||
public PomanderState PomanderOfIntuition { get; set; } = PomanderState.Inactive;
|
public PomanderState PomanderOfIntuition { get; set; } = PomanderState.Inactive;
|
||||||
public string? DebugMessage { get; set; }
|
public string? DebugMessage { get; set; }
|
||||||
|
public bool IsUnsupported { get; set; }
|
||||||
|
|
||||||
public string Name => "Palace Pal";
|
public string Name => "Palace Pal";
|
||||||
|
|
||||||
@ -61,6 +63,9 @@ namespace Pal.Client
|
|||||||
Service.Configuration = (Configuration?)pluginInterface.GetPluginConfig() ?? pluginInterface.Create<Configuration>()!;
|
Service.Configuration = (Configuration?)pluginInterface.GetPluginConfig() ?? pluginInterface.Create<Configuration>()!;
|
||||||
Service.Configuration.Migrate();
|
Service.Configuration.Migrate();
|
||||||
|
|
||||||
|
IsUnsupported = !pluginInterface.IsDev && !pluginInterface.SourceRepository.StartsWith("https://raw.githubusercontent.com/carvelli/");
|
||||||
|
PluginLog.Information($"Install source: {pluginInterface.SourceRepository}");
|
||||||
|
|
||||||
var agreementWindow = pluginInterface.Create<AgreementWindow>();
|
var agreementWindow = pluginInterface.Create<AgreementWindow>();
|
||||||
if (agreementWindow is not null)
|
if (agreementWindow is not null)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,7 @@ namespace Pal.Client.Windows
|
|||||||
public ConfigWindow() : base("Palace Pal###PalPalaceConfig")
|
public ConfigWindow() : base("Palace Pal###PalPalaceConfig")
|
||||||
{
|
{
|
||||||
var version = typeof(Plugin).Assembly.GetName().Version!.ToString(2);
|
var version = typeof(Plugin).Assembly.GetName().Version!.ToString(2);
|
||||||
WindowName = $"Palace Pal v{version}###PalPalaceConfig";
|
WindowName = $"Palace Pal v{version}{(Service.Plugin.IsUnsupported ? " - Unsupported" : "")}###PalPalaceConfig";
|
||||||
Size = new Vector2(500, 400);
|
Size = new Vector2(500, 400);
|
||||||
SizeCondition = ImGuiCond.FirstUseEver;
|
SizeCondition = ImGuiCond.FirstUseEver;
|
||||||
Position = new Vector2(300, 300);
|
Position = new Vector2(300, 300);
|
||||||
|
Loading…
Reference in New Issue
Block a user