#include "UI/Quest/UIRenewQuestUI.h" #include "Client/Replay.h" #include "Contents/MessageTable.h" #include "Contents/RenewQuestMgr.h" #include "Network/Connection/Connection.h" #include "Network/Packets/PacketLengths.h" #include "Network/TextEncoding.h" #include "Render/Renderer.h" #include "Resource/ResourceMgr.h" #include "Resource/TextureNames.h" #include "UI/Buttons/UIRadioButton.h" #include "UI/Edit/UIEditBoxEx.h" #include "UI/Quest/UIOngoingQuestInfo.h" #include "UI/Quest/UIRecommendedQuestInfo.h" #include "UI/Text/UIStaticTextControl.h" #include "UI/Window/UIWindowMgr.h" #include "Utility/Cipher/XorBytes.h" #include #include #include #include #include // GLOBAL: gl_25249 static bool s_recommendedTabFirstSelect = true; template class EncryptedName { public: // INLINED template explicit EncryptedName(const Byte (&source)[Length]) : m_encrypted(true) { for (std::uint64_t index = 0; index < Length; ++index) { this->m_text[index] = source[index]; } } ~EncryptedName() { for (std::uint64_t index = 0; index < Length; ++index) { this->m_text[index] = 0; } } const char* Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, Length, Key); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } private: /* 0000 */ std::uint8_t m_text[Length]; bool m_encrypted; }; // INLINED template const char* DecryptName(const char (&source)[Length]) { thread_local EncryptedName name(source); return name.Text(); } // OFFSET: 0x00A59FE0 // FUNCTION: fn_16371 template <> const char* EncryptedName<6, 0xE33F2FF779878559ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 6, 0xE33F2FF779878559ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A010 // FUNCTION: fn_16372 template <> const char* EncryptedName<6, 0xC70319B5EB61598FULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 6, 0xC70319B5EB61598FULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A040 // FUNCTION: fn_16373 template <> const char* EncryptedName<6, 0xB7AFBD2FD9FD7501ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 6, 0xB7AFBD2FD9FD7501ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A070 // FUNCTION: fn_16374 template <> const char* EncryptedName<6, 0x114901C7E37F6D49ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 6, 0x114901C7E37F6D49ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A0A0 // FUNCTION: fn_16375 template <> const char* EncryptedName<6, 0x1767DDE18D779D8BULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 6, 0x1767DDE18D779D8BULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A0D0 // FUNCTION: fn_16376 template <> const char* EncryptedName<44, 0xB3E307A5F753D5E3ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 44, 0xB3E307A5F753D5E3ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A100 // FUNCTION: fn_16377 template <> const char* EncryptedName<44, 0xA597A7E7492B39D5ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 44, 0xA597A7E7492B39D5ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A130 // FUNCTION: fn_16378 template <> const char* EncryptedName<45, 0xD5A78DB38D8DAFABULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0xD5A78DB38D8DAFABULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A160 // FUNCTION: fn_16379 template <> const char* EncryptedName<45, 0xFFABE3D5D1BBEF73ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0xFFABE3D5D1BBEF73ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A190 // FUNCTION: fn_16380 template <> const char* EncryptedName<45, 0xF15F8785CDE369BFULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0xF15F8785CDE369BFULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A1C0 // FUNCTION: fn_16381 template <> const char* EncryptedName<45, 0x192D654D29337BE5ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0x192D654D29337BE5ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A1F0 // FUNCTION: fn_16382 template <> const char* EncryptedName<45, 0x0399459DAF454F0FULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0x0399459DAF454F0FULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A220 // FUNCTION: fn_16383 template <> const char* EncryptedName<45, 0x79E915E9AF6F55DDULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 45, 0x79E915E9AF6F55DDULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A250 // FUNCTION: fn_16384 template <> const char* EncryptedName<46, 0x271B45771F83DD9FULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 46, 0x271B45771F83DD9FULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A280 // FUNCTION: fn_16385 template <> const char* EncryptedName<46, 0x792FFD1325418FB5ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 46, 0x792FFD1325418FB5ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A2B0 // FUNCTION: fn_16386 template <> const char* EncryptedName<47, 0xC5B1BBCD9BC9C997ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0xC5B1BBCD9BC9C997ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A2E0 // FUNCTION: fn_16387 template <> const char* EncryptedName<47, 0xC1BB8111EDD183E1ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0xC1BB8111EDD183E1ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A310 // FUNCTION: fn_16388 template <> const char* EncryptedName<47, 0x8783C33941E15117ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0x8783C33941E15117ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A340 // FUNCTION: fn_16389 template <> const char* EncryptedName<47, 0x01CB4F1DF9D3F931ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0x01CB4F1DF9D3F931ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A370 // FUNCTION: fn_16390 template <> const char* EncryptedName<47, 0x49D33529F1556333ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0x49D33529F1556333ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A3A0 // FUNCTION: fn_16391 template <> const char* EncryptedName<47, 0x0B23D10F2F49D72BULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0x0B23D10F2F49D72BULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A3D0 // FUNCTION: fn_16392 template <> const char* EncryptedName<47, 0x0B8745519B1F95D7ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 47, 0x0B8745519B1F95D7ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A400 // FUNCTION: fn_16393 template <> const char* EncryptedName<48, 0x136F2F9915D1DBCFULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 48, 0x136F2F9915D1DBCFULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A430 // FUNCTION: fn_16394 template <> const char* EncryptedName<48, 0x674D9F3975573D41ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 48, 0x674D9F3975573D41ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A460 // FUNCTION: fn_16395 template <> const char* EncryptedName<48, 0x6BDF334F2BFDAD51ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 48, 0x6BDF334F2BFDAD51ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A490 // FUNCTION: fn_16396 template <> const char* EncryptedName<49, 0x659975C121557D3DULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 49, 0x659975C121557D3DULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A4C0 // FUNCTION: fn_16397 template <> const char* EncryptedName<50, 0x85E1F5A7A5755B7FULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 50, 0x85E1F5A7A5755B7FULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A4F0 // FUNCTION: fn_16398 template <> const char* EncryptedName<51, 0xAD6153019F93A527ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 51, 0xAD6153019F93A527ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A520 // FUNCTION: fn_16399 template <> const char* EncryptedName<52, 0xBFF5C517A1A77F59ULL>::Text() { if (this->m_encrypted) { utility::XorBytes(this->m_text, 52, 0xBFF5C517A1A77F59ULL); this->m_encrypted = false; } return reinterpret_cast(this->m_text); } // OFFSET: 0x00A5A550 // FUNCTION: fn_16400 EncryptedName<6, 0x114901C7E37F6D49ULL>& GulimFontName1() { const std::uint8_t source[] = {0x0E, 0x18, 0x13, 0x8A, 0xAA, 0x01}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5A620 // FUNCTION: fn_16401 EncryptedName<48, 0x136F2F9915D1DBCFULL>& NormalOffButtonName1() { const char source[] = {'\x0F', '\x74', '\x11', '\xEF', '\x59', '\xE1', '\xAA', '\xDE', '\x09', '\x3F', '\x11', '\xD9', '\x24', '\x95', '\x33', '\x41', '\xAA', '\xB5', '\xB4', '\x62', '\xC6', '\x7E', '\x1A', '\x76', '\xBC', '\xAF', '\x84', '\x5C', '\xC5', '\x4D', '\x1B', '\x7D', '\x90', '\xB5', '\xBE', '\x67', '\xF4', '\x4E', '\x03', '\x4C', '\xA0', '\xBD', '\xB7', '\x3B', '\xFB', '\x42', '\x1F', '\x13'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5A700 // FUNCTION: fn_16402 EncryptedName<47, 0x0B23D10F2F49D72BULL>& NormalOnButtonName() { const char source[] = {'\xEB', '\x78', '\x89', '\xD5', '\xCF', '\x1F', '\xE6', '\xC6', '\xED', '\x33', '\x89', '\xE3', '\xB2', '\x6B', '\x7F', '\x59', '\x4E', '\xB9', '\x2C', '\x58', '\x50', '\x80', '\x56', '\x6E', '\x58', '\xA3', '\x1C', '\x66', '\x53', '\xB3', '\x57', '\x65', '\x74', '\xB9', '\x26', '\x5D', '\x62', '\xB0', '\x4F', '\x54', '\x44', '\xB9', '\x67', '\x4D', '\x62', '\xA1', '\x23'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5A7F0 // FUNCTION: fn_16403 EncryptedName<48, 0x674D9F3975573D41ULL>& NormalOffButtonName2() { const char source[] = {'\x81', '\x92', '\x97', '\x8F', '\xF9', '\x51', '\x88', '\xAA', '\x87', '\xD9', '\x97', '\xB9', '\x84', '\x25', '\x11', '\x35', '\x24', '\x53', '\x32', '\x02', '\x66', '\xCE', '\x38', '\x02', '\x32', '\x49', '\x02', '\x3C', '\x65', '\xFD', '\x39', '\x09', '\x1E', '\x53', '\x38', '\x07', '\x54', '\xFE', '\x21', '\x38', '\x2E', '\x5B', '\x31', '\x5B', '\x5B', '\xF2', '\x3D', '\x67'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5A8D0 // FUNCTION: fn_16404 EncryptedName<48, 0x6BDF334F2BFDAD51ULL>& NormalOffButtonName3() { const char source[] = {'\x91', '\x02', '\x3D', '\xD1', '\x8F', '\xFD', '\x1A', '\xA6', '\x97', '\x49', '\x3D', '\xE7', '\xF2', '\x89', '\x83', '\x39', '\x34', '\xC3', '\x98', '\x5C', '\x10', '\x62', '\xAA', '\x0E', '\x22', '\xD9', '\xA8', '\x62', '\x13', '\x51', '\xAB', '\x05', '\x0E', '\xC3', '\x92', '\x59', '\x22', '\x52', '\xB3', '\x34', '\x3E', '\xCB', '\x9B', '\x05', '\x2D', '\x5E', '\xAF', '\x6B'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5A9B0 // FUNCTION: fn_16405 EncryptedName<6, 0xB7AFBD2FD9FD7501ULL>& GulimFontName2() { const std::uint8_t source[] = {0x46, 0x00, 0x91, 0xB0, 0x42, 0xBD}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AA80 // FUNCTION: fn_16406 EncryptedName<45, 0x79E915E9AF6F55DDULL>& SubOffButtonName1() { const char source[] = {'\x1D', '\xFA', '\xAF', '\x55', '\x29', '\xDB', '\x2C', '\xB4', '\x1B', '\xB1', '\xAF', '\x63', '\x54', '\xAF', '\xB5', '\x2B', '\xB8', '\x3B', '\x0A', '\xD8', '\xB6', '\x44', '\x9C', '\x1C', '\xAE', '\x21', '\x3A', '\xE6', '\xB5', '\x77', '\x9D', '\x17', '\x82', '\x26', '\x1A', '\xCD', '\xB6', '\x7A', '\x8F', '\x1F', '\xF3', '\x37', '\x02', '\xDF', '\xE9'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AB70 // FUNCTION: fn_16407 EncryptedName<44, 0xB3E307A5F753D5E3ULL>& SubOnButtonName() { const char source[] = {'\x23', '\x7A', '\x93', '\x0D', '\x65', '\xC9', '\x26', '\x7E', '\x25', '\x31', '\x93', '\x3B', '\x18', '\xBD', '\xBF', '\xE1', '\x86', '\xBB', '\x36', '\x80', '\xFA', '\x56', '\x96', '\xD6', '\x90', '\xA1', '\x06', '\xBE', '\xF9', '\x65', '\x97', '\xDD', '\xBC', '\xA6', '\x26', '\x95', '\xFA', '\x68', '\x8D', '\x9D', '\x81', '\xB8', '\x23', '\xF7'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AC50 // FUNCTION: fn_16408 EncryptedName<45, 0x192D654D29337BE5ULL>& SubOffButtonName2() { const char source[] = {'\x25', '\xD4', '\xF3', '\xD3', '\x8D', '\xAB', '\xE8', '\xD4', '\x23', '\x9F', '\xF3', '\xE5', '\xF0', '\xDF', '\x71', '\x4B', '\x80', '\x15', '\x56', '\x5E', '\x12', '\x34', '\x58', '\x7C', '\x96', '\x0F', '\x66', '\x60', '\x11', '\x07', '\x59', '\x77', '\xBA', '\x08', '\x46', '\x4B', '\x12', '\x0A', '\x4B', '\x7F', '\xCB', '\x19', '\x5E', '\x59', '\x4D'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AD40 // FUNCTION: fn_16409 EncryptedName<45, 0xF15F8785CDE369BFULL>& SubOffButtonName3() { const char source[] = {'\x7F', '\xC6', '\x23', '\x37', '\x45', '\x49', '\x9A', '\x3C', '\x79', '\x8D', '\x23', '\x01', '\x38', '\x3D', '\x03', '\xA3', '\xDA', '\x07', '\x86', '\xBA', '\xDA', '\xD6', '\x2A', '\x94', '\xCC', '\x1D', '\xB6', '\x84', '\xD9', '\xE5', '\x2B', '\x9F', '\xE0', '\x1A', '\x96', '\xAF', '\xDA', '\xE8', '\x39', '\x97', '\x91', '\x0B', '\x8E', '\xBD', '\x85'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AE30 // FUNCTION: fn_16410 EncryptedName<6, 0xE33F2FF779878559ULL>& GulimFontName3() { const std::uint8_t source[] = {0x1E, 0xF0, 0xEB, 0x10, 0x9A, 0x2F}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AF00 // FUNCTION: fn_16411 EncryptedName<47, 0x49D33529F1556333ULL>& DailyOffButtonName1() { const char source[] = {'\xF3', '\xCC', '\x95', '\x0B', '\xE9', '\xFB', '\x16', '\x84', '\xF5', '\x87', '\x95', '\x3D', '\x94', '\x8F', '\x8F', '\x1B', '\x56', '\x0D', '\x30', '\x86', '\x76', '\x64', '\xA6', '\x2C', '\x40', '\x17', '\x00', '\xB8', '\x75', '\x57', '\xA7', '\x27', '\x6C', '\x07', '\x34', '\x98', '\x45', '\x4C', '\x8C', '\x26', '\x55', '\x05', '\x7B', '\x93', '\x44', '\x45', '\xD3'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5AFF0 // FUNCTION: fn_16412 EncryptedName<46, 0x792FFD1325418FB5ULL>& DailyOnButtonName() { const char source[] = {'\x75', '\x20', '\x81', '\xDF', '\xD3', '\x33', '\xEA', '\xB4', '\x73', '\x6B', '\x81', '\xE9', '\xAE', '\x47', '\x73', '\x2B', '\xD0', '\xE1', '\x24', '\x52', '\x4C', '\xAC', '\x5A', '\x1C', '\xC6', '\xFB', '\x14', '\x6C', '\x4F', '\x9F', '\x5B', '\x17', '\xEA', '\xEB', '\x20', '\x4C', '\x7F', '\x84', '\x70', '\x16', '\xDB', '\xA1', '\x23', '\x48', '\x63', '\xFD'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B0E0 // FUNCTION: fn_16413 EncryptedName<47, 0xC5B1BBCD9BC9C997ULL>& DailyOffButtonName2() { const char source[] = {'\x57', '\x66', '\x09', '\x61', '\x0D', '\x75', '\x74', '\x08', '\x51', '\x2D', '\x09', '\x57', '\x70', '\x01', '\xED', '\x97', '\xF2', '\xA7', '\xAC', '\xEC', '\x92', '\xEA', '\xC4', '\xA0', '\xE4', '\xBD', '\x9C', '\xD2', '\x91', '\xD9', '\xC5', '\xAB', '\xC8', '\xAD', '\xA8', '\xF2', '\xA1', '\xC2', '\xEE', '\xAA', '\xF1', '\xAF', '\xE7', '\xF9', '\xA0', '\xCB', '\xB1'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B1D0 // FUNCTION: fn_16414 EncryptedName<47, 0x01CB4F1DF9D3F931ULL>& DailyOffButtonName3() { const char source[] = {'\xF1', '\x56', '\x13', '\x03', '\xDD', '\x81', '\x0E', '\xCC', '\xF7', '\x1D', '\x13', '\x35', '\xA0', '\xF5', '\x97', '\x53', '\x54', '\x97', '\xB6', '\x8E', '\x42', '\x1E', '\xBE', '\x64', '\x42', '\x8D', '\x86', '\xB0', '\x41', '\x2D', '\xBF', '\x6F', '\x6E', '\x9D', '\xB2', '\x90', '\x71', '\x36', '\x94', '\x6E', '\x57', '\x9F', '\xFD', '\x9B', '\x70', '\x3F', '\xCB'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B2C0 // FUNCTION: fn_16415 EncryptedName<6, 0x1767DDE18D779D8BULL>& GulimFontName4() { const std::uint8_t source[] = {0xCC, 0xE8, 0x1B, 0xE4, 0x8C, 0xDD}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B390 // FUNCTION: fn_16416 EncryptedName<47, 0xC1BB8111EDD183E1ULL>& EventOffButtonName1() { const char source[] = {'\x21', '\x2C', '\x11', '\x17', '\xD1', '\x4F', '\x7E', '\x0C', '\x27', '\x67', '\x11', '\x21', '\xAC', '\x3B', '\xE7', '\x93', '\x84', '\xED', '\xB4', '\x9A', '\x4E', '\xD0', '\xCE', '\xA4', '\x92', '\xF7', '\x84', '\xA4', '\x4D', '\xE3', '\xCF', '\xAF', '\xBE', '\xE6', '\xA7', '\x88', '\x7F', '\xF5', '\xE4', '\xAE', '\x87', '\xE5', '\xFF', '\x8F', '\x7C', '\xF1', '\xBB'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B480 // FUNCTION: fn_16417 EncryptedName<46, 0x271B45771F83DD9FULL>& EventOnButtonName() { const char source[] = {'\x5F', '\x72', '\x43', '\xE5', '\xB7', '\x8B', '\xDE', '\xEA', '\x59', '\x39', '\x43', '\xD3', '\xCA', '\xFF', '\x47', '\x75', '\xFA', '\xB3', '\xE6', '\x68', '\x28', '\x14', '\x6E', '\x42', '\xEC', '\xA9', '\xD6', '\x56', '\x2B', '\x27', '\x6F', '\x49', '\xC0', '\xB8', '\xF5', '\x7A', '\x19', '\x31', '\x44', '\x48', '\xF1', '\xF3', '\xE1', '\x72', '\x07', '\x45'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B570 // FUNCTION: fn_16418 EncryptedName<47, 0x8783C33941E15117ULL>& EventOffButtonName2() { const char source[] = {'\xD7', '\xFE', '\x21', '\xBB', '\xF9', '\x0D', '\x46', '\x4A', '\xD1', '\xB5', '\x21', '\x8D', '\x84', '\x79', '\xDF', '\xD5', '\x72', '\x3F', '\x84', '\x36', '\x66', '\x92', '\xF6', '\xE2', '\x64', '\x25', '\xB4', '\x08', '\x65', '\xA1', '\xF7', '\xE9', '\x48', '\x34', '\x97', '\x24', '\x57', '\xB7', '\xDC', '\xE8', '\x71', '\x37', '\xCF', '\x23', '\x54', '\xB3', '\x83'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B660 // FUNCTION: fn_16419 EncryptedName<47, 0x0B8745519B1F95D7ULL>& EventOffButtonName3() { const char source[] = {'\x17', '\x3A', '\xDF', '\x61', '\x91', '\x8B', '\x42', '\xC6', '\x11', '\x71', '\xDF', '\x57', '\xEC', '\xFF', '\xDB', '\x59', '\xB2', '\xFB', '\x7A', '\xEC', '\x0E', '\x14', '\xF2', '\x6E', '\xA4', '\xE1', '\x4A', '\xD2', '\x0D', '\x27', '\xF3', '\x65', '\x88', '\xF0', '\x69', '\xFE', '\x3F', '\x31', '\xD8', '\x64', '\xB1', '\xF3', '\x31', '\xF9', '\x3C', '\x35', '\x87'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B750 // FUNCTION: fn_16420 EncryptedName<6, 0xC70319B5EB61598FULL>& GulimFontName5() { const std::uint8_t source[] = {0xC8, 0x2C, 0x0D, 0x82, 0xD8, 0x19}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B820 // FUNCTION: fn_16421 EncryptedName<45, 0xFFABE3D5D1BBEF73ULL>& EtcOffButtonName1() { const char source[] = {'\xB3', '\x40', '\x7B', '\x2B', '\x15', '\x2D', '\x6E', '\x32', '\xB5', '\x0B', '\x7B', '\x1D', '\x68', '\x59', '\xF7', '\xAD', '\x16', '\x81', '\xDE', '\xA6', '\x8A', '\xB2', '\xDE', '\x9A', '\x00', '\x9B', '\xEE', '\x98', '\x89', '\x81', '\xDF', '\x91', '\x2C', '\x8A', '\xCF', '\xB2', '\x8A', '\x8C', '\xCD', '\x99', '\x5D', '\x8D', '\xD6', '\xA1', '\xD5'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B910 // FUNCTION: fn_16422 EncryptedName<44, 0xA597A7E7492B39D5ULL>& EtcOnButtonName() { const char source[] = {'\x15', '\x96', '\xEB', '\xB3', '\x27', '\x69', '\x52', '\x68', '\x13', '\xDD', '\xEB', '\x85', '\x5A', '\x1D', '\xCB', '\xF7', '\xB0', '\x57', '\x4E', '\x3E', '\xB8', '\xF6', '\xE2', '\xC0', '\xA6', '\x4D', '\x7E', '\x00', '\xBB', '\xC5', '\xE3', '\xCB', '\x8A', '\x5C', '\x5F', '\x2A', '\xB8', '\xC8', '\xF9', '\x8B', '\xB7', '\x54', '\x5B', '\x49'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5B9F0 // FUNCTION: fn_16423 EncryptedName<45, 0xD5A78DB38D8DAFABULL>& EtcOffButtonName2() { const char source[] = {'\x6B', '\x00', '\x4D', '\x77', '\x73', '\x43', '\x62', '\x18', '\x6D', '\x4B', '\x4D', '\x41', '\x0E', '\x37', '\xFB', '\x87', '\xCE', '\xC1', '\xE8', '\xFA', '\xEC', '\xDC', '\xD2', '\xB0', '\xD8', '\xDB', '\xD8', '\xC4', '\xEF', '\xEF', '\xD3', '\xBB', '\xF4', '\xCA', '\xF9', '\xEE', '\xEC', '\xE2', '\xC1', '\xB3', '\x85', '\xCD', '\xE0', '\xFD', '\xB3'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5BAE0 // FUNCTION: fn_16424 EncryptedName<45, 0x0399459DAF454F0FULL>& EtcOffButtonName3() { const char source[] = {'\xCF', '\xE0', '\x85', '\x55', '\x5D', '\x8B', '\x5C', '\xCE', '\xC9', '\xAB', '\x85', '\x63', '\x20', '\xFF', '\xC5', '\x51', '\x6A', '\x21', '\x20', '\xD8', '\xC2', '\x14', '\xEC', '\x66', '\x7C', '\x3B', '\x10', '\xE6', '\xC1', '\x27', '\xED', '\x6D', '\x50', '\x2A', '\x31', '\xCC', '\xC2', '\x2A', '\xFF', '\x65', '\x21', '\x2D', '\x28', '\xDF', '\x9D'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5BBD0 // FUNCTION: fn_16425 EncryptedName<51, 0xAD6153019F93A527ULL>& SearchNormalButtonName() { const char source[] = {'\xE7', '\x0A', '\x53', '\x65', '\xC1', '\x9D', '\xA4', '\x60', '\xE1', '\x41', '\x53', '\x53', '\xBC', '\xE9', '\x3D', '\xFF', '\x42', '\xCB', '\xF6', '\xE8', '\x5E', '\x02', '\x14', '\xC8', '\x54', '\xD1', '\xC6', '\xD6', '\x5D', '\x31', '\x15', '\xC3', '\x78', '\xD6', '\xF6', '\xFE', '\x73', '\x30', '\x09', '\xF2', '\x49', '\xCA', '\xE1', '\xF2', '\x60', '\x3F', '\x4F', '\xCF', '\x4A', '\xD5', '\x93'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5BCB0 // FUNCTION: fn_16426 EncryptedName<50, 0x85E1F5A7A5755B7FULL>& SearchPressButtonName() { const char source[] = {'\xBF', '\xF4', '\xB5', '\x5F', '\x67', '\x3B', '\x24', '\x48', '\xB9', '\xBF', '\xB5', '\x69', '\x1A', '\x4F', '\xBD', '\xD7', '\x1A', '\x35', '\x10', '\xD2', '\xF8', '\xA4', '\x94', '\xE0', '\x0C', '\x2F', '\x20', '\xEC', '\xFB', '\x97', '\x95', '\xEB', '\x20', '\x28', '\x10', '\xC4', '\xD5', '\x96', '\x89', '\xDA', '\x0F', '\x29', '\x10', '\xD6', '\xD4', '\xDB', '\x83', '\xE8', '\x0F', '\x5B'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5BD90 // FUNCTION: fn_16427 EncryptedName<49, 0x659975C121557D3DULL>& SearchOverButtonName() { const char source[] = {'\xFD', '\xD2', '\x95', '\xDB', '\x01', '\xBB', '\x5C', '\xA8', '\xFB', '\x99', '\x95', '\xED', '\x7C', '\xCF', '\xC5', '\x37', '\x58', '\x13', '\x30', '\x56', '\x9E', '\x24', '\xEC', '\x00', '\x4E', '\x09', '\x00', '\x68', '\x9D', '\x17', '\xED', '\x0B', '\x62', '\x0E', '\x30', '\x40', '\xB3', '\x16', '\xF1', '\x3A', '\x52', '\x0B', '\x30', '\x53', '\xEF', '\x17', '\xF4', '\x15', '\x3D'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A5BE70 // FUNCTION: fn_16428 EncryptedName<52, 0xBFF5C517A1A77F59ULL>& SearchDisableButtonName() { const char source[] = {'\x99', '\xD0', '\x67', '\x5B', '\xD7', '\x0B', '\x30', '\x72', '\x9F', '\x9B', '\x67', '\x6D', '\xAA', '\x7F', '\xA9', '\xED', '\x3C', '\x11', '\xC2', '\xD6', '\x48', '\x94', '\x80', '\xDA', '\x2A', '\x0B', '\xF2', '\xE8', '\x4B', '\xA7', '\x81', '\xD1', '\x06', '\x0C', '\xC2', '\xC0', '\x65', '\xA6', '\x9D', '\xE0', '\x3D', '\x16', '\xD4', '\xC0', '\x75', '\xA9', '\x90', '\x91', '\x3B', '\x12', '\xD7', '\xA1'}; thread_local EncryptedName name(source); return name; } // OFFSET: 0x00A66BE0 // FUNCTION: fn_16618 void RenewQuestUI::CUIQuestItem::Move(int x, int y) { UIWindow::Move(x, y); this->baseY = y; this->baseX = x; } // OFFSET: 0x00A66C10 // FUNCTION: fn_16619 void RenewQuestUI::CUIQuestItem::Paint() { if (this->pressed) { this->DrawBitmap(0, 0, reinterpret_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\renew_questui\\bg_questList_press.bmp"))), false); } else { CUIListItem::Paint(); } } // OFFSET: 0x00A66C50 // FUNCTION: fn_16620 void RenewQuestUI::CUIQuestList::Paint() { this->ClearSurface(0xFFFF00FF); } // OFFSET: 0x00A66C60 // FUNCTION: fn_16621 void CUIRenewQuestUI::Paint() { this->ClearSurface(0xFFFF00FF); } // OFFSET: 0x00A66F40 // FUNCTION: fn_16625 void RenewQuestUI::CUIQuestItem::Slot25(int x, int y) { CUIListItem::Slot25(x, y); this->pressed = 1; UIWindow::Move(this->baseX, this->baseY + 1); this->Invalidate(); } // OFFSET: 0x00A66F80 // FUNCTION: fn_16626 void RenewQuestUI::CUIQuestItem::Slot31(int x, int y) { CUIListItem::Slot31(x, y); this->pressed = 0; UIWindow::Move(this->baseX, this->baseY); this->Invalidate(); } // OFFSET: 0x00A66FC0 // FUNCTION: fn_16627 void RenewQuestUI::CUIQuestItem::Slot48() { this->pressed = 0; UIWindow::Move(this->baseX, this->baseY); this->Invalidate(); } // OFFSET: 0x00A5C170 // FUNCTION: fn_16431 template <> void CUIListBoxEx::ClearItems() { for (RenewQuestUI::CUIQuestItem* item : this->items) { this->RemoveChild(item, 1); } this->items.clear(); this->selected = static_cast(-1); } // OFFSET: 0x00A63F60 // FUNCTION: fn_16444 template <> void CUIListBoxEx::OnScroll(int position) { auto it = this->items.begin(); if (it == this->items.end()) { return; } if (this->data.size() == 0) { for (; it != this->items.end(); ++it) { (*it)->index = -1; (*it)->Show(0); } return; } const int first = (*it)->index; unsigned int row = position / this->rowHeight; if (first != -1) { if (first < static_cast(row)) { if (row - first < static_cast(this->items.size())) { std::rotate(this->items.begin(), this->items.begin() + (row - first), this->items.end()); } } else if (first > static_cast(row)) { if (first - row < static_cast(this->items.size())) { std::rotate(this->items.begin(), this->items.end() - (first - row), this->items.end()); } } } it = this->items.begin(); for (int y = this->itemY - position % this->rowHeight; y < this->geometry.height; y += this->rowHeight, ++it, ++row) { if (it == this->items.end() || row >= this->data.size()) { break; } RenewQuestUI::CUIQuestItem* item = *it; if (item) { if (this->rebind || row != static_cast(item->index)) { item->index = row; if (this->binder) { auto node = this->data.begin(); for (int count = static_cast(row); count > 0; --count) { ++node; } this->binder(item, *node); } } item->SetSelected(row == this->selected); item->Move(this->itemX, y); item->Show(1); } } for (; it != this->items.end(); ++it) { (*it)->index = -1; (*it)->Show(0); } } // OFFSET: 0x00A64160 // FUNCTION: fn_16445 template <> __declspec(noinline) void CUIListBoxEx::SelectItem(CUIListItem* item) { if (this->unknown_00C4) { return; } for (RenewQuestUI::CUIQuestItem* other : this->items) { if (item != other) { other->SetSelected(0); } } item->SetSelected(1); if (item->index == static_cast(this->selected) && this->unknown_00E0) { return; } RenewQuestUI::CUIQuestItem* selectedItem = dynamic_cast(item); if (!selectedItem) { return; } this->selected = selectedItem->index; if (this->onSelect && static_cast(this->selected) >= 0 && this->selected < this->data.size()) { auto node = this->data.begin(); std::advance(node, static_cast(this->selected)); this->onSelect(selectedItem, *node); } } class CQuestItemSelector { public: void SetHighlighted(CUIListItem* const& item); void Select(CUIListItem* const& item); private: /* 0000 */ void* unknown_0000; /* 0004 */ CUIListBoxEx* listBox; }; // OFFSET: 0x00A64DE0 // FUNCTION: fn_16497 void CQuestItemSelector::SetHighlighted(CUIListItem* const& item) { CUIListItem* highlighted = item; for (RenewQuestUI::CUIQuestItem* entry : this->listBox->items) { entry->SetHighlighted(static_cast(entry) == highlighted); } } // OFFSET: 0x00A64E80 // FUNCTION: fn_16501 void CQuestItemSelector::Select(CUIListItem* const& item) { CUIListBoxEx* listBox = this->listBox; CUIListItem* selection = item; if (listBox->unknown_00C4) { return; } for (RenewQuestUI::CUIQuestItem* other : listBox->items) { if (selection != other) { other->SetSelected(0); } } selection->SetSelected(1); if (selection->index == static_cast(listBox->selected) && listBox->unknown_00E0) { return; } RenewQuestUI::CUIQuestItem* selectedItem = dynamic_cast(selection); if (!selectedItem) { return; } listBox->selected = selectedItem->index; if (listBox->onSelect && static_cast(listBox->selected) >= 0 && listBox->selected < listBox->data.size()) { auto node = listBox->data.begin(); for (int count = static_cast(listBox->selected); count > 0; --count) { ++node; } listBox->onSelect(selectedItem, *node); } } // OFFSET: 0x00A67CE0 // FUNCTION: fn_16631 template <> __declspec(noinline) bool CUIListBoxEx::SelectIndex(int index) { this->scrollBar->SetPosition(this->rowHeight * index); for (RenewQuestUI::CUIQuestItem* item : this->items) { if (index == item->index) { this->SelectItem(item); return true; } } return false; } // OFFSET: 0x00A65FD0 // FUNCTION: fn_16604 template <> int CUIListBoxEx::AddData(const unsigned long& value, bool refresh) { this->data.push_back(value); if (refresh) { this->UpdateScrollBar(); } return this->data.size() - 1; } // OFFSET: 0x00A66140 // FUNCTION: fn_16610 void RenewQuestUI::CUIQuestItem::OnActiveStateChanged(bool active) { if (this->questType == 2) { g_renewQuestMgr->SetRecommendedQuestActive(this->questId, active); if (auto* window = static_cast(g_windowMgr.LookupWindow(0x2718))) { window->sub_A67290(this->questType); } g_renewQuestMgr->SaveRecommendedActiveList(); return; } #pragma pack(push, 1) struct QuestActivePacket { /* 0000 */ std::uint16_t id; /* 0002 */ int questId; /* 0006 */ bool active; }; #pragma pack(pop) QuestActivePacket packet; packet.questId = this->questId; packet.id = 0x02B6; packet.active = active; GetRagConnection().Send(g_packetLengths.FixedLength(packet.id), &packet); } // OFFSET: 0x00A66280 // FUNCTION: fn_16613 void RenewQuestUI::CUIQuestItem::OnSimpleView(bool simpleView) { g_renewQuestMgr->SetOngoingSimpleView(this->questId, simpleView); g_renewQuestMgr->SaveOngoingSimpleViewList(); if (UIWindow* window = g_windowMgr.LookupWindow(204)) { window->Invalidate(); } } // OFFSET: 0x00A66C70 // FUNCTION: fn_16622 void RenewQuestUI::CUIQuestItem::Slot16() { CUIButton* button = this->unknown_00F4; std::string tooltip = LookupMessage(3409); button->tooltip = tooltip; } // OFFSET: 0x00A66D90 // FUNCTION: fn_16623 void RenewQuestUI::CUIQuestList::Slot16() { this->list->unknown_00E0 = 0; } // OFFSET: 0x00A5C200 // FUNCTION: fn_16432 void CUIRenewQuestUI::Slot53() { this->unknown_00B4 = 1; this->m_resolveSkin = true; this->Resize(381, 466); this->Move( g_renderer->viewport.centerX - this->geometry.width / 2, g_renderer->viewport.centerY - this->geometry.height / 2 ); this->Slot15(this->geometry.width, this->geometry.height); this->Slot16(); } // OFFSET: 0x00A67E10 // FUNCTION: fn_16633 void CUIRenewQuestUI::OnFilterButton(UIWindow* button) { if (button) { this->filter = button->geometry.id; this->sub_A67290(0xF); } } // OFFSET: 0x00A67FA0 // FUNCTION: fn_16634 void CUIRenewQuestUI::OnTabButton(CUITabButton* button) { } // OFFSET: 0x00A67FB0 // FUNCTION: fn_16635 void CUIRenewQuestUI::OnPanelButton() { } template void CUIListBoxEx::ClearData(); // OFFSET: 0x00A661F0 // FUNCTION: fn_16612 void UIWindow::RecordWindowFlag(bool value) { this->RecordValues(6, 0xd5, value, 0, 0); if (UIWindow* window = g_windowMgr.LookupWindow(0xcc)) { window->Show(value); } } // OFFSET: 0x00A66410 // FUNCTION: fn_16615 bool CUIRenewQuestUI::MatchesFilter(const RenewQuestInfo& info) const { if (!g_renewQuestMgr->IsInFilter(this->filter, info.m_icon)) { return false; } if (!this->searchText.empty()) { if (FindSubstring(info.unknown_004C.c_str(), static_cast(info.unknown_004C.size()), this->searchText.c_str()) == -1 && FindSubstring(info.m_title.c_str(), static_cast(info.m_title.size()), this->searchText.c_str()) == -1) { return false; } } return true; } // OFFSET: 0x00A660E0 // FUNCTION: fn_16605 void CUIRenewQuestUI::OnCallback6() { } // OFFSET: 0x00A660F0 // FUNCTION: fn_16606 void CUIRenewQuestUI::OnCallback50() { } // OFFSET: 0x00A66110 // FUNCTION: fn_16607 void CUIRenewQuestUI::OnCallback43() { } // OFFSET: 0x00A66120 // FUNCTION: fn_16608 void CUIRenewQuestUI::OnCallback80() { } // OFFSET: 0x00A66130 // FUNCTION: fn_16609 void CUIRenewQuestUI::OnCallback74() { } // OFFSET: 0x00A661E0 // FUNCTION: fn_16611 void CUIRenewQuestUI::OnCallback56() { } // OFFSET: 0x00A66FF0 // FUNCTION: fn_16628 void CUIRenewQuestUI::sub_A66FF0(unsigned int questId) { for (RenewQuestUI::CUIQuestList* list : this->questLists) { CUIListBoxEx* listBox = list->list; auto node = listBox->data.begin(); for (; node != listBox->data.end(); ++node) { if (*node == questId) { break; } } if (node == listBox->data.end()) { continue; } this->tab->SelectPage(list); CUIListBoxEx* pageListBox = list->list; int index = 0; for (auto it = listBox->data.begin(); it != node; ++it) { ++index; } pageListBox->scrollBar->SetPosition(pageListBox->rowHeight * index); for (RenewQuestUI::CUIQuestItem* item : pageListBox->items) { if (item->index == index) { pageListBox->SelectItem(item); return; } } return; } std::string text = std::format("Not found Quest Info = %lu", questId); g_windowMgr.Confirm(text.c_str(), 0, true, false, 0, "Message", 280, 120, 0); } // OFFSET: 0x00A59940 // FUNCTION: fn_16362 bool sub_A59940() { return true; } // OFFSET: 0x00A59950 // FUNCTION: fn_16363 bool sub_A59950() { return true; } // OFFSET: 0x00A59960 // FUNCTION: fn_16364 bool sub_A59960() { return true; } // OFFSET: 0x00A599F0 // FUNCTION: fn_16366 template <> CUIListBoxEx::CUIListBoxEx() : CUIControl(), scrollBar(nullptr), itemWidth(0), rowHeight(0), itemX(0), itemY(0), unknown_00C4(0), selected(static_cast(-1)), unknown_00E0(1), rebind(0) { } // OFFSET: 0x00A59C80 // FUNCTION: fn_16368 template <> CUIListBoxEx::~CUIListBoxEx() { } // OFFSET: 0x00A59BB0 // FUNCTION: fn_16367 CUIEditBoxEx::CUIEditBoxEx() : CUIControl(), backgroundColor(0xF7F7F7), borderColor(0xC6C6C6), borderWidth(1), editLeft(0), editTop(0), editRight(0), editBottom(0), edit(nullptr), onSubmit() { } // OFFSET: 0x00A67CA0 // FUNCTION: fn_16630 void RenewQuestUI::CUIQuestItem::SetSelected(bool selected) { this->unknown_00EC->SetColor(selected ? 0x00E47B2E : 0x00955322); CUIListItem::SetSelected(selected); } // OFFSET: 0x00A67D40 // FUNCTION: fn_16632 int CUIRenewQuestUI::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { switch (message) { case 6: if (a == 0xD5) { const bool checked = b != 0; this->checkBox->checked = checked; this->checkBox->Invalidate(); this->RecordValues(6, a, b != 0, 0, 0); if (UIWindow* window = g_windowMgr.LookupWindow(0xCC)) { window->Show(checked); } } break; case 0x16: this->tab->SelectIndex(static_cast(std::log2(static_cast(a)))); break; } return CUIFrameWnd::SendMsg(sender, message, a, b, c, d); } // OFFSET: 0x00A5C380 // FUNCTION: fn_16433 template <> void CUIListBoxEx::Slot15(int width, int height) { this->scrollBar = new CUIVScrollBar(); this->scrollBar->Show(0); this->scrollBar->SetOnChange([this](int position) { this->OnScroll(position); }); this->AddChild(this->scrollBar); } // OFFSET: 0x00A63B90 // FUNCTION: fn_16440 void CUIEditBoxEx::SetOnSubmit(std::function handler) { this->onSubmit = handler; } // OFFSET: 0x00A63C00 // FUNCTION: fn_16441 void CUITab::SetOnChange(std::function handler) { this->onChange = handler; } // OFFSET: 0x00A664C0 // FUNCTION: fn_16616 void RenewQuestUI::CUIQuestList::OnSelectItem(CUIQuestItem* item, const unsigned long& questId) { if (item->questId == 0) { return; } if (item->questType == 2) { if (CUIRecommendedQuestInfo* info = dynamic_cast(static_cast(g_windowMgr.EnsureWindow(0x271a)))) { info->SetQuest(item->questId); if (UIWindow* other = g_windowMgr.LookupWindow(0x2719)) { info->Move(other->geometry.x, other->geometry.y); g_windowMgr.CloseWindow(0x2719); } } } else { if (CUIOngoingQuestInfo* info = dynamic_cast(static_cast(g_windowMgr.EnsureWindow(0x2719)))) { info->SetQuest(item->questId); if (UIWindow* other = g_windowMgr.LookupWindow(0x271a)) { info->Move(other->geometry.x, other->geometry.y); g_windowMgr.CloseWindow(0x271a); } } } } // OFFSET: 0x00A665C0 // FUNCTION: fn_16617 void RenewQuestUI::CUIQuestList::BindItem(CUIQuestItem* item, const unsigned long& questId) { item->questType = this->type; item->questId = questId; if (this->type == 2) { auto found = g_renewQuestMgr->m_recommendedQuests.find(questId); if (found == g_renewQuestMgr->m_recommendedQuests.end()) { return; } const RenewQuestRecommendedInfo& info = found->second; item->icon->SetImage(std::format("유저인터페이스\\renew_questui\\{}", info.m_icon.empty() ? std::string("ico_nq.bmp") : info.m_icon)); item->icon->tooltip = info.m_iconTooltip; item->unknown_00EC->SetText(info.m_title.c_str(), info.m_title.size()); item->unknown_00F0->SetText(info.unknown_004C.c_str(), info.unknown_004C.size()); item->unknown_00F4->Show(0); item->unknown_00F8->Show(1); item->unknown_00F8->checked = info.m_active; item->unknown_00F8->Invalidate(); std::string tooltip = LookupMessage(3408); item->unknown_00F8->tooltip = tooltip; } else { auto found = g_renewQuestMgr->m_ongoingQuests.find(questId); if (found == g_renewQuestMgr->m_ongoingQuests.end()) { return; } const RenewQuestOngoingInfo& info = found->second; item->icon->SetImage(std::format("유저인터페이스\\renew_questui\\{}", info.m_icon.empty() ? std::string("ico_nq.bmp") : info.m_icon)); item->icon->tooltip = info.m_iconTooltip; item->unknown_00EC->SetText(info.m_title.c_str(), info.m_title.size()); item->unknown_00F0->SetText(info.unknown_004C.c_str(), info.unknown_004C.size()); item->unknown_00F4->Show(this->type != 8); item->unknown_00F4->checked = info.m_simpleView; item->unknown_00F4->Invalidate(); item->unknown_00F8->Show(this->type != 8); item->unknown_00F8->checked = info.m_active; item->unknown_00F8->Invalidate(); std::string tooltip = LookupMessage(3407); item->unknown_00F8->tooltip = tooltip; } } // OFFSET: 0x00A67290 // FUNCTION: fn_16629 void CUIRenewQuestUI::sub_A67290(unsigned int flags) { if (flags & 1) { for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type != 1) { continue; } if (CUIListBoxEx* listBox = list->list) { const int position = listBox->data.size() == 0 ? -1 : listBox->scrollBar->position; listBox->ClearData(); for (std::pair entry : g_renewQuestMgr->m_ongoingQuests) { if (this->MatchesFilter(entry.second) && entry.second.unknown_01F8 != 1 && entry.second.m_state != 0) { listBox->AddData(entry.first, false); } } listBox->UpdateScrollBar(); if (position == -1) { listBox->scrollBar->SetPosition(position); } } break; } } if (flags & 2) { for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type != 2) { continue; } if (CUIListBoxEx* listBox = list->list) { const int position = listBox->data.size() == 0 ? -1 : listBox->scrollBar->position; listBox->ClearData(); for (std::pair entry : g_renewQuestMgr->m_recommendedQuests) { if (this->MatchesFilter(entry.second) && entry.second.m_active) { listBox->AddData(entry.first, false); } } for (std::pair entry : g_renewQuestMgr->m_recommendedQuests) { if (this->MatchesFilter(entry.second) && !entry.second.m_active) { listBox->AddData(entry.first, false); } } listBox->UpdateScrollBar(); if (position == -1) { listBox->scrollBar->SetPosition(position); } } break; } } if (flags & 4) { for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type != 4) { continue; } if (CUIListBoxEx* listBox = list->list) { const int position = listBox->data.size() == 0 ? -1 : listBox->scrollBar->position; listBox->ClearData(); for (std::pair entry : g_renewQuestMgr->m_ongoingQuests) { if (this->MatchesFilter(entry.second) && entry.second.unknown_01F8 != 1 && entry.second.m_state == 0) { listBox->AddData(entry.first, false); } } listBox->UpdateScrollBar(); if (position == -1) { listBox->scrollBar->SetPosition(position); } } break; } } if (flags & 8) { for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type != 8) { continue; } if (CUIListBoxEx* listBox = list->list) { const int position = listBox->data.size() == 0 ? -1 : listBox->scrollBar->position; listBox->ClearData(); for (std::pair entry : g_renewQuestMgr->m_ongoingQuests) { if (this->MatchesFilter(entry.second) && entry.second.unknown_01F8 == 1) { listBox->AddData(entry.first, false); } } listBox->UpdateScrollBar(); if (position == -1) { listBox->scrollBar->SetPosition(position); } } break; } } } // OFFSET: 0x00A5C0F0 // FUNCTION: fn_16430 CUIFrameWnd* CreateRenewQuestUI() { return new CUIRenewQuestUI(); } // OFFSET: 0x00A5C590 // FUNCTION: fn_16434 void RenewQuestUI::CUIQuestItem::Slot15(int width, int height) { this->icon = new CUIStaticImage(); this->icon->SetSize(26, 29); this->icon->Move(8, 7); this->icon->SetImage(std::string()); this->AddChild(this->icon); this->unknown_00EC = new CUIStaticText(); this->unknown_00EC->SetSize(260, 12); this->unknown_00EC->Move(42, 6); this->unknown_00EC->SetText("", 0); this->unknown_00EC->SetFitText(1); this->unknown_00EC->SetAlign(0, 0); this->unknown_00EC->SetFont(std::string(DecryptName<0xAD075B8DB599F1CDULL>({'\x8A', '\x84', '\xF5', '\xDC', '\xE0', '\x5B'}))); this->unknown_00EC->SetFontHeight(12); this->unknown_00EC->SetBold(1); this->unknown_00EC->SetColor(0x955322); this->unknown_00EC->SetShadow(0, 0xFFFFFF); this->unknown_00EC->SetOutline(0, 0xFFFFFF); this->AddChild(this->unknown_00EC); this->unknown_00F0 = new CUIStaticText(); this->unknown_00F0->SetSize(260, 12); this->unknown_00F0->Move(42, 24); this->unknown_00F0->SetText("", 0); this->unknown_00F0->SetFitText(1); this->unknown_00F0->SetAlign(0, 0); this->unknown_00F0->SetFont(std::string(DecryptName<0xDD3913D5D7F97BE1ULL>({'\xA6', '\x0E', '\x95', '\xBE', '\xB8', '\x13'}))); this->unknown_00F0->SetFontHeight(12); this->unknown_00F0->SetBold(0); this->unknown_00F0->SetColor(0x38302E); this->unknown_00F0->SetShadow(0, 0xFFFFFF); this->unknown_00F0->SetOutline(0, 0xFFFFFF); this->AddChild(this->unknown_00F0); this->unknown_00F4 = new CUICheckBox(); this->unknown_00F4->SetSize(14, 14); this->unknown_00F4->Move(312, 3); this->unknown_00F4->SetOnCheck([this](bool checked) { this->OnSimpleView(checked); }); this->unknown_00F4->disabled = 0; this->unknown_00F4->Invalidate(); this->unknown_00F4->SetImages( std::string(DecryptName<0x050505679903579BULL>({ '\x5B', '\xF8', '\xC3', '\x63', '\xA7', '\xCB', '\xC0', '\xC8', '\x5D', '\xB3', '\xC3', '\x55', '\xDA', '\xBF', '\x59', '\x57', '\xFE', '\x39', '\x66', '\xEE', '\x38', '\x54', '\x70', '\x60', '\xE8', '\x23', '\x56', '\xD0', '\x3B', '\x67', '\x71', '\x5A', '\xF8', '\x3F', '\x66', '\xFA', '\x0C', '\x5A', '\x6A', '\x63', '\xFD', '\x79', '\x61', '\xF4', '\x17', '\x05' })), std::string(DecryptName<0x83EFBFBB37EDBDBDULL>({ '\x7D', '\x12', '\x2D', '\xCD', '\x7B', '\x71', '\x2A', '\x4E', '\x7B', '\x59', '\x2D', '\xFB', '\x06', '\x05', '\xB3', '\xD1', '\xD8', '\xD3', '\x88', '\x40', '\xE4', '\xEE', '\x9A', '\xE6', '\xCE', '\xC9', '\xB8', '\x7E', '\xE7', '\xDD', '\x9B', '\xDC', '\xDE', '\xD5', '\x88', '\x54', '\xD0', '\xE0', '\x80', '\xED', '\x93', '\xDF', '\x80', '\x47', '\xBB' })), std::string(DecryptName<0xBF2B4B31397FF5A7ULL>({ '\x67', '\x5A', '\xBF', '\xC3', '\xF1', '\x85', '\xEE', '\x72', '\x61', '\x11', '\xBF', '\xF5', '\x8C', '\xF1', '\x77', '\xED', '\xC2', '\x9B', '\x1A', '\x4E', '\x6E', '\x1A', '\x5E', '\xDA', '\xD4', '\x81', '\x2A', '\x70', '\x6D', '\x29', '\x5F', '\xE0', '\xC4', '\x9D', '\x1A', '\x5A', '\x5A', '\x14', '\x44', '\xD9', '\xC1', '\xDB', '\x1D', '\x54', '\x41', '\x4B' })), std::string(DecryptName<0xD97D5DBDBB2F2709ULL>({ '\xC9', '\x88', '\xEF', '\x41', '\x7D', '\x93', '\xB8', '\x14', '\xCF', '\xC3', '\xEF', '\x77', '\x00', '\xE7', '\x21', '\x8B', '\x6C', '\x49', '\x4A', '\xCC', '\xE2', '\x0C', '\x08', '\xBC', '\x7A', '\x53', '\x7A', '\xF2', '\xE1', '\x3F', '\x09', '\x86', '\x6A', '\x4F', '\x4A', '\xD8', '\xD6', '\x02', '\x12', '\xBF', '\x6F', '\x09', '\x4D', '\xD6', '\xCD', '\x5D' })) ); this->unknown_00F4->checked = false; this->unknown_00F4->Invalidate(); this->AddChild(this->unknown_00F4); this->unknown_00F8 = new CUICheckBox(); this->unknown_00F8->SetSize(20, 17); this->unknown_00F8->Move(306, 22); this->unknown_00F8->SetOnCheck([this](bool checked) { this->OnActiveStateChanged(checked); }); this->unknown_00F8->disabled = 0; this->unknown_00F8->Invalidate(); this->unknown_00F8->SetImages( std::string(DecryptName<0xED796785D1DF137FULL>({ '\xBF', '\xBC', '\x1F', '\x2B', '\x45', '\xA9', '\xBC', '\x20', '\xB9', '\xF7', '\x1F', '\x1D', '\x38', '\xDD', '\x25', '\xBF', '\x1A', '\x7D', '\xBA', '\xA6', '\xDA', '\x36', '\x0C', '\x88', '\x0C', '\x67', '\x8A', '\x98', '\xD9', '\x05', '\x0D', '\xB2', '\x13', '\x7C', '\xBC', '\xBA', '\xAB', '\x05', '\x14', '\x9D', '\x7F' })), std::string(DecryptName<0xF14F79170939C7F1ULL>({ '\x31', '\x68', '\xF9', '\xF3', '\xD7', '\xB7', '\x8A', '\x3C', '\x37', '\x23', '\xF9', '\xC5', '\xAA', '\xC3', '\x13', '\xA3', '\x94', '\xA9', '\x5C', '\x7E', '\x48', '\x28', '\x3A', '\x94', '\x82', '\xB3', '\x6C', '\x40', '\x4B', '\x1B', '\x3B', '\xAE', '\x9D', '\xA8', '\x5A', '\x62', '\x48', '\x16', '\x3F', '\x94', '\x9F', '\xE9', '\x5B', '\x64', '\x67', '\x79' })), std::string(DecryptName<0xA5FD29D7AB6DC59FULL>({ '\x5F', '\x6A', '\xAD', '\x51', '\x17', '\xE7', '\x38', '\x68', '\x59', '\x21', '\xAD', '\x67', '\x6A', '\x93', '\xA1', '\xF7', '\xFA', '\xAB', '\x08', '\xDC', '\x88', '\x78', '\x88', '\xC0', '\xEC', '\xB1', '\x38', '\xE2', '\x8B', '\x4B', '\x89', '\xFA', '\xF3', '\xAA', '\x0E', '\xC0', '\xF9', '\x4B', '\x90', '\xD5', '\x9F' })), std::string(DecryptName<0x13E33FA1A591AB67ULL>({ '\xA7', '\x04', '\x51', '\x5F', '\x61', '\xF1', '\x26', '\xDE', '\xA1', '\x4F', '\x51', '\x69', '\x1C', '\x85', '\xBF', '\x41', '\x02', '\xC5', '\xF4', '\xD2', '\xFE', '\x6E', '\x96', '\x76', '\x14', '\xDF', '\xC4', '\xEC', '\xFD', '\x5D', '\x97', '\x4C', '\x0B', '\xC4', '\xF2', '\xCE', '\x8F', '\x5D', '\x8E', '\x63', '\x67' })) ); this->unknown_00F8->checked = false; this->unknown_00F8->Invalidate(); this->AddChild(this->unknown_00F8); } // OFFSET: 0x00A5D850 // FUNCTION: fn_16435 void RenewQuestUI::CUIQuestList::Slot15(int width, int height) { this->list = new CUIListBoxEx(); this->list->itemWidth = 330; this->list->rowHeight = 46; this->list->SetSize(343, 394); this->list->Move(0, 0); this->list->SetOnSelect([this](CUIQuestItem* item, const unsigned long& questId) { this->OnSelectItem(item, questId); }); this->list->SetBinder([this](CUIQuestItem* item, const unsigned long& questId) { this->BindItem(item, questId); }); { CUIListBoxEx* list = this->list; const char disabledSource[] = { '\x09', '\x5A', '\x9F', '\x71', '\x4F', '\x1B', '\x7E', '\xEE', '\x0F', '\x11', '\x9F', '\x47', '\x32', '\x6F', '\xE7', '\x71', '\xAC', '\x9B', '\x3A', '\xFC', '\xD0', '\x84', '\xCE', '\x46', '\xBA', '\x81', '\x0A', '\xC2', '\xD3', '\xB7', '\xDC', '\x7C', '\xB8', '\x80', '\x3A', '\xF8', '\xFB', '\x99', '\xD2', '\x50', '\xBD', '\xDB', '\x3D', '\xE6', '\xFF', '\xD5' }; const std::string disabled(DecryptName<0x23BBD58F8B5FF5C9ULL>(disabledSource)); const char pressedSource[] = { '\xAF', '\xD2', '\x3B', '\xD9', '\xB1', '\xC9', '\x4A', '\x00', '\xA9', '\x99', '\x3B', '\xEF', '\xCC', '\xBD', '\xD3', '\x9F', '\x0A', '\x13', '\x9E', '\x54', '\x2E', '\x56', '\xFA', '\xA8', '\x1C', '\x09', '\xAE', '\x6A', '\x2D', '\x65', '\xE8', '\x92', '\x1E', '\x08', '\x9E', '\x50', '\x05', '\x4B', '\xE6', '\xBE', '\x1B', '\x53', '\x99', '\x4E', '\x01', '\x07' }; const std::string pressed(DecryptName<0xCD8F077123FB7D6FULL>(pressedSource)); const char hoverSource[] = { '\x83', '\x86', '\x93', '\xDD', '\x15', '\x71', '\x8C', '\x54', '\x85', '\xCD', '\x93', '\xEB', '\x68', '\x05', '\x15', '\xCB', '\x26', '\x47', '\x36', '\x50', '\x8A', '\xEE', '\x3C', '\xFC', '\x30', '\x5D', '\x06', '\x6E', '\x89', '\xDD', '\x2E', '\xC6', '\x32', '\x5C', '\x36', '\x54', '\xA1', '\xF3', '\x20', '\xEA', '\x37', '\x76', '\x30', '\x4F', '\xB0', '\xDC', '\x22', '\xB7', '\x21', '\x44', '\x23', '\x27' }; const std::string hover(DecryptName<0x9949BFD527532943ULL>(hoverSource)); const char normalSource[] = { '\xF7', '\xE8', '\x6D', '\xC3', '\x7F', '\x2B', '\x6C', '\xDA', '\xF1', '\xA3', '\x6D', '\xF5', '\x02', '\x5F', '\xF5', '\x45', '\x52', '\x29', '\xC8', '\x4E', '\xE0', '\xB4', '\xDC', '\x72', '\x44', '\x33', '\xF8', '\x70', '\xE3', '\x87', '\xCE', '\x48', '\x46', '\x32', '\xC8', '\x4A', '\xCB', '\xA9', '\xC0', '\x64', '\x43', '\x69', '\xCF', '\x54', '\xCF', '\xE5' }; const std::string normal(DecryptName<0x17A9E5BF39AD4737ULL>(normalSource)); list->SetImages(normal, hover, pressed, disabled); } this->list->itemX = 0; this->list->itemY = 7; this->list->scrollBar->SetSize(7, 394); this->list->scrollBar->Move(336, 0); this->list->scrollBar->step = 138; { CUIListBoxEx* list = this->list; const char downSource[] = { '\x65', '\x32', '\xAD', '\x03', '\xA3', '\xE9', '\xB2', '\xCE', '\x63', '\x79', '\xAD', '\x35', '\xDE', '\x9D', '\x2B', '\x51', '\xC0', '\xF3', '\x08', '\x8E', '\x3C', '\x76', '\x02', '\x66', '\xD6', '\xE9', '\x38', '\xB0', '\x3F', '\x45', '\x03', '\x5C', '\xD6', '\xFE', '\x1F', '\x96', '\x0F', '\x4B', '\x15', '\x62', '\xD7', '\xC2', '\x0C', '\x8B', '\x11', '\x48', '\x00', '\x5C', '\xC1', '\xF2', '\x1A', '\x97', '\x4D', '\x45', '\x1A', '\x73', '\xA5' }; const std::string down(DecryptName<0x03772763F96D9DA5ULL>(downSource)); const char upSource[] = { '\xAD', '\x14', '\x55', '\xD7', '\x53', '\x35', '\xD2', '\x08', '\xAB', '\x5F', '\x55', '\xE1', '\x2E', '\x41', '\x4B', '\x97', '\x08', '\xD5', '\xF0', '\x5A', '\xCC', '\xAA', '\x62', '\xA0', '\x1E', '\xCF', '\xC0', '\x64', '\xCF', '\x99', '\x63', '\x9A', '\x1E', '\xD8', '\xE7', '\x42', '\xFF', '\x97', '\x75', '\xA4', '\x1F', '\xE4', '\xF4', '\x5F', '\xE1', '\x94', '\x60', '\x9A', '\x18', '\xCB', '\xE5', '\x48', '\xE1', '\xD5', '\x75', '\xA8', '\x1D', '\xBB' }; const std::string up(DecryptName<0xC517FB932D95BB6DULL>(upSource)); list->scrollBar->SetButtonImages(up, down); } this->list->scrollBar->SetBackground(std::string()); { CUIListBoxEx* list = this->list; const char bottomSource[] = { '\x2F', '\xDE', '\x1F', '\xE9', '\xAD', '\x81', '\x02', '\x20', '\x29', '\x95', '\x1F', '\xDF', '\xD0', '\xF5', '\x9B', '\xBF', '\x8A', '\x1F', '\xBA', '\x64', '\x32', '\x1E', '\xB2', '\x88', '\x9C', '\x05', '\x8A', '\x5A', '\x31', '\x2D', '\xB3', '\xB2', '\x9C', '\x12', '\xAD', '\x7C', '\x01', '\x23', '\x85', '\x8C', '\x9D', '\x2E', '\xBB', '\x7C', '\x1A', '\x21', '\xE9', '\x8F', '\x82', '\x01', '\xDF' }; const std::string bottom(DecryptName<0xEDC74F6D13DF71EFULL>(bottomSource)); const char middleSource[] = { '\x55', '\x20', '\x21', '\xF7', '\x9D', '\xC7', '\xA4', '\x3C', '\x53', '\x6B', '\x21', '\xC1', '\xE0', '\xB3', '\x3D', '\xA3', '\xF0', '\xE1', '\x84', '\x7A', '\x02', '\x58', '\x14', '\x94', '\xE6', '\xFB', '\xB4', '\x44', '\x01', '\x6B', '\x15', '\xAE', '\xE6', '\xEC', '\x93', '\x62', '\x31', '\x65', '\x23', '\x90', '\xE7', '\xD0', '\x8C', '\x64', '\x39', '\x27', '\x03', '\x9C', '\xE5', '\x8F' }; const std::string middle(DecryptName<0xF161095D0DE18F95ULL>(middleSource)); const char topSource[] = { '\x47', '\xBC', '\xAB', '\x85', '\xF9', '\xC7', '\xB4', '\xC6', '\x41', '\xF7', '\xAB', '\xB3', '\x84', '\xB3', '\x2D', '\x59', '\xE2', '\x7D', '\x0E', '\x08', '\x66', '\x58', '\x04', '\x6E', '\xF4', '\x67', '\x3E', '\x36', '\x65', '\x6B', '\x05', '\x54', '\xF4', '\x70', '\x19', '\x10', '\x55', '\x65', '\x33', '\x6A', '\xF5', '\x4C', '\x1E', '\x0F', '\x17', '\x6B', '\x1C', '\x7B', '\x87' }; const std::string top(DecryptName<0x0B7109397F6B1387ULL>(topSource)); list->scrollBar->SetThumbImages(top, middle, bottom); } this->list->AddNewItem(); this->AddChild(this->list); } // OFFSET: 0x00A5E8C0 // FUNCTION: fn_16436 void CUIRenewQuestUI::Slot15(int width, int height) { this->titleBar = new CUITitleBar(); this->titleBar->SetSize(352, 17); this->titleBar->Move(29, 0); this->titleBar->SetImages(std::string(DecryptName<0x75ADC57D87EFBD8FULL>({ '\x4F', '\x12', '\x2F', '\x7D', '\xBD', '\x0B', '\x68', '\xB8', '\x49', '\x59', '\x2F', '\x4B', '\xC0', '\x7F', '\xF1', '\x17', '\xEE', '\xCE', '\x86', '\xE4', '\x22', '\xAC', '\xC3', '\x01', '\xEA', '\xCF', '\x89', '\xE6', '\x1E', '\xA0', '\xF1', '\x01', '\xE6', '\xC9', '\x83', '\xE2', '\x1F', '\xA4', '\xDF', '\x2A', '\xE3', '\xD8', '\x89', '\xF3', '\x53', '\xA7', '\xC0', '\x05', '\x8F' })), std::string(DecryptName<0x2BAD156DE3E1F9D9ULL>({ '\x19', '\x56', '\x21', '\x19', '\xAD', '\xDB', '\x68', '\xE6', '\x1F', '\x1D', '\x21', '\x2F', '\xD0', '\xAF', '\xF1', '\x49', '\xB8', '\x8A', '\x88', '\x80', '\x32', '\x7C', '\xC3', '\x5F', '\xBC', '\x8B', '\x87', '\x82', '\x0E', '\x70', '\xF1', '\x5F', '\xB0', '\x8D', '\x8D', '\x86', '\x0F', '\x74', '\xDF', '\x74', '\xB4', '\x90', '\x85', '\xCD', '\x0F', '\x78', '\xDD', '\x2B' })), std::string(DecryptName<0x637B959D55771F69ULL>({ '\xA9', '\xB0', '\xB7', '\xAF', '\x5D', '\x5B', '\xBE', '\xAE', '\xAF', '\xFB', '\xB7', '\x99', '\x20', '\x2F', '\x27', '\x01', '\x08', '\x6C', '\x1E', '\x36', '\xC2', '\xFC', '\x15', '\x17', '\x0C', '\x6D', '\x11', '\x34', '\xFE', '\xF0', '\x27', '\x17', '\x00', '\x6B', '\x1B', '\x30', '\xFF', '\xF4', '\x09', '\x3C', '\x1B', '\x76', '\x10', '\x3D', '\xE9', '\xBB', '\x19', '\x0E', '\x19', '\x1F' }))); this->AddChild(this->titleBar); CUIStaticText* title = new CUIStaticText(); title->SetSize(100, 17); title->Move(18, 0); const char* questText = DecryptName<0xD1413DBB01CD8B51ULL>({'\x00', '\xDE', '\x88', '\x52', '\xEF', '\x3D'}); title->SetText(questText, std::strlen(questText)); title->SetFitText(0); title->SetAlign(0, 6); title->SetFont(std::string(DecryptName<0x758F1D0B4F7705B9ULL>({'\xFE', '\x70', '\x1B', '\x26', '\x66', '\x1D'}))); title->SetFontHeight(13); title->SetBold(0); title->SetColor(0); title->SetShadow(0, 0xFFFFFF); title->SetOutline(0, 0xFFFFFF); this->titleBar->titleText = title; this->titleBar->AddChild(title); CUIImageButton* systemButton = new CUIImageButton(); systemButton->SetSize(11, 11); systemButton->Move(3, 3); systemButton->SetOnClick([this]() { this->OnCallback6(); }); systemButton->disabled = 0; systemButton->Invalidate(); systemButton->SetImages( std::string(DecryptName<0x891B232D09451965ULL>({ '\xA5', '\xB6', '\x85', '\xF3', '\xED', '\xED', '\xDE', '\x44', '\xA3', '\xFD', '\x85', '\xC5', '\x90', '\x99', '\x47', '\xEB', '\x04', '\x6A', '\x2C', '\x6A', '\x72', '\x4A', '\x75', '\xFD', '\x00', '\x6B', '\x23', '\x68', '\x4E', '\x46', '\x47', '\xFA', '\x1C', '\x6A', '\x1A', '\x6B', '\x4C', '\x50', '\x7E', '\xD6', '\x0A', '\x7F', '\x23', '\x27', '\x4F', '\x4E', '\x6B', '\x89' })), std::string(DecryptName<0xEF6D1D893F2B2DC5ULL>({ '\x05', '\x82', '\xEB', '\xC5', '\x49', '\xD3', '\xA8', '\x22', '\x03', '\xC9', '\xEB', '\xF3', '\x34', '\xA7', '\x31', '\x8D', '\xA4', '\x5E', '\x42', '\x5C', '\xD6', '\x74', '\x03', '\x9B', '\xA0', '\x5F', '\x4D', '\x5E', '\xEA', '\x78', '\x31', '\x9C', '\xBC', '\x5E', '\x74', '\x5D', '\xE8', '\x6E', '\x08', '\xB0', '\xAA', '\x43', '\x05', '\x5D', '\xE4', '\x6D', '\x6D' })), std::string(DecryptName<0x234977DDB54BC71DULL>({ '\xDD', '\x68', '\x8B', '\x4F', '\x1D', '\xB9', '\x8C', '\xEE', '\xDB', '\x23', '\x8B', '\x79', '\x60', '\xCD', '\x15', '\x41', '\x7C', '\xB4', '\x22', '\xD6', '\x82', '\x1E', '\x27', '\x57', '\x78', '\xB5', '\x2D', '\xD4', '\xBE', '\x12', '\x15', '\x50', '\x64', '\xB4', '\x14', '\xD7', '\xBC', '\x04', '\x2C', '\x7C', '\x72', '\xA9', '\x65', '\xD7', '\xB0', '\x07', '\x49' })), std::string(DecryptName<0x6FE153231D879777ULL>({ '\xB7', '\x38', '\x47', '\xE7', '\xE3', '\x9D', '\x24', '\xA2', '\xB1', '\x73', '\x47', '\xD1', '\x9E', '\xE9', '\xBD', '\x0D', '\x16', '\xE4', '\xEE', '\x7E', '\x7C', '\x3A', '\x8F', '\x1B', '\x12', '\xE5', '\xE1', '\x7C', '\x40', '\x36', '\xBD', '\x1C', '\x0E', '\xE4', '\xD8', '\x7F', '\x42', '\x20', '\x84', '\x30', '\x18', '\xF1', '\xE1', '\x33', '\x41', '\x3E', '\x91', '\x6F' })) ); this->titleBar->AddChild(systemButton); this->background = new CUIStaticImage(); this->background->SetSize(352, 449); this->background->Move(29, 17); this->background->SetImage(std::string(DecryptName<0x39A39F87DD5F535BULL>({ '\x9B', '\xFC', '\x9F', '\x27', '\x47', '\x51', '\x66', '\xF4', '\x9D', '\xB7', '\x9F', '\x11', '\x3A', '\x25', '\xFF', '\x6B', '\x3E', '\x3D', '\x3A', '\xAA', '\xD8', '\xCE', '\xD6', '\x5C', '\x28', '\x27', '\x0A', '\x94', '\xDB', '\xFD', '\xC4', '\x66', '\x2A', '\x26', '\x3A', '\xAE', '\xF3', '\xB1', '\xC1', '\x54', '\x2B', '\x53' }))); this->AddChild(this->background); this->tab = new CUITab(); this->tab->SetSize(30, 403); this->tab->Move(0, 17); this->tab->SetOnChange([this](CUITabButton* button) { this->OnTabButton(button); }); this->AddChild(this->tab); CUITabButton* processButton = new CUITabButton(); processButton->SetSize(30, 100); processButton->Move(0, 0); processButton->SetOnClick([this]() { this->OnProcessTabClick(); }); processButton->disabled = 0; processButton->Invalidate(); processButton->SetText(std::string("")); processButton->SetFitText(0); processButton->SetAlign(0, 0); processButton->SetFont(std::string(DecryptName<0x2FEB8739E5975BD1ULL>({'\x96', '\x2E', '\xFB', '\x8C', '\x54', '\x87'}))); processButton->SetFontHeight(12); processButton->SetBold(0); processButton->SetTextColors(0, 0, 0, 0); processButton->SetShadow(0, 0); processButton->SetOutline(0, 0); processButton->SetImages( std::string(DecryptName<0x33133B977BCD03CDULL>({ '\x0D', '\xAC', '\x0D', '\x81', '\x57', '\xF5', '\xD6', '\xFE', '\x0B', '\xE7', '\x0D', '\xB7', '\x2A', '\x81', '\x4F', '\x61', '\xA8', '\x6D', '\xA8', '\x0C', '\xC8', '\x6A', '\x66', '\x56', '\xBE', '\x77', '\x98', '\x32', '\xCB', '\x4F', '\x72', '\x51', '\x92', '\x73', '\xBF', '\x14', '\xF4', '\x5E', '\x60', '\x40', '\x92', '\x6C', '\xAB', '\x1D', '\xB9', '\x59', '\x7E', '\x43', '\xCD' })), std::string(DecryptName<0xA12DAB392545D72FULL>({ '\xEF', '\x78', '\x85', '\xDF', '\xF9', '\x65', '\xE8', '\x6C', '\xE9', '\x33', '\x85', '\xE9', '\x84', '\x11', '\x71', '\xF3', '\x4A', '\xB9', '\x20', '\x52', '\x66', '\xFA', '\x58', '\xC4', '\x5C', '\xA3', '\x10', '\x6C', '\x65', '\xDF', '\x4C', '\xC3', '\x70', '\xA7', '\x37', '\x4A', '\x5A', '\xCE', '\x5E', '\xD2', '\x70', '\xB8', '\x2B', '\x0B', '\x5B', '\xC6', '\x5D', '\xA1' })), std::string(DecryptName<0x6BA1C1132F033B75ULL>({ '\xB5', '\x94', '\xC3', '\xD5', '\xD3', '\x0F', '\x64', '\xA6', '\xB3', '\xDF', '\xC3', '\xE3', '\xAE', '\x7B', '\xFD', '\x39', '\x10', '\x55', '\x66', '\x58', '\x4C', '\x90', '\xD4', '\x0E', '\x06', '\x4F', '\x56', '\x66', '\x4F', '\xB5', '\xC0', '\x09', '\x2A', '\x4B', '\x71', '\x40', '\x70', '\xA4', '\xD2', '\x18', '\x2A', '\x54', '\x65', '\x49', '\x3D', '\xA3', '\xCC', '\x1B', '\x75' })), std::string(DecryptName<0x2DCB7567394DC1ABULL>({ '\x6B', '\x6E', '\x8D', '\xC3', '\xA7', '\xBB', '\x0E', '\xE0', '\x6D', '\x25', '\x8D', '\xF5', '\xDA', '\xCF', '\x97', '\x7F', '\xCE', '\xAF', '\x28', '\x4E', '\x38', '\x24', '\xBE', '\x48', '\xD8', '\xB5', '\x18', '\x70', '\x3B', '\x01', '\xAA', '\x4F', '\xF4', '\xB1', '\x3F', '\x56', '\x04', '\x10', '\xB8', '\x5E', '\xF4', '\xAE', '\x2B', '\x5F', '\x49', '\x17', '\xA6', '\x5D', '\xAB' })) ); this->tab->AddChild(processButton); CUITabButton* recommendedButton = new CUITabButton(); recommendedButton->SetSize(30, 100); recommendedButton->Move(0, 101); recommendedButton->SetOnClick([this]() { this->OnRecommendedTabClick(); }); recommendedButton->disabled = 0; recommendedButton->Invalidate(); recommendedButton->SetText(std::string("")); recommendedButton->SetFitText(0); recommendedButton->SetAlign(0, 0); recommendedButton->SetFont(std::string(DecryptName<0x4F637DC51307B759ULL>({'\x1E', '\xC2', '\x6B', '\x7A', '\xA8', '\x7D'}))); recommendedButton->SetFontHeight(12); recommendedButton->SetBold(0); recommendedButton->SetTextColors(0, 0, 0, 0); recommendedButton->SetShadow(0, 0); recommendedButton->SetOutline(0, 0); recommendedButton->SetImages( std::string(DecryptName<0x8D1D0FF1AF2B13F7ULL>({ '\x37', '\xBC', '\xEB', '\x55', '\x31', '\xC1', '\xD8', '\x40', '\x31', '\xF7', '\xEB', '\x63', '\x4C', '\xB5', '\x41', '\xDF', '\x92', '\x7D', '\x4E', '\xD8', '\xAE', '\x5E', '\x68', '\xE8', '\x84', '\x67', '\x7E', '\xE6', '\xAD', '\x7B', '\x7C', '\xEF', '\xA8', '\x61', '\x4E', '\xCC', '\x9E', '\x62', '\x70', '\xE8', '\x99', '\x77', '\x4E', '\xCB', '\xAE', '\x60', '\x7B', '\xEB', '\xD9', '\x71', '\x46', '\xDF', '\xF1' })), std::string(DecryptName<0xB39FA7917BCFBB8DULL>({ '\x4D', '\x14', '\x0F', '\x81', '\x51', '\x69', '\x5A', '\x7E', '\x4B', '\x5F', '\x0F', '\xB7', '\x2C', '\x1D', '\xC3', '\xE1', '\xE8', '\xD5', '\xAA', '\x0C', '\xCE', '\xF6', '\xEA', '\xD6', '\xFE', '\xCF', '\x9A', '\x32', '\xCD', '\xD3', '\xFE', '\xD1', '\xD2', '\xC9', '\xAA', '\x18', '\xFE', '\xCA', '\xF2', '\xD6', '\xE3', '\xDF', '\xAA', '\x1F', '\xCE', '\xC8', '\xF1', '\x9D', '\xEF', '\xD6', '\xBF', '\x7B' })), std::string(DecryptName<0x9171997D6963C9F7ULL>({ '\x37', '\x66', '\xA3', '\x93', '\xBD', '\x57', '\xB4', '\x5C', '\x31', '\x2D', '\xA3', '\xA5', '\xC0', '\x23', '\x2D', '\xC3', '\x92', '\xA7', '\x06', '\x1E', '\x22', '\xC8', '\x04', '\xF4', '\x84', '\xBD', '\x36', '\x20', '\x21', '\xED', '\x10', '\xF3', '\xA8', '\xBB', '\x06', '\x0A', '\x12', '\xF4', '\x1C', '\xF4', '\x99', '\xAD', '\x06', '\x0D', '\x22', '\xF6', '\x17', '\xF7', '\xD9', '\xAB', '\x0E', '\x19', '\x7D' })), std::string(DecryptName<0x4F99DF03C3EF31B7ULL>({ '\x77', '\x9E', '\x2F', '\x39', '\xC3', '\x11', '\x5C', '\x82', '\x71', '\xD5', '\x2F', '\x0F', '\xBE', '\x65', '\xC5', '\x1D', '\xD2', '\x5F', '\x8A', '\xB4', '\x5C', '\x8E', '\xEC', '\x2A', '\xC4', '\x45', '\xBA', '\x8A', '\x5F', '\xAB', '\xF8', '\x2D', '\xE8', '\x43', '\x8A', '\xA0', '\x6C', '\xB2', '\xF4', '\x2A', '\xD9', '\x55', '\x8A', '\xA7', '\x5C', '\xB0', '\xFF', '\x29', '\x99', '\x53', '\x82', '\xB3', '\x03' })) ); this->tab->AddChild(recommendedButton); CUITabButton* holdButton = new CUITabButton(); holdButton->SetSize(30, 100); holdButton->Move(0, 202); holdButton->SetOnClick([this]() { this->OnHoldTabClick(); }); holdButton->disabled = 0; holdButton->Invalidate(); holdButton->SetText(std::string("")); holdButton->SetFitText(0); holdButton->SetAlign(0, 0); holdButton->SetFont(std::string(DecryptName<0xE52DF30DCBAF7125ULL>({'\x62', '\x04', '\xC3', '\xA2', '\x60', '\xF3'}))); holdButton->SetFontHeight(12); holdButton->SetBold(0); holdButton->SetTextColors(0, 0, 0, 0); holdButton->SetShadow(0, 0); holdButton->SetOutline(0, 0); holdButton->SetImages( std::string(DecryptName<0xCFF3899D95AF355FULL>({ '\x9F', '\x9A', '\x6F', '\x6F', '\x5D', '\x47', '\x36', '\x02', '\x99', '\xD1', '\x6F', '\x59', '\x20', '\x33', '\xAF', '\x9D', '\x3A', '\x5B', '\xCA', '\xE2', '\xC2', '\xD8', '\x86', '\xAA', '\x2C', '\x41', '\xFA', '\xDC', '\xC1', '\xFD', '\x92', '\xAD', '\x00', '\x5D', '\xC0', '\xF9', '\xF9', '\xD6', '\x9C', '\xA9', '\x39', '\x1B', '\xCD', '\xF8', '\xED', '\x89' })), std::string(DecryptName<0xFBD599E117C547C1ULL>({ '\x01', '\xE8', '\x05', '\xED', '\x21', '\x57', '\x10', '\x36', '\x07', '\xA3', '\x05', '\xDB', '\x5C', '\x23', '\x89', '\xA9', '\xA4', '\x29', '\xA0', '\x60', '\xBE', '\xC8', '\xA0', '\x9E', '\xB2', '\x33', '\x90', '\x5E', '\xBD', '\xED', '\xB4', '\x99', '\x9E', '\x2F', '\xAA', '\x7B', '\x85', '\xC6', '\xBA', '\x95', '\xEF', '\x25', '\xA8', '\x67', '\xE1' })), std::string(DecryptName<0x176F138D5DD7F365ULL>({ '\xA5', '\x5C', '\x17', '\xA7', '\x4D', '\xDD', '\xAA', '\xDA', '\xA3', '\x17', '\x17', '\x91', '\x30', '\xA9', '\x33', '\x45', '\x00', '\x9D', '\xB2', '\x2A', '\xD2', '\x42', '\x1A', '\x72', '\x16', '\x87', '\x82', '\x14', '\xD1', '\x67', '\x0E', '\x75', '\x3A', '\x9B', '\xB8', '\x31', '\xE9', '\x4C', '\x00', '\x71', '\x03', '\xDD', '\xB5', '\x30', '\xFD', '\x13' })), std::string(DecryptName<0x2D51E3B7236175EDULL>({ '\x2D', '\xDA', '\xA1', '\xD9', '\x77', '\x2D', '\x94', '\xE0', '\x2B', '\x91', '\xA1', '\xEF', '\x0A', '\x59', '\x0D', '\x7F', '\x88', '\x1B', '\x04', '\x54', '\xE8', '\xB2', '\x24', '\x48', '\x9E', '\x01', '\x34', '\x6A', '\xEB', '\x97', '\x30', '\x4F', '\xB2', '\x1D', '\x0E', '\x4F', '\xD3', '\xBC', '\x3E', '\x4B', '\x8B', '\x5B', '\x03', '\x4E', '\xC7', '\xE3' })) ); this->tab->AddChild(holdButton); CUITabButton* waitButton = new CUITabButton(); waitButton->SetSize(30, 100); waitButton->Move(0, 303); waitButton->SetOnClick([this]() { this->OnWaitTabClick(); }); waitButton->disabled = 0; waitButton->Invalidate(); waitButton->SetText(std::string("")); waitButton->SetFitText(0); waitButton->SetAlign(0, 0); waitButton->SetFont(std::string(DecryptName<0x0F41EBBDA32D1B17ULL>({'\x50', '\x6E', '\x41', '\xCA', '\xD0', '\xEB'}))); waitButton->SetFontHeight(12); waitButton->SetBold(0); waitButton->SetTextColors(0, 0, 0, 0); waitButton->SetShadow(0, 0); waitButton->SetOutline(0, 0); waitButton->SetImages( std::string(DecryptName<0x839B27DF8F5967B3ULL>({ '\x73', '\xC8', '\x99', '\x75', '\x1F', '\xE9', '\x5E', '\x4E', '\x75', '\x83', '\x99', '\x43', '\x62', '\x9D', '\xC7', '\xD1', '\xD6', '\x09', '\x3C', '\xF8', '\x80', '\x76', '\xEE', '\xE6', '\xC0', '\x13', '\x0C', '\xC6', '\x83', '\x53', '\xFA', '\xE1', '\xEC', '\x10', '\x38', '\xE6', '\xAB', '\x78', '\xF4', '\xE5', '\xD5', '\x49', '\x3B', '\xE2', '\xAF', '\x27' })), std::string(DecryptName<0xF3CB6F7711A71B6DULL>({ '\xAD', '\xB4', '\x67', '\xEB', '\xB7', '\xA1', '\x0E', '\x3E', '\xAB', '\xFF', '\x67', '\xDD', '\xCA', '\xD5', '\x97', '\xA1', '\x08', '\x75', '\xC2', '\x66', '\x28', '\x3E', '\xBE', '\x96', '\x1E', '\x6F', '\xF2', '\x58', '\x2B', '\x1B', '\xAA', '\x91', '\x32', '\x6C', '\xC6', '\x78', '\x03', '\x30', '\xA4', '\x9D', '\x43', '\x79', '\xCA', '\x61', '\x77' })), std::string(DecryptName<0x452FEF0D7FC95565ULL>({ '\xA5', '\xFA', '\x09', '\x85', '\xCD', '\x21', '\xEA', '\x88', '\xA3', '\xB1', '\x09', '\xB3', '\xB0', '\x55', '\x73', '\x17', '\x00', '\x3B', '\xAC', '\x08', '\x52', '\xBE', '\x5A', '\x20', '\x16', '\x21', '\x9C', '\x36', '\x51', '\x9B', '\x4E', '\x27', '\x3A', '\x22', '\xA8', '\x16', '\x79', '\xB0', '\x40', '\x23', '\x03', '\x7B', '\xAB', '\x12', '\x7D', '\xEF' })), std::string(DecryptName<0x9FED7DA189490D5DULL>({ '\x9D', '\xA2', '\x89', '\x73', '\x61', '\xB3', '\x28', '\x52', '\x9B', '\xE9', '\x89', '\x45', '\x1C', '\xC7', '\xB1', '\xCD', '\x38', '\x63', '\x2C', '\xFE', '\xFE', '\x2C', '\x98', '\xFA', '\x2E', '\x79', '\x1C', '\xC0', '\xFD', '\x09', '\x8C', '\xFD', '\x02', '\x7A', '\x28', '\xE0', '\xD5', '\x22', '\x82', '\xF9', '\x3B', '\x23', '\x2B', '\xE4', '\xD1', '\x7D' })) ); this->tab->AddChild(waitButton); this->checkBox = new CUICheckBox(); this->checkBox->SetSize(10, 10); this->checkBox->Move(38, 448); this->checkBox->SetOnCheck([this](bool checked) { this->RecordWindowFlag(checked); }); this->checkBox->disabled = 0; this->checkBox->Invalidate(); this->checkBox->SetImages( std::string(DecryptName<0x7DE349D717D7F123ULL>({ '\xE3', '\x5E', '\x17', '\xED', '\x17', '\x87', '\x26', '\xB0', '\xE5', '\x15', '\x17', '\xDB', '\x6A', '\xF3', '\xBF', '\x2F', '\x46', '\x9F', '\xB2', '\x60', '\x88', '\x18', '\x96', '\x18', '\x50', '\x85', '\x82', '\x5E', '\x8B', '\x2A', '\x8B', '\x18', '\x40', '\x9A', '\xB5', '\x78', '\xAF', '\x16', '\x8C', '\x1B', '\x45', '\xDF', '\xB5', '\x7A', '\xA7', '\x49' })), std::string(DecryptName<0x0F15B16B5BAFD57FULL>({ '\xBF', '\x7A', '\x6F', '\xA1', '\xAB', '\x7F', '\xD0', '\xC2', '\xB9', '\x31', '\x6F', '\x97', '\xD6', '\x0B', '\x49', '\x5D', '\x1A', '\xBB', '\xCA', '\x2C', '\x34', '\xE0', '\x60', '\x6A', '\x0C', '\xA1', '\xFA', '\x12', '\x37', '\xD2', '\x7D', '\x6A', '\x1C', '\xBE', '\xCD', '\x34', '\x13', '\xEE', '\x7A', '\x61', '\x51', '\xB7', '\xC2', '\x2B', '\x6B' })), std::string(DecryptName<0x7941D76335CFA14FULL>({ '\x8F', '\x0E', '\x0F', '\xCF', '\xA3', '\x19', '\x84', '\xB4', '\x89', '\x45', '\x0F', '\xF9', '\xDE', '\x6D', '\x1D', '\x2B', '\x2A', '\xCF', '\xAA', '\x42', '\x3C', '\x86', '\x34', '\x1C', '\x3C', '\xD5', '\x9A', '\x7C', '\x3F', '\xB4', '\x29', '\x1C', '\x2C', '\xCA', '\xAD', '\x5A', '\x1B', '\x88', '\x2E', '\x1F', '\x29', '\x8F', '\xAD', '\x58', '\x13', '\xD7' })), std::string(DecryptName<0x7321C3814F8799E1ULL>({ '\x21', '\x36', '\x47', '\xB5', '\x41', '\x0D', '\xE4', '\xBE', '\x27', '\x7D', '\x47', '\x83', '\x3C', '\x79', '\x7D', '\x21', '\x84', '\xF7', '\xE2', '\x38', '\xDE', '\x92', '\x54', '\x16', '\x92', '\xED', '\xD2', '\x06', '\xDD', '\xA0', '\x49', '\x16', '\x82', '\xF2', '\xE5', '\x20', '\xF9', '\x9C', '\x4E', '\x15', '\x87', '\xB7', '\xE5', '\x22', '\xF1', '\xC3' })) ); this->checkBox->checked = false; this->checkBox->Invalidate(); this->AddChild(this->checkBox); this->filterLabel = new CUIStaticText(); this->filterLabel->SetSize(100, 12); this->filterLabel->Move(52, 447); this->filterLabel->SetText("", 0); this->filterLabel->SetFitText(0); this->filterLabel->SetAlign(0, 0); this->filterLabel->SetFont(std::string(DecryptName<0x7115D9F973F913C9ULL>({'\x8E', '\x66', '\x95', '\x1A', '\x94', '\xD9'}))); this->filterLabel->SetFontHeight(12); this->filterLabel->SetBold(0); this->filterLabel->SetColor(0); this->filterLabel->SetShadow(0, 0xFFFFFF); this->filterLabel->SetOutline(0, 0xFFFFFF); this->AddChild(this->filterLabel); this->closeButton = new CUIImageButton(); this->closeButton->SetSize(42, 20); this->closeButton->Move(327, 442); this->closeButton->SetOnClick([this]() { g_windowMgr.CloseWindow(0x2718); }); this->closeButton->disabled = 0; this->closeButton->Invalidate(); this->closeButton->SetImages( std::string(DecryptName<0xCB1D253B7FE1F563ULL>({ '\xA3', '\x5A', '\x21', '\x85', '\xFB', '\xEB', '\xD8', '\x06', '\xA5', '\x11', '\x21', '\xB3', '\x86', '\x9F', '\x41', '\xA9', '\x02', '\x86', '\x88', '\x1C', '\x64', '\x4C', '\x73', '\xBF', '\x06', '\x87', '\x87', '\x1E', '\x58', '\x40', '\x41', '\xA9', '\x17', '\x9B', '\xBE', '\x1C', '\x57', '\x4A', '\x6E', '\xAE', '\x4D', '\x97', '\x8C', '\x0F', '\x3B' })), std::string(DecryptName<0x793F370985ED674FULL>({ '\x8F', '\xC8', '\x2D', '\x7F', '\xC9', '\xF9', '\xFA', '\xB4', '\x89', '\x83', '\x2D', '\x49', '\xB4', '\x8D', '\x63', '\x1B', '\x2E', '\x14', '\x84', '\xE6', '\x56', '\x5E', '\x51', '\x0D', '\x2A', '\x15', '\x8B', '\xE4', '\x6A', '\x52', '\x63', '\x1B', '\x3B', '\x09', '\xB2', '\xE6', '\x65', '\x58', '\x4C', '\x1C', '\x10', '\x05', '\xC3', '\xE7', '\x64', '\x47', '\x3F' })), std::string(DecryptName<0xE55723712993051DULL>({ '\xDD', '\xAA', '\x53', '\xD3', '\xB1', '\xED', '\x92', '\x28', '\xDB', '\xE1', '\x53', '\xE5', '\xCC', '\x99', '\x0B', '\x87', '\x7C', '\x76', '\xFA', '\x4A', '\x2E', '\x4A', '\x39', '\x91', '\x78', '\x77', '\xF5', '\x48', '\x12', '\x46', '\x0B', '\x87', '\x69', '\x6B', '\xCC', '\x4A', '\x1D', '\x4C', '\x24', '\x80', '\x42', '\x64', '\xBD', '\x4B', '\x1C', '\x53', '\x57' })), std::string(DecryptName<0x3FA3AFA7035DE3FFULL>({ '\x3F', '\x4C', '\x9D', '\xF9', '\x67', '\x61', '\x66', '\xF2', '\x39', '\x07', '\x9D', '\xCF', '\x1A', '\x15', '\xFF', '\x5D', '\x9E', '\x90', '\x34', '\x60', '\xF8', '\xC6', '\xCD', '\x4B', '\x9A', '\x91', '\x3B', '\x62', '\xC4', '\xCA', '\xFF', '\x5D', '\x8B', '\x8D', '\x02', '\x60', '\xCB', '\xC0', '\xD0', '\x5A', '\xD1', '\x81', '\x30', '\x73', '\xA7' })) ); this->AddChild(this->closeButton); for (int index = 0; index < 4; ++index) { RenewQuestUI::CUIQuestList* list = new RenewQuestUI::CUIQuestList(); list->SetSize(343, 394); this->AddChild(list); this->questLists.push_back(list); } this->questLists[0]->Move(38, 17); this->questLists[1]->Move(38, 17); this->questLists[2]->Move(38, 17); this->questLists[3]->Move(38, 17); this->searchBackground = new CUIStaticImage(); this->searchBackground->SetSize(352, 28); this->searchBackground->Move(29, 411); this->searchBackground->SetImage(std::string(DecryptName<0xDB27CB557D038759ULL>({ '\x99', '\x28', '\xC3', '\x87', '\x95', '\x05', '\xE2', '\x16', '\x9F', '\x63', '\xC3', '\xB1', '\xE8', '\x71', '\x7B', '\x89', '\x3C', '\xE9', '\x66', '\x0A', '\x0A', '\x9A', '\x52', '\xBE', '\x2A', '\xF3', '\x56', '\x34', '\x09', '\xA9', '\x40', '\x84', '\x2A', '\xE2', '\x62', '\x0F', '\x36', '\xA3', '\x09', '\xB9', '\x34', '\xF7', '\x03' }))); this->AddChild(this->searchBackground); this->filterPanel = new CUITab(); this->filterPanel->SetSize(181, 22); this->filterPanel->Move(35, 414); this->filterPanel->SetOnChange([this](CUITabButton* button) { this->OnFilterButton(button); }); this->AddChild(this->filterPanel); CUITabButton* allButton = new CUITabButton(); allButton->SetSize(26, 22); allButton->Move(0, 0); allButton->SetOnClick([this]() { this->OnCallback50(); }); allButton->disabled = 0; allButton->Invalidate(); allButton->SetId(0); allButton->SetText(std::string("")); allButton->SetFitText(0); allButton->SetAlign(0, 0); allButton->SetFont(std::string(DecryptName<0x51BB39B763BBBD8DULL>({'\xCA', '\xC8', '\xD7', '\x0A', '\xDA', '\x39'}))); allButton->SetFontHeight(12); allButton->SetBold(0); allButton->SetTextColors(0, 0, 0, 0); allButton->SetShadow(0, 0); allButton->SetOutline(0, 0); allButton->SetImages( std::string(DecryptName<0x87E3D1C50D572DEFULL>({ '\x2F', '\x82', '\x97', '\xF7', '\x05', '\x1F', '\x26', '\x4A', '\x29', '\xC9', '\x97', '\xC1', '\x78', '\x6B', '\xBF', '\xD5', '\x8A', '\x43', '\x32', '\x7A', '\x9A', '\x80', '\x96', '\xE2', '\x9C', '\x59', '\x02', '\x44', '\x99', '\xB3', '\x97', '\xE9', '\xB0', '\x4C', '\x3B', '\x61', '\x9A', '\xBE', '\x85', '\xE1', '\xC1', '\x4F', '\x3A', '\x7D', '\xC5' })), std::string(DecryptName<0xDF8117FF49CFF551ULL>({ '\x91', '\x5A', '\x0F', '\xB3', '\x3F', '\xD9', '\x44', '\x12', '\x97', '\x11', '\x0F', '\x85', '\x42', '\xAD', '\xDD', '\x8D', '\x34', '\x9B', '\xAA', '\x3E', '\xA0', '\x46', '\xF4', '\xBA', '\x22', '\x81', '\x9A', '\x00', '\xA3', '\x75', '\xF5', '\xB1', '\x0E', '\x94', '\xA3', '\x25', '\xA0', '\x78', '\xEF', '\xF1', '\x33', '\x98', '\xBF', '\x49' })), std::string(DecryptName<0xADC51BF9C98B413DULL>({ '\xFD', '\xEE', '\x4B', '\x33', '\x39', '\xD5', '\x00', '\x60', '\xFB', '\xA5', '\x4B', '\x05', '\x44', '\xA1', '\x99', '\xFF', '\x58', '\x2F', '\xEE', '\xBE', '\xA6', '\x4A', '\xB0', '\xC8', '\x4E', '\x35', '\xDE', '\x80', '\xA5', '\x79', '\xB1', '\xC3', '\x62', '\x20', '\xE7', '\xA5', '\xA6', '\x74', '\xA3', '\xCB', '\x13', '\x23', '\xE6', '\xB9', '\xF9' })), std::string(DecryptName<0x7D5D0F110B6B8371ULL>({ '\xB1', '\x2C', '\xAB', '\xF1', '\xD1', '\xC1', '\x98', '\xB0', '\xB7', '\x67', '\xAB', '\xC7', '\xAC', '\xB5', '\x01', '\x2F', '\x14', '\xED', '\x0E', '\x7C', '\x4E', '\x5E', '\x28', '\x18', '\x02', '\xF7', '\x3E', '\x42', '\x4D', '\x6D', '\x29', '\x13', '\x2E', '\xE2', '\x07', '\x67', '\x4E', '\x60', '\x3B', '\x1B', '\x5F', '\xE1', '\x06', '\x7B', '\x11' })) ); this->filterPanel->AddChild(allButton); CUITabButton* normalButton = new CUITabButton(); normalButton->SetSize(26, 22); normalButton->Move(31, 0); normalButton->SetOnClick([this]() { this->OnCallback56(); }); normalButton->disabled = 0; normalButton->Invalidate(); normalButton->SetId(2); normalButton->SetText(std::string("")); normalButton->SetFitText(0); normalButton->SetAlign(0, 0); normalButton->SetFont(std::string(GulimFontName1().Text())); normalButton->SetFontHeight(12); normalButton->SetBold(0); normalButton->SetTextColors(0, 0, 0, 0); normalButton->SetShadow(0, 0); normalButton->SetOutline(0, 0); normalButton->SetImages( std::string(NormalOffButtonName1().Text()), std::string(NormalOnButtonName().Text()), std::string(NormalOffButtonName2().Text()), std::string(NormalOffButtonName3().Text()) ); this->filterPanel->AddChild(normalButton); CUITabButton* subButton = new CUITabButton(); subButton->SetSize(26, 22); subButton->Move(62, 0); subButton->SetOnClick([this]() { this->OnPanelButton(); }); subButton->disabled = 0; subButton->Invalidate(); subButton->SetId(3); subButton->SetText(std::string("")); subButton->SetFitText(0); subButton->SetAlign(0, 0); subButton->SetFont(std::string(GulimFontName2().Text())); subButton->SetFontHeight(12); subButton->SetBold(0); subButton->SetTextColors(0, 0, 0, 0); subButton->SetShadow(0, 0); subButton->SetOutline(0, 0); subButton->SetImages( std::string(SubOffButtonName1().Text()), std::string(SubOnButtonName().Text()), std::string(SubOffButtonName2().Text()), std::string(SubOffButtonName3().Text()) ); this->filterPanel->AddChild(subButton); CUITabButton* dailyButton = new CUITabButton(); dailyButton->SetSize(26, 22); dailyButton->Move(93, 0); dailyButton->SetOnClick([this]() { this->OnCallback43(); }); dailyButton->disabled = 0; dailyButton->Invalidate(); dailyButton->SetId(4); dailyButton->SetText(std::string("")); dailyButton->SetFitText(0); dailyButton->SetAlign(0, 0); dailyButton->SetFont(std::string(GulimFontName3().Text())); dailyButton->SetFontHeight(12); dailyButton->SetBold(0); dailyButton->SetTextColors(0, 0, 0, 0); dailyButton->SetShadow(0, 0); dailyButton->SetOutline(0, 0); dailyButton->SetImages( std::string(DailyOffButtonName1().Text()), std::string(DailyOnButtonName().Text()), std::string(DailyOffButtonName2().Text()), std::string(DailyOffButtonName3().Text()) ); this->filterPanel->AddChild(dailyButton); CUITabButton* eventButton = new CUITabButton(); eventButton->SetSize(26, 22); eventButton->Move(124, 0); eventButton->SetOnClick([this]() { this->OnCallback74(); }); eventButton->disabled = 0; eventButton->Invalidate(); eventButton->SetId(5); eventButton->SetText(std::string("")); eventButton->SetFitText(0); eventButton->SetAlign(0, 0); eventButton->SetFont(std::string(GulimFontName4().Text())); eventButton->SetFontHeight(12); eventButton->SetBold(0); eventButton->SetTextColors(0, 0, 0, 0); eventButton->SetShadow(0, 0); eventButton->SetOutline(0, 0); eventButton->SetImages( std::string(EventOffButtonName1().Text()), std::string(EventOnButtonName().Text()), std::string(EventOffButtonName2().Text()), std::string(EventOffButtonName3().Text()) ); this->filterPanel->AddChild(eventButton); CUITabButton* etcButton = new CUITabButton(); etcButton->SetSize(26, 22); etcButton->Move(155, 0); etcButton->SetOnClick([this]() { this->OnCallback80(); }); etcButton->disabled = 0; etcButton->Invalidate(); etcButton->SetId(1); etcButton->SetText(std::string("")); etcButton->SetFitText(0); etcButton->SetAlign(0, 0); etcButton->SetFont(std::string(GulimFontName5().Text())); etcButton->SetFontHeight(12); etcButton->SetBold(0); etcButton->SetTextColors(0, 0, 0, 0); etcButton->SetShadow(0, 0); etcButton->SetOutline(0, 0); etcButton->SetImages( std::string(EtcOffButtonName1().Text()), std::string(EtcOnButtonName().Text()), std::string(EtcOffButtonName2().Text()), std::string(EtcOffButtonName3().Text()) ); this->filterPanel->AddChild(etcButton); this->searchEdit = new CUIEditBoxEx(); this->searchEdit->Create(119, 16, false); this->searchEdit->Move(223, 417); this->searchEdit->SetText(std::string("")); this->searchEdit->SetTextColor(0); this->searchEdit->SetBackgroundColor(0xFFFF00FF); this->searchEdit->SetBorderColor(0xC6C6C6); this->searchEdit->SetBorderWidth(1); this->searchEdit->SetMaximum(20); this->searchEdit->SetEditBounds(0, 0, 0, 0); this->searchEdit->SetMask(0); this->searchEdit->SetAlignment(0); this->searchEdit->SetOnSubmit([this]() { this->searchText = this->searchEdit->edit->Text(); this->sub_A67290(0xF); }); this->AddChild(this->searchEdit); this->searchButton = new CUIImageButton(); this->searchButton->SetSize(23, 18); this->searchButton->Move(342, 416); this->searchButton->SetOnClick([this]() { this->searchText = this->searchEdit->edit->Text(); this->sub_A67290(0xF); }); this->searchButton->disabled = 0; this->searchButton->Invalidate(); this->searchButton->SetImages( std::string(SearchNormalButtonName().Text()), std::string(SearchPressButtonName().Text()), std::string(SearchOverButtonName().Text()), std::string(SearchDisableButtonName().Text()) ); this->AddChild(this->searchButton); processButton->page = this->questLists[0]; recommendedButton->page = this->questLists[1]; holdButton->page = this->questLists[2]; waitButton->page = this->questLists[3]; this->tab->Select(processButton); this->filterPanel->Select(allButton); } // OFFSET: 0x00A63930 // FUNCTION: fn_16439 template <> void CUIListBoxEx::AddNewItem() { if (this->itemWidth <= 0 || this->rowHeight <= 0) { return; } for (RenewQuestUI::CUIQuestItem* item : this->items) { this->RemoveChild(item, 1); } this->items.clear(); this->selected = static_cast(-1); if (this->rowHeight <= this->geometry.height) { unsigned count = static_cast(this->geometry.height / this->rowHeight) + 1; if (this->geometry.height % this->rowHeight > 1) { ++count; } this->items.resize(count, nullptr); for (RenewQuestUI::CUIQuestItem*& slot : this->items) { RenewQuestUI::CUIQuestItem* item = new RenewQuestUI::CUIQuestItem(); item->SetSize(this->itemWidth, this->rowHeight); item->Show(0); CResPtr* images = reinterpret_cast*>(reinterpret_cast(this) + 0x80); item->SetImageResources(images[0], images[1], images[2], images[3]); item->onHover = [this](CUIListItem* listItem) { for (RenewQuestUI::CUIQuestItem* other : this->items) { other->SetHighlighted(other == listItem); } }; item->onPress = [this](CUIListItem* listItem) { this->SelectItem(listItem); }; this->AddChild(item); slot = item; } } this->scrollBar->SetTotal(this->geometry.height); this->scrollBar->SetVisible(this->geometry.height); } // OFFSET: 0x00A63CD0 // FUNCTION: fn_16442 template <> void CUIListBoxEx::Slot53(int resolveSkin) { CResPtr* images = reinterpret_cast*>(reinterpret_cast(this) + 0x80); images[0] = CResPtr(this->LoadBitmapResource(this->imageNames[0], resolveSkin)); images[1] = CResPtr(this->LoadBitmapResource(this->imageNames[1], resolveSkin)); images[2] = CResPtr(this->LoadBitmapResource(this->imageNames[2], resolveSkin)); images[3] = CResPtr(this->LoadBitmapResource(this->disabledName, resolveSkin)); for (RenewQuestUI::CUIQuestItem* item : this->items) { item->SetImageResources(images[0], images[1], images[2], images[3]); } } // OFFSET: 0x00A63EE0 // FUNCTION: fn_16443 template <> void CUIListBoxEx::Resize(int width, int height) { UIWindow::Resize(width, height); this->AddNewItem(); this->scrollBar->Resize(this->scrollBar->geometry.width, height); this->scrollBar->SetTotal(static_cast(this->data.size()) * this->rowHeight + this->itemY); this->scrollBar->SetVisible(this->geometry.height); this->scrollBar->SetPosition(this->scrollBar->position); this->rebind = 1; } // OFFSET: 0x00A659B0 // FUNCTION: fn_16597 RenewQuestUI::CUIQuestItem::CUIQuestItem() : CUIListItem(), icon(nullptr), unknown_00EC(nullptr), unknown_00F0(nullptr), unknown_00F4(nullptr), unknown_00F8(nullptr), questType(1), questId(0), pressed(0), baseX(0), baseY(0) { } // OFFSET: 0x00A65A70 // FUNCTION: fn_16598 RenewQuestUI::CUIQuestList::CUIQuestList() : CUIControl(), list(nullptr), type(1) { } // OFFSET: 0x00A67E90 // FUNCTION: fn_45515 void CUIRenewQuestUI::OnProcessTabClick() { this->RecordValues(0x16, 1, 0, 0, 0); for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type == 1) { if (list->list) { list->list->scrollBar->SetPosition(0); } return; } } } // OFFSET: 0x00A67EE0 // FUNCTION: fn_45516 void CUIRenewQuestUI::OnRecommendedTabClick() { this->RecordValues(0x16, 2, 0, 0, 0); for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type == 2) { if (list->list) { if (s_recommendedTabFirstSelect) { list->list->SelectIndex(0); s_recommendedTabFirstSelect = false; return; } list->list->scrollBar->SetPosition(0); } return; } } } // OFFSET: 0x00A67E40 // FUNCTION: fn_45517 void CUIRenewQuestUI::OnHoldTabClick() { this->RecordValues(0x16, 4, 0, 0, 0); for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type == 4) { if (list->list) { list->list->scrollBar->SetPosition(0); } return; } } } // OFFSET: 0x00A67F50 // FUNCTION: fn_45518 void CUIRenewQuestUI::OnWaitTabClick() { this->RecordValues(0x16, 8, 0, 0, 0); for (RenewQuestUI::CUIQuestList* list : this->questLists) { if (list->type == 8) { if (list->list) { list->list->scrollBar->SetPosition(0); } return; } } } // OFFSET: 0x00A66230 // FUNCTION: fn_45521 void CUIRenewQuestUI::OnSearchSubmit() { this->searchText = this->searchEdit->edit->Text(); this->sub_A67290(0xF); } // OFFSET: 0x00A66100 // FUNCTION: fn_45519 void CUIRenewQuestUI::OnClose() { g_windowMgr.CloseWindow(0x2718); } // OFFSET: 0x00A66370 // FUNCTION: fn_45520 void CUIRenewQuestUI::OnSearchButton() { this->searchText = this->searchEdit->edit->Text(); this->sub_A67290(0xF); } // OFFSET: 0x00A65AF0 // FUNCTION: fn_16599 CUIRenewQuestUI::CUIRenewQuestUI() : tab(nullptr), checkBox(nullptr), filterLabel(nullptr), closeButton(nullptr), questLists(), searchBackground(nullptr), filterPanel(nullptr), searchEdit(nullptr), searchButton(nullptr), filter(0), searchText(), titleBar(nullptr), background(nullptr) { } // OFFSET: 0x00A66DA0 // FUNCTION: fn_16624 void CUIRenewQuestUI::Slot16() { g_windowMgr.RecordWindowPacket(0x2718); g_windowMgr.CloseWindow(0x8F); const char* title = LookupMessage(0xD48); this->titleBar->SetTitle(title, std::strlen(title)); const char* label = LookupMessage(0x7E3); this->filterLabel->SetText(label, std::strlen(label)); bool visible = false; if (UIWindow* window = g_windowMgr.LookupWindow(0xCC)) { visible = window->geometry.visible != 0; } this->checkBox->checked = visible; this->checkBox->Invalidate(); for (unsigned int index = 0; index < this->questLists.size(); ++index) { this->questLists[index]->type = 1 << index; } this->sub_A67290(0xF); for (UIWindow* child : this->filterPanel->m_children) { const std::string name = g_renewQuestMgr->GetFilterName(child->geometry.id); static_cast(child)->tooltipText = name; } }