diff --git a/Include/Game/Interfaces/Chat.hpp b/Include/Game/Interfaces/Chat.hpp index 95df3a3..be361e6 100644 --- a/Include/Game/Interfaces/Chat.hpp +++ b/Include/Game/Interfaces/Chat.hpp @@ -18,6 +18,7 @@ class Chat IDLE, CLICK_CONTINUE, SELECT_OPTION, + PLEASE_WAIT, ENTER_AMOUNT, LEVEL_UP } DIALOGUE_STATE; @@ -52,15 +53,21 @@ class Chat static Internal::MessageNode GetLastMessage(CHAT_TYPE Type); static DIALOGUE_STATE GetDialogueState(); - static bool HasDialogue(); static std::vector GetDialogueOptions(); static std::string GetDialogueTitle(); static std::string GetDialogueMessage(); + + static std::int32_t GetDialogueOptionIndexOf(const std::string& Option); + static std::int32_t GetDialogueOptionIndexOf(const std::vector& Options); + static bool ClickContinue(bool UseKeyboard = false); static bool EnterAmount(std::int32_t Amount); + + static bool SelectDialogueOption(std::uint32_t Index, bool UseKeyboard = false); // Index starts at 0 static bool SelectDialogueOption(const std::string& Option, bool UseKeyboard = false); static bool SelectDialogueOption(const std::vector& Options, bool UseKeyboard = false); - static bool SelectDialogueOption(std::uint32_t OptionIndex, bool UseKeyboard = false); // OptionIndex has to be 1-4 + + static bool WaitDialogueState(std::uint32_t Duration, std::uint32_t Step, Chat::DIALOGUE_STATE State, bool Result = true); // Waits until the current chat state equals State }; /** @} */ diff --git a/Library/libAlpacaLibrary.a b/Library/libAlpacaLibrary.a index ef211fa..839bfa7 100644 Binary files a/Library/libAlpacaLibrary.a and b/Library/libAlpacaLibrary.a differ