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

Commit

Permalink
fix: better icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 19, 2024
1 parent b4380a9 commit be6eaa0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/Helpers/DrawHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static Vector4 ChangeAlpha(this Vector4 color, float alpha)
return color;
}

public static IDalamudTextureWrap? GetTextureFromIconId(uint iconId, bool highQuality = false)
public static IDalamudTextureWrap? GetTextureFromIconId(uint iconId, bool highQuality = true)
=> ThreadLoadImageHandler.TryGetIconTextureWrap(iconId, highQuality, out var texture) ? texture
: ThreadLoadImageHandler.TryGetIconTextureWrap(0, highQuality, out texture) ? texture : null;

Expand Down
6 changes: 3 additions & 3 deletions ActionTimelineEx/Timeline/TimelineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public void DrawItemWithCenter(Vector2 centerPos, TimelineLayer icon, DrawingSet
private static (IDalamudTextureWrap texture, string? name)[] GetTextures(HashSet<(uint icon, string? name)> iconIds)
{
var result = new List<(IDalamudTextureWrap texture, string? name)>(iconIds.Count);
foreach (var item in iconIds)
foreach (var (icon, name) in iconIds)
{
IDalamudTextureWrap? texture = DrawHelper.GetTextureFromIconId(item.icon);
IDalamudTextureWrap? texture = DrawHelper.GetTextureFromIconId(icon);
if (texture == null) continue;
result.Add((texture, item.name));
result.Add((texture, name));
}
return result.ToArray();
}
Expand Down
2 changes: 1 addition & 1 deletion ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private void ActionFromSelf(ActionEffectSet set)

if (effectItem == null) return;

effectItem.IsHq = set.Header.ActionType == ActionType.Item && set.Header.ActionID > 1000000;
effectItem.IsHq = set.Header.ActionType != ActionType.Item || set.Header.ActionID > 1000000;

foreach (var i in statusGain)
{
Expand Down
2 changes: 1 addition & 1 deletion ECommons
Submodule ECommons updated 141 files

0 comments on commit be6eaa0

Please sign in to comment.