Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <vector>
- #include <sstream>
- #include <string>
- #include "../code/src/message.h"
- using namespace std::literals::string_literals;
- class CustomMessages {
- public:
- static void CreateMessage(u32 textId, u32 unk_04, u32 unk_08, u32 unk_0C,
- std::string englishText, std::string frenchText, std::string spanishText);
- static const char* RawMessageEntryData(void);
- static const char* RawMessageData(void);
- static const std::string MESSAGE_END() { return "\x7F\x00"s; }
- static const std::string WAIT_FOR_INPUT() { return "\x7F\x01"s; }
- static const std::string HORIZONTAL_SPACE(u8 x) { return "\x7F\x02"s + char(x); }
- static const std::string INSTANT_TEXT_ON() { return "\x7F\x04"s; }
- static const std::string INSTANT_TEXT_OFF() { return "\x7F\x05"s; }
- static const std::string SHOP_MESSAGE_BOX() { return "\x7F\x06\x00"s; }
- static const std::string EVENT_TRIGGER() { return "\x7F\x07"s; }
- static const std::string DELAY_FRAMES(u8 x) { return "\x7F\x08"s + char(x); }
- static const std::string CLOSE_AFTER(u8 x) { return "\x7F\x0A"s + char(x); }
- static const std::string PLAYER_NAME() { return "\x7F\x0B"s; }
- static const std::string PLAY_OCARINA() { return "\x7F\x0C"s; }
- static const std::string ITEM_OBTAINED(u8 x) { return "\x7F\x0F"s + char(x); }
- static const std::string SET_SPEED(u8 x) { return "\x7F\x10"s + char(x); }
- static const std::string SKULLTULAS_DESTROYED() { return "\x7F\x15"s; }
- static const std::string CURRENT_TIME() { return "\x7F\x17"s; }
- static const std::string UNSKIPPABLE() { return "\x7F\x19"s; }
- static const std::string NEWLINE() { return "\x7F\x1C"s; }
- static const std::string COLOR(u8 x) { return "\x7F\x1D"s + char(x); }
- static const std::string CENTER_TEXT() { return "\x7F\x1E"s; }
- static const u8 QM_WHITE = 0x00;
- static const u8 QM_RED = 0x41;
- static const u8 QM_GREEN = 0x42;
- static const u8 QM_BLUE = 0x43;
- static const u8 QM_LBLUE = 0x44;
- static const u8 QM_PINK = 0x45;
- static const u8 QM_YELLOW = 0x46;
- static const u8 QM_BLACK = 0x47;
- private:
- static std::vector<MessageEntry> messageEntries;
- static std::stringstream messageData;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement