Advertisement
Gamestabled

custom textboxes interface

Apr 1st, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <vector>
  4. #include <sstream>
  5. #include <string>
  6.  
  7. #include "../code/src/message.h"
  8.  
  9. using namespace std::literals::string_literals;
  10.  
  11. class CustomMessages {
  12. public:
  13. static void CreateMessage(u32 textId, u32 unk_04, u32 unk_08, u32 unk_0C,
  14. std::string englishText, std::string frenchText, std::string spanishText);
  15.  
  16. static const char* RawMessageEntryData(void);
  17. static const char* RawMessageData(void);
  18.  
  19.  
  20. static const std::string MESSAGE_END() { return "\x7F\x00"s; }
  21. static const std::string WAIT_FOR_INPUT() { return "\x7F\x01"s; }
  22. static const std::string HORIZONTAL_SPACE(u8 x) { return "\x7F\x02"s + char(x); }
  23. static const std::string INSTANT_TEXT_ON() { return "\x7F\x04"s; }
  24. static const std::string INSTANT_TEXT_OFF() { return "\x7F\x05"s; }
  25. static const std::string SHOP_MESSAGE_BOX() { return "\x7F\x06\x00"s; }
  26. static const std::string EVENT_TRIGGER() { return "\x7F\x07"s; }
  27. static const std::string DELAY_FRAMES(u8 x) { return "\x7F\x08"s + char(x); }
  28. static const std::string CLOSE_AFTER(u8 x) { return "\x7F\x0A"s + char(x); }
  29. static const std::string PLAYER_NAME() { return "\x7F\x0B"s; }
  30. static const std::string PLAY_OCARINA() { return "\x7F\x0C"s; }
  31. static const std::string ITEM_OBTAINED(u8 x) { return "\x7F\x0F"s + char(x); }
  32. static const std::string SET_SPEED(u8 x) { return "\x7F\x10"s + char(x); }
  33. static const std::string SKULLTULAS_DESTROYED() { return "\x7F\x15"s; }
  34. static const std::string CURRENT_TIME() { return "\x7F\x17"s; }
  35. static const std::string UNSKIPPABLE() { return "\x7F\x19"s; }
  36. static const std::string NEWLINE() { return "\x7F\x1C"s; }
  37. static const std::string COLOR(u8 x) { return "\x7F\x1D"s + char(x); }
  38. static const std::string CENTER_TEXT() { return "\x7F\x1E"s; }
  39.  
  40. static const u8 QM_WHITE = 0x00;
  41. static const u8 QM_RED = 0x41;
  42. static const u8 QM_GREEN = 0x42;
  43. static const u8 QM_BLUE = 0x43;
  44. static const u8 QM_LBLUE = 0x44;
  45. static const u8 QM_PINK = 0x45;
  46. static const u8 QM_YELLOW = 0x46;
  47. static const u8 QM_BLACK = 0x47;
  48.  
  49. private:
  50. static std::vector<MessageEntry> messageEntries;
  51. static std::stringstream messageData;
  52. };
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement