Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions TarnishedTool/GameIds/GestureNameLookup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Collections.Generic;

namespace TarnishedTool.GameIds;

public static class GestureNameLookup
{
private static readonly Dictionary<int, string> Names = new()
{
{ 0, "Bow" }, { 1, "Polite Bow" }, { 2, "My Thanks" }, { 3, "Curtsy" },
{ 4, "Reverential Bow" }, { 5, "My Lord" }, { 6, "Warm Welcome" }, { 7, "Wave" },
{ 8, "Casual Greeting" }, { 9, "Strength!" }, { 10, "As You Wish" },
{ 20, "Point Forwards" }, { 21, "Point Upwards" }, { 22, "Point Downwards" },
{ 23, "Beckon" }, { 24, "Wait!" }, { 25, "Calm Down!" }, { 30, "Nod In Thought" },
{ 40, "Extreme Repentance" }, { 41, "Grovel For Mercy" }, { 50, "Rallying Cry" },
{ 51, "Heartening Cry" }, { 52, "By My Sword" }, { 53, "Hoslow's Oath" },
{ 54, "Fire Spur Me" }, { 60, "Bravo!" }, { 70, "Jump for Joy" },
{ 71, "Triumphant Delight" }, { 72, "Fancy Spin" }, { 73, "Finger Snap" },
{ 80, "Dejection" }, { 90, "Patches' Crouch" }, { 91, "Crossed Legs" },
{ 92, "Rest" }, { 93, "Sitting Sideways" }, { 94, "Dozing Cross-Legged" },
{ 95, "Spread Out" }, { 97, "Balled Up" }, { 98, "What Do You Want?" },
{ 100, "Prayer" }, { 101, "Desperate Prayer" }, { 102, "Rapture" },
{ 103, "Erudition" }, { 104, "Outer Order" }, { 105, "Inner Order" },
{ 106, "Golden Order Totality" },
{ 108, "The Ring (Pre-Order Gesture)" }, { 109, "The Ring" },
{ 111, "May the Best Win" }, { 112, "The Two Fingers" },
{ 113, "Ring of Miquella" }, { 114, "Let Us Go Together" },
{ 115, "O' Mother" }, { 116, "Ring of Miquella (Pre-Order Gesture)" },
};

private static readonly HashSet<int> PreOrderCheckIds = [108, 109, 113, 116];

public static string GetName(int id) =>
Names.TryGetValue(id, out var name) ? name : $"Gesture {id}";

public static bool IsPreOrderVariant(int id) => PreOrderCheckIds.Contains(id);
}
22 changes: 22 additions & 0 deletions TarnishedTool/Models/GraceSelectionItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using TarnishedTool.ViewModels;

namespace TarnishedTool.Models;

public class GestureSelectionItem : BaseViewModel
{
public int Id { get; }
public string Name { get; }

private bool _isSelected;
public bool IsSelected
{
get => _isSelected;
set => SetProperty(ref _isSelected, value);
}

public GestureSelectionItem(int id, string name)
{
Id = id;
Name = name;
}
}
155 changes: 155 additions & 0 deletions TarnishedTool/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading