refactor: update DP and lang version
This commit is contained in:
parent
0afe0e0aa6
commit
7bb76768aa
|
@ -12,11 +12,11 @@ namespace PeepingTom {
|
|||
|
||||
public bool MarkTargeted { get; set; }
|
||||
|
||||
public Vector4 TargetedColour { get; set; } = new Vector4(0f, 1f, 0f, 1f);
|
||||
public Vector4 TargetedColour { get; set; } = new(0f, 1f, 0f, 1f);
|
||||
public float TargetedSize { get; set; } = 2f;
|
||||
|
||||
public bool MarkTargeting { get; set; }
|
||||
public Vector4 TargetingColour { get; set; } = new Vector4(1f, 0f, 0f, 1f);
|
||||
public Vector4 TargetingColour { get; set; } = new(1f, 0f, 0f, 1f);
|
||||
public float TargetingSize { get; set; } = 2f;
|
||||
|
||||
public bool DebugMarkers { get; set; } = false;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
OutputPath="$(OutputPath)"
|
||||
AssemblyName="$(AssemblyName)"
|
||||
VersionComponents="3"
|
||||
ManifestType="yaml"
|
||||
MakeZip="true"/>
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFramework>net48</TargetFramework>
|
||||
<RootNamespace>PeepingTom</RootNamespace>
|
||||
<Version>1.5.8</Version>
|
||||
<LangVersion>8</LangVersion>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyName>PeepingTom</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
@ -38,7 +38,7 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DalamudPackager" Version="1.0.1" />
|
||||
<PackageReference Include="DalamudPackager" Version="1.2.0" />
|
||||
<PackageReference Include="Fody" Version="6.3.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
author: ascclemens
|
||||
name: Peeping Tom
|
||||
description: Shows who is currently or previously was targeting you.
|
||||
description: Shows who is currently or was previously targeting you.
|
||||
repo_url: https://sr.ht/~jkcclemens/PeepingTom
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace PeepingTom {
|
|||
internal class PluginUi : IDisposable {
|
||||
private PeepingTomPlugin Plugin { get; }
|
||||
|
||||
private Optional<Actor> PreviousFocus { get; set; } = new Optional<Actor>();
|
||||
private Optional<Actor> PreviousFocus { get; set; } = new();
|
||||
|
||||
private bool _wantsOpen;
|
||||
public bool WantsOpen {
|
||||
|
|
|
@ -24,10 +24,10 @@ namespace PeepingTom {
|
|||
private volatile bool _needsUpdate = true;
|
||||
private Thread? Thread { get; set; }
|
||||
|
||||
private readonly object _dataMutex = new object();
|
||||
private readonly object _dataMutex = new();
|
||||
private TargetThreadData? Data { get; set; }
|
||||
|
||||
private readonly Mutex _currentMutex = new Mutex();
|
||||
private readonly Mutex _currentMutex = new();
|
||||
private Targeter[] Current { get; set; } = Array.Empty<Targeter>();
|
||||
|
||||
public IReadOnlyCollection<Targeter> CurrentTargeters {
|
||||
|
@ -39,8 +39,8 @@ namespace PeepingTom {
|
|||
}
|
||||
}
|
||||
|
||||
private readonly Mutex _previousMutex = new Mutex();
|
||||
private List<Targeter> Previous { get; } = new List<Targeter>();
|
||||
private readonly Mutex _previousMutex = new();
|
||||
private List<Targeter> Previous { get; } = new();
|
||||
|
||||
public IReadOnlyCollection<Targeter> PreviousTargeters {
|
||||
get {
|
||||
|
@ -206,7 +206,7 @@ namespace PeepingTom {
|
|||
return;
|
||||
}
|
||||
|
||||
using WaveChannel32 channel = new WaveChannel32(reader) {
|
||||
using WaveChannel32 channel = new(reader) {
|
||||
Volume = this.Plugin.Config.SoundVolume,
|
||||
PadWithZeroes = false,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue