Compare commits

...

No commits in common. "main" and "7a1ca6fe97c82391376da2525129d66f679fda1f" have entirely different histories.

7 changed files with 16 additions and 48 deletions

View File

@ -11,7 +11,7 @@ namespace TextBoxStyler {
this.Plugin = plugin;
this.Plugin.CommandManager.AddHandler(CommandName, new CommandInfo(this.OnCommand) {
HelpMessage = $"Opens the settings for {Plugin.Name}",
HelpMessage = $"Opens the settings for {this.Plugin.Name}",
});
}

View File

@ -1,17 +1,17 @@
using Dalamud.IoC;
using Dalamud.Game.Command;
using Dalamud.IoC;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
namespace TextBoxStyler {
// ReSharper disable once ClassNeverInstantiated.Global
public class Plugin : IDalamudPlugin {
internal static string Name => "Text Box Styler";
public string Name => "Text Box Styler";
[PluginService]
internal DalamudPluginInterface Interface { get; private init; } = null!;
[PluginService]
internal ICommandManager CommandManager { get; private init; } = null!;
internal CommandManager CommandManager { get; private init; } = null!;
internal PluginConfiguration Config { get; }
internal PluginUi Ui { get; }

View File

@ -36,7 +36,7 @@ namespace TextBoxStyler {
return;
}
if (!ImGui.Begin($"{Plugin.Name} settings", ref this._drawUi)) {
if (!ImGui.Begin($"{this.Plugin.Name} settings", ref this._drawUi)) {
ImGui.End();
return;
}

View File

@ -10,7 +10,7 @@ namespace TextBoxStyler {
public Styler(Plugin plugin) {
this.Plugin = plugin;
this.Common = new XivCommonBase(this.Plugin.Interface, Hooks.Talk | Hooks.BattleTalk);
this.Common = new XivCommonBase(Hooks.Talk | Hooks.BattleTalk);
this.Common.Functions.Talk.OnTalk += this.StyleTalk;
this.Common.Functions.BattleTalk.OnBattleTalk += this.StyleBattleTalk;

View File

@ -1,45 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7-windows</TargetFramework>
<Version>1.1.8</Version>
<TargetFramework>net5-windows</TargetFramework>
<Version>1.1.1</Version>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<PropertyGroup>
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev</DalamudLibPath>
</PropertyGroup>
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
<DalamudLibPath>$(DALAMUD_HOME)</DalamudLibPath>
</PropertyGroup>
<PropertyGroup Condition="'$(IsCI)' == 'true'">
<DalamudLibPath>$(HOME)/dalamud</DalamudLibPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Dalamud">
<HintPath>$(DalamudLibPath)\Dalamud.dll</HintPath>
<HintPath>$(AppData)\XIVLauncher\addon\Hooks\dev\Dalamud.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ImGui.NET">
<HintPath>$(DalamudLibPath)\ImGui.NET.dll</HintPath>
<HintPath>$(AppData)\XIVLauncher\addon\Hooks\dev\ImGui.NET.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ImGuiScene">
<HintPath>$(DalamudLibPath)\ImGuiScene.dll</HintPath>
<HintPath>$(AppData)\XIVLauncher\addon\Hooks\dev\ImGuiScene.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12"/>
<PackageReference Include="XivCommon" Version="9.0.0"/>
<PackageReference Include="DalamudPackager" Version="2.1.2"/>
<PackageReference Include="XivCommon" Version="3.0.1"/>
</ItemGroup>
</Project>

View File

@ -1,6 +1,6 @@
name: Text Box Styler
author: Anna
author: ascclemens
punchline: Allows replacing every text box with the background of your choice.
description: >-
Allows replacing every text box with the background of your choice.
repo_url: https://git.anna.lgbt/anna/TextBoxStyler
repo_url: https://git.sr.ht/~jkcclemens/TextBoxStyler

View File

@ -1,19 +0,0 @@
{
"version": 1,
"dependencies": {
"net7.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.12, )",
"resolved": "2.1.12",
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
},
"XivCommon": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "avaBp3FmSCi/PiQhntCeBDYOHejdyTWmFtz4pRBVQQ8vHkmRx+YTk1la9dkYBMlXxRXKckEdH1iI1Fu61JlE7w=="
}
}
}
}