CheatMenuSA/CheatMenu/Animation.h

45 lines
1.6 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
class Animation
{
private:
2021-03-02 14:18:37 -05:00
inline static bool loop = false;
inline static bool secondary = false;
2020-12-02 16:19:16 -05:00
2021-03-02 14:18:37 -05:00
inline static CJson json = CJson("animation");
inline static ImGuiTextFilter filter = "";
inline static std::vector<std::string> search_categories;
inline static std::string selected_item = "All";
2020-12-02 16:19:16 -05:00
2021-04-25 14:59:14 -04:00
struct Cutscene
{
inline static CJson json = CJson("cutscene");
inline static ImGuiTextFilter filter = "";
inline static std::vector<std::string> categories;
inline static std::string selected = "All";
inline static std::string scene_name = "";
inline static int interior = 0;
inline static bool running = false;
};
2021-03-02 14:18:37 -05:00
inline static char anim_buffer[INPUT_BUFFER_SIZE] = "";
inline static char ifp_buffer[INPUT_BUFFER_SIZE] = "";
inline static std::vector<std::string> fighting_vec{ "Default","Boxing","Kung fu","Kick Boxing","Punch Kick" };
inline static int fighting_selected = 0;
inline static std::vector<std::string> walking_vec{ "default", "man", "shuffle", "oldman", "gang1", "gang2",
"oldfatman", "fatman", "jogger", "drunkman", "blindman", "swat", "woman", "shopping", "busywoman",
"sexywoman", "pro", "oldwoman", "fatwoman", "jogwoman", "oldfatwoman", "skate" };
inline static std::string walking_selected = "default";
2020-12-02 16:19:16 -05:00
protected:
Animation();
2020-12-02 16:19:16 -05:00
public:
2021-02-24 16:54:45 -05:00
static void Draw();
2020-12-02 16:19:16 -05:00
static void PlayAnimation(std::string& rootkey, std::string& anim, std::string& ifp);
2021-04-25 14:59:14 -04:00
static void PlayCutscene(std::string& rootkey, std::string& cutscene_str, std::string& interior);
static void RemoveAnimation(std::string& rootkey, std::string& anim, std::string& ifp);
2020-12-02 16:19:16 -05:00
};