[Commands] Cleanup #doanim Command. (#2540)

* [Commands] Cleanup #doanim Command.

- Cleanup messages and logic.
- Allow you to use animation names or IDs, could possibly extend this to quest API in the future.

* Update dialogue_window.h
This commit is contained in:
Kinglykrab
2022-11-14 16:38:05 -05:00
committed by GitHub
parent e5ad9264d0
commit 36887203d3
5 changed files with 161 additions and 24 deletions
+67 -2
View File
@@ -381,9 +381,74 @@ const std::map<std::string, int> animations = {
{"salute", 67},
{"shiver", 68},
{"tapfoot", 69},
{"bowto", 70},
};
{"bowto", 70}
};
const std::map<int, std::string> animation_names_map = {
{ 1, "Kick" },
{ 2, "1H Piercing" },
{ 3, "2H Slashing" },
{ 4, "2H Blunt" },
{ 4, "2H Piercing" },
{ 5, "Throw" },
{ 6, "Off Hand" },
{ 7, "Bash" },
{ 8, "Main Hand" },
{ 9, "Bow" },
{ 10, "Swim" },
{ 11, "Round Kick" },
{ 12, "Get Hit" },
{ 13, "Get Hit" },
{ 14, "Falling" },
{ 15, "Drowning" },
{ 16, "Death" },
{ 17, "Stand By" },
{ 18, "Stand By" },
{ 19, "Lunge" },
{ 20, "Jump" },
{ 21, "Falling" },
{ 22, "Crouched Walk" },
{ 23, "Ladder Climb" },
{ 24, "Crouch" },
{ 25, "Swim" },
{ 26, "Idle" },
{ 27, "Cheer" },
{ 28, "Disgusted" },
{ 29, "Wave" },
{ 30, "Rude" },
{ 31, "Yawn" },
{ 33, "Move To Side" },
{ 35, "Ice Slide" },
{ 36, "Kneel" },
{ 37, "Swim" },
{ 38, "Sit" },
{ 42, "Cast" },
{ 43, "Cast" },
{ 44, "Cast" },
{ 45, "Flying Kick" },
{ 46, "Tiger Claw" },
{ 47, "Eagle Strike" },
{ 48, "Nod Yes" },
{ 49, "Shake No" },
{ 50, "Plead" },
{ 51, "Clap" },
{ 52, "Blush" },
{ 54, "Chuckle" },
{ 57, "Head Tilt" },
{ 58, "Dance" },
{ 59, "Disagree" },
{ 60, "Glare" },
{ 61, "Peer" },
{ 62, "Kneel" },
{ 63, "Laugh" },
{ 64, "Point" },
{ 65, "Shrug" },
{ 66, "Hand Raise" },
{ 67, "Salute" },
{ 68, "Shiver" },
{ 69, "Tap Foot" },
{ 70, "Bow To" }
};
class DialogueWindow {
public: