Skip to content

Commit

Permalink
Merge pull request #96 from Etheirys/actionsfix
Browse files Browse the repository at this point in the history
Fix actions
  • Loading branch information
Minmoose authored Nov 21, 2024
2 parents d2e9883 + 4f63459 commit 34e01a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Brio/UI/Controls/Selectors/ActionTimelineSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ protected override void PopulateList()
}
foreach(var emote in GameDataProvider.Instance.Emotes.Values)
{
// Loop
BrioActionTimeline timeline;

// Loop
if(emote.ActionTimeline[0].RowId != 0 && GameDataProvider.Instance.ActionTimelines.TryGetValue(emote.ActionTimeline[0].RowId, out timeline))
{
AddItem(new ActionTimelineSelectorEntry(emote.Name.ToString(), (ushort)timeline.RowId, emote.RowId, timeline.Key.ToString(), ActionTimelineSelectorEntry.OriginalType.Emote, ActionTimelineSelectorEntry.AnimationPurpose.Standard, (ActionTimelineSlots)timeline.Slot, emote.Icon));
Expand Down Expand Up @@ -78,8 +78,8 @@ protected override void PopulateList()

foreach(var action in GameDataProvider.Instance.Actions.Values)
{
if(action.AnimationEnd.ValueNullable != null && action.AnimationEnd.RowId != 0)
AddItem(new ActionTimelineSelectorEntry(action.Name.ToString(), (ushort)action.AnimationEnd.RowId, action.RowId, action.AnimationEnd.Value.Key.ToString(), ActionTimelineSelectorEntry.OriginalType.Action, ActionTimelineSelectorEntry.AnimationPurpose.Action, (ActionTimelineSlots)action.AnimationEnd.Value.Slot, action.Icon));
if(action.AnimationEnd.RowId != 0 && GameDataProvider.Instance.ActionTimelines.TryGetValue(action.AnimationEnd.RowId, out BrioActionTimeline timeline))
AddItem(new ActionTimelineSelectorEntry(action.Name.ToString(), (ushort)action.AnimationEnd.RowId, action.RowId, action.AnimationEnd.Value.Key.ToString(), ActionTimelineSelectorEntry.OriginalType.Action, ActionTimelineSelectorEntry.AnimationPurpose.Action, (ActionTimelineSlots)timeline.Slot, action.Icon));

}
}
Expand Down

0 comments on commit 34e01a0

Please sign in to comment.