mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
chore: fix warnings
This commit is contained in:
parent
f532f6e259
commit
c93d7f16ed
7 changed files with 20 additions and 14 deletions
|
|
@ -17,7 +17,7 @@ namespace Dalamud.Game.ClientState.Fates;
|
||||||
[ServiceManager.BlockingEarlyLoadedService]
|
[ServiceManager.BlockingEarlyLoadedService]
|
||||||
#pragma warning disable SA1015
|
#pragma warning disable SA1015
|
||||||
[ResolveVia<IFateTable>]
|
[ResolveVia<IFateTable>]
|
||||||
#pragma warning enable SA1015
|
#pragma warning restore SA1015
|
||||||
public sealed partial class FateTable : IServiceType, IFateTable
|
public sealed partial class FateTable : IServiceType, IFateTable
|
||||||
{
|
{
|
||||||
private readonly ClientStateAddressResolver address;
|
private readonly ClientStateAddressResolver address;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ using System;
|
||||||
using Dalamud.Game.ClientState.Objects.Types;
|
using Dalamud.Game.ClientState.Objects.Types;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
|
||||||
namespace Dalamud.Game.ClientState.Objects;
|
namespace Dalamud.Game.ClientState.Objects;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1147,10 +1147,10 @@ internal class InterfaceManager : IDisposable, IServiceType
|
||||||
var dPadRight = gamepadState.Raw(GamepadButtons.DpadRight) != 0;
|
var dPadRight = gamepadState.Raw(GamepadButtons.DpadRight) != 0;
|
||||||
var dPadDown = gamepadState.Raw(GamepadButtons.DpadDown) != 0;
|
var dPadDown = gamepadState.Raw(GamepadButtons.DpadDown) != 0;
|
||||||
var dPadLeft = gamepadState.Raw(GamepadButtons.DpadLeft) != 0;
|
var dPadLeft = gamepadState.Raw(GamepadButtons.DpadLeft) != 0;
|
||||||
var leftStickUp = gamepadState.LeftStickUp;
|
var leftStickUp = gamepadState.LeftStick.Y > 0 ? gamepadState.LeftStick.Y / 100f : 0;
|
||||||
var leftStickRight = gamepadState.LeftStickRight;
|
var leftStickRight = gamepadState.LeftStick.X > 0 ? gamepadState.LeftStick.X / 100f : 0;
|
||||||
var leftStickDown = gamepadState.LeftStickDown;
|
var leftStickDown = gamepadState.LeftStick.Y < 0 ? -gamepadState.LeftStick.Y / 100f : 0;
|
||||||
var leftStickLeft = gamepadState.LeftStickLeft;
|
var leftStickLeft = gamepadState.LeftStick.X < 0 ? -gamepadState.LeftStick.X / 100f : 0;
|
||||||
var l1Button = gamepadState.Raw(GamepadButtons.L1) != 0;
|
var l1Button = gamepadState.Raw(GamepadButtons.L1) != 0;
|
||||||
var l2Button = gamepadState.Raw(GamepadButtons.L2) != 0;
|
var l2Button = gamepadState.Raw(GamepadButtons.L2) != 0;
|
||||||
var r1Button = gamepadState.Raw(GamepadButtons.R1) != 0;
|
var r1Button = gamepadState.Raw(GamepadButtons.R1) != 0;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@ namespace Dalamud.Interface.Internal.Windows.Data;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class NetworkMonitorWidget : IDataWindowWidget
|
internal class NetworkMonitorWidget : IDataWindowWidget
|
||||||
{
|
{
|
||||||
|
#pragma warning disable SA1313
|
||||||
private readonly record struct NetworkPacketData(ushort OpCode, NetworkMessageDirection Direction, uint SourceActorId, uint TargetActorId)
|
private readonly record struct NetworkPacketData(ushort OpCode, NetworkMessageDirection Direction, uint SourceActorId, uint TargetActorId)
|
||||||
|
#pragma warning restore SA1313
|
||||||
{
|
{
|
||||||
public readonly IReadOnlyList<byte> Data = Array.Empty<byte>();
|
public readonly IReadOnlyList<byte> Data = Array.Empty<byte>();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,18 +87,20 @@ internal class ProfileManagerWidget
|
||||||
if (scrolling)
|
if (scrolling)
|
||||||
{
|
{
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphOne);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphOne);
|
||||||
ImGuiHelpers.ScaledDummy(3);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphTwo);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphTwo);
|
||||||
ImGuiHelpers.ScaledDummy(3);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphThree);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphThree);
|
||||||
ImGuiHelpers.ScaledDummy(3);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphFour);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphFour);
|
||||||
ImGuiHelpers.ScaledDummy(3);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommands);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommands);
|
||||||
ImGui.BulletText(Locs.TutorialCommandsEnable);
|
ImGui.BulletText(Locs.TutorialCommandsEnable);
|
||||||
ImGui.BulletText(Locs.TutorialCommandsDisable);
|
ImGui.BulletText(Locs.TutorialCommandsDisable);
|
||||||
ImGui.BulletText(Locs.TutorialCommandsToggle);
|
ImGui.BulletText(Locs.TutorialCommandsToggle);
|
||||||
ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnd);
|
ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnd);
|
||||||
|
|
||||||
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
|
|
||||||
var buttonWidth = 120f;
|
var buttonWidth = 120f;
|
||||||
ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2);
|
ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2);
|
||||||
|
|
@ -564,9 +566,6 @@ internal class ProfileManagerWidget
|
||||||
public static string ErrorCouldNotChangeState =>
|
public static string ErrorCouldNotChangeState =>
|
||||||
Loc.Localize("ProfileManagerCouldNotChangeState", "Could not change plugin state.");
|
Loc.Localize("ProfileManagerCouldNotChangeState", "Could not change plugin state.");
|
||||||
|
|
||||||
public static string NotInstalled(string name) =>
|
|
||||||
Loc.Localize("ProfileManagerNotInstalled", "{0} (Not Installed)").Format(name);
|
|
||||||
|
|
||||||
public static string TutorialTitle =>
|
public static string TutorialTitle =>
|
||||||
Loc.Localize("ProfileManagerTutorial", "About Collections");
|
Loc.Localize("ProfileManagerTutorial", "About Collections");
|
||||||
|
|
||||||
|
|
@ -596,5 +595,8 @@ internal class ProfileManagerWidget
|
||||||
|
|
||||||
public static string TutorialCommandsEnd =>
|
public static string TutorialCommandsEnd =>
|
||||||
Loc.Localize("ProfileManagerTutorialCommandsEnd", "If you run multiple of these commands, they will be executed in order.");
|
Loc.Localize("ProfileManagerTutorialCommandsEnd", "If you run multiple of these commands, they will be executed in order.");
|
||||||
|
|
||||||
|
public static string NotInstalled(string name) =>
|
||||||
|
Loc.Localize("ProfileManagerNotInstalled", "{0} (Not Installed)").Format(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ internal class TargetAgingStep : IAgingStep
|
||||||
switch (this.step)
|
switch (this.step)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
targetManager.ClearTarget();
|
targetManager.Target = null;
|
||||||
targetManager.ClearFocusTarget();
|
targetManager.FocusTarget = null;
|
||||||
|
|
||||||
this.step++;
|
this.step++;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
using ImGuiScene;
|
using ImGuiScene;
|
||||||
using Lumina;
|
using Lumina;
|
||||||
using Lumina.Data;
|
using Lumina.Data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue