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

Commit

Permalink
fix: fixed status showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 22, 2023
1 parent 1d9a02d commit f2fffd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions ActionTimelineEx/Timeline/StatusLineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void DrawItemWithCenter(Vector2 centerPos, Vector2 windowPos, DrawingSett
if (rightBottom.X <= windowPos.X) return;

leftTop.X = Math.Max(leftTop.X, windowPos.X);
leftTop.Y = Math.Max(leftTop.Y, windowPos.Y);

drawList.AddImage(texture.ImGuiHandle, leftTop,
leftTop + new Vector2(statusHeight / TimelineItem.HeightRatio, statusHeight), Vector2.Zero, Vector2.One);
Expand Down
2 changes: 0 additions & 2 deletions ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,6 @@ private unsafe void OnCast(uint sourceId, IntPtr ptr)

var actionId = *(ushort*)ptr;

Svc.Chat.Print(actionId.ToString());

var action = Svc.Data.GetExcelSheet<Action>()?.GetRow(actionId);

AddItem(new TimelineItem()
Expand Down

0 comments on commit f2fffd4

Please sign in to comment.