diff --git a/Source/UI/AdventureGuide/UIAdventureGuide.cpp b/Source/UI/AdventureGuide/UIAdventureGuide.cpp index c8b9264e..e14200e1 100644 --- a/Source/UI/AdventureGuide/UIAdventureGuide.cpp +++ b/Source/UI/AdventureGuide/UIAdventureGuide.cpp @@ -575,6 +575,65 @@ private: namespace AdventureGuide { // OFFSET: 0x009C5400 +// FUNCTION: fn_14000 +void CUICharacterInfo::Slot15(int width, int height) { + this->jobIcon = new CUIStaticImage(*this->m_context); + this->jobIcon->SetSize(25, 25); + this->jobIcon->Move(10, 8); + this->jobIcon->SetImage(std::string()); + this->AddChild(this->jobIcon); + + this->level = new CUIStaticText(*this->m_context); + this->level->SetSize(50, 12); + this->level->Move(46, 6); + this->level->SetText("", 0); + this->level->SetFitText(0); + this->level->SetAlign(0, 0); + const std::uint8_t levelFontSource[] = {0xFE, 0x70, 0x1B, 0x26, 0x66, 0x1D}; + // GLOBAL: gl_25126 + thread_local EncryptedName levelFont(levelFontSource); + this->level->SetFont(std::string(levelFont.Text())); + this->level->SetFontHeight(12); + this->level->SetBold(0); + this->level->SetColor(0); + this->level->SetShadow(1, 0xFFFFFF); + this->level->SetOutline(0, 0xFFFFFF); + this->AddChild(this->level); + + this->jobLevel = new CUIStaticText(*this->m_context); + this->jobLevel->SetSize(50, 12); + this->jobLevel->Move(97, 6); + this->jobLevel->SetText("", 0); + this->jobLevel->SetFitText(0); + this->jobLevel->SetAlign(0, 0); + const std::uint8_t jobLevelFontSource[] = {0x70, 0x32, 0xC1, 0x50, 0xD2, 0xE5}; + // GLOBAL: gl_25127 + thread_local EncryptedName jobLevelFont(jobLevelFontSource); + this->jobLevel->SetFont(std::string(jobLevelFont.Text())); + this->jobLevel->SetFontHeight(12); + this->jobLevel->SetBold(0); + this->jobLevel->SetColor(0); + this->jobLevel->SetShadow(1, 0xFFFFFF); + this->jobLevel->SetOutline(0, 0xFFFFFF); + this->AddChild(this->jobLevel); + + this->name = new CUIStaticText(*this->m_context); + this->name->SetSize(100, 12); + this->name->Move(45, 22); + this->name->SetText("", 0); + this->name->SetFitText(1); + this->name->SetAlign(0, 0); + const std::uint8_t nameFontSource[] = {0x20, 0xDE, 0xFD, 0xCC, 0xCC, 0x3F}; + // GLOBAL: gl_25128 + thread_local EncryptedName nameFont(nameFontSource); + this->name->SetFont(std::string(nameFont.Text())); + this->name->SetFontHeight(12); + this->name->SetBold(0); + this->name->SetColor(0); + this->name->SetShadow(1, 0xFFFFFF); + this->name->SetOutline(0, 0xFFFFFF); + this->AddChild(this->name); +} // OFFSET: 0x009DCE10 // FUNCTION: fn_14330 diff --git a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp index ee379dc5..a527306e 100644 --- a/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp +++ b/Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp @@ -373,6 +373,45 @@ private: } // OFFSET: 0x00A69790 +// FUNCTION: fn_16664 +void SelectPackageItemBox::CUIItemInfo::Slot15(int width, int height) { + this->image = new CUIStaticImage(*this->m_context); + this->image->SetSize(200, 34); + this->image->Move(0, 0); + const std::uint8_t imageSource[] = {0xC9, 0x88, 0xEF, 0x41, 0x7D, 0x93, 0xB8, 0x14, 0xCF, 0xC3, 0xEF, 0x77, 0x00, 0xE7, 0x21, + 0xAA, 0x6C, 0x4B, 0x4A, 0xD8, 0xC9, 0x2D, 0x1C, 0xBA, 0x62, 0x46, 0x48, 0xDE, 0xE1, 0x34, + 0x09, 0xBC, 0x64, 0x78, 0x43, 0xD2, 0xCE, 0x29, 0x53, 0xBB, 0x64, 0x57, 0x2F}; + // GLOBAL: gl_25124 + thread_local EncryptedName imageName(imageSource); + std::string background(imageName.Text()); + this->image->SetImage(background); + this->AddChild(this->image); + + this->gameItem = new CUIGameItem(*this->m_context); + this->gameItem->SetMode(0); + this->gameItem->SetScale(100); + this->gameItem->Move(6, 5); + this->gameItem->unknown_0084 = 1; + this->gameItem->unknown_0085 = 1; + this->AddChild(this->gameItem); + + this->nameText = new CUIStaticText(*this->m_context); + this->nameText->SetSize(148, 24); + this->nameText->Move(45, 5); + this->nameText->SetText("", 0); + this->nameText->SetFitText(1); + this->nameText->SetAlign(0, 6); + const std::uint8_t nameFontSource[] = {0x38, 0x66, 0xB3, 0xB8, 0xE8, 0x67}; + // GLOBAL: gl_25125 + thread_local EncryptedName nameFont(nameFontSource); + this->nameText->SetFont(std::string(nameFont.Text())); + this->nameText->SetFontHeight(12); + this->nameText->SetBold(0); + this->nameText->SetColor(0); + this->nameText->SetShadow(1, 0xE7E7E7); + this->nameText->SetOutline(0, 0xFFFFFF); + this->AddChild(this->nameText); +} // OFFSET: 0x00A6CDE0 // FUNCTION: fn_16665