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

Commit

Permalink
fix: icon drawing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 24, 2024
1 parent 731f4ba commit 1a2b060
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
"16470": 0.6,
"16472": 0.6,
"16473": 0.6,
"16474": 0.6,
"16478": 0.8,
"16479": 0.6,
"16480": 1.5,
Expand Down
3 changes: 2 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,6 @@
17435,
35384,
35386,
36001
36001,
20052
]
4 changes: 2 additions & 2 deletions Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ClickingCount": 70222,
"SayingHelloCount": 60,
"ClickingCount": 73576,
"SayingHelloCount": 61,
"SaidUsers": []
}
5 changes: 4 additions & 1 deletion RotationSolver.Basic/Actions/IBaseAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ namespace RotationSolver.Basic.Actions;

public interface IBaseAction : IAction
{
internal static TargetType? TargetOverride { get; set; } = null;
/// <summary>
/// The target override.
/// </summary>
public static TargetType? TargetOverride { get; set; } = null;
internal static bool ForceEnable { get; set; } = false;
internal static bool AutoHealCheck { get; set; } = false;
internal static bool ActionPreview { get; set; } = false;
Expand Down
4 changes: 3 additions & 1 deletion RotationSolver.Basic/Data/IconSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ private static byte[] SvgToPng(byte[] data)
/// <returns></returns>
public static bool GetTexture(uint id, out IDalamudTextureWrap texture, uint @default = 0)
=> ThreadLoadImageHandler.TryGetIconTextureWrap(id, true, out texture)
|| ThreadLoadImageHandler.TryGetIconTextureWrap(id, false, out texture)
|| ThreadLoadImageHandler.TryGetIconTextureWrap(@default, true, out texture)
|| ThreadLoadImageHandler.TryGetIconTextureWrap(@default, false, out texture)
|| ThreadLoadImageHandler.TryGetIconTextureWrap(0, true, out texture);

/// <summary>
Expand All @@ -141,7 +143,7 @@ public static bool GetTexture(string path, out IDalamudTextureWrap texture, bool
/// <returns></returns>
public static bool GetTexture(this IAction? action, out IDalamudTextureWrap texture, bool isAdjust = true)
{
if (isAdjust)
if (isAdjust && action is IBaseAction)
{
return GetTexture((ActionID)(action?.AdjustedID ?? 0), out texture);
}
Expand Down
4 changes: 3 additions & 1 deletion RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,7 @@
"PosFlameThrowerName": "",
"PosImprovisationName": "",
"PoslockModifierName": "The modifier key to unlock the movement temporary",
"PoslockModifierDescription": ""
"PoslockModifierDescription": "",
"RotationSolver.Data.UiString.ConfigWindow_Actions_ForcedConditionSet_Description": "Conditions for forced automatic use of action.",
"RotationSolver.Data.UiString.ConfigWindow_Actions_DisabledConditionSet_Description": "Conditions for automatic use of action being disabled."
}

0 comments on commit 1a2b060

Please sign in to comment.