diff --git a/Source/UI/Window/UIZeroChatWnd.cpp b/Source/UI/Window/UIZeroChatWnd.cpp index 0ebb96479..a9e119b43 100644 --- a/Source/UI/Window/UIZeroChatWnd.cpp +++ b/Source/UI/Window/UIZeroChatWnd.cpp @@ -33,3 +33,62 @@ void UIDebuffRemoveWnd::Slot15(int width, int height) { } // OFFSET: 0x0094B5C0 +// FUNCTION: fn_12893 +void UIGuild_Storage_Log::Slot15(int width, int height) { + const int positions[3][3] = {{160, 229, 0}, {215, 229, 0}, {350, 225, 0}}; + const int ids[3] = {246, 218, 184}; + const char* const bitmaps[3][3] = { + {"stickon", "stickon_a", "stickon_b"}, + {"stickoff", "stickoff_a", "stickoff_b"}, + {"btn_close", "btn_close_a", "btn_close_b"}, + }; + + int y = 60; + for (int row = 0; row < 10; ++row) { + this->m_dateTexts[row] = new UIStaticText(*this->m_context, *this->m_controls); + this->m_dateTexts[row]->SetSize(100, 15); + this->m_dateTexts[row]->SetTextFitted(""); + this->m_dateTexts[row]->Move(50, y); + this->AddChild(this->m_dateTexts[row]); + + this->m_nameTexts[row] = new UIStaticText(*this->m_context, *this->m_controls); + this->m_nameTexts[row]->SetSize(20, 15); + this->m_nameTexts[row]->SetTextFitted(""); + this->m_nameTexts[row]->Move(150, y); + this->AddChild(this->m_nameTexts[row]); + + this->m_itemTexts[row] = new UIStaticText(*this->m_context, *this->m_controls); + this->m_itemTexts[row]->SetSize(80, 15); + this->m_itemTexts[row]->SetTextFitted(""); + this->m_itemTexts[row]->Move(190, y); + this->AddChild(this->m_itemTexts[row]); + + this->m_countTexts[row] = new UIStaticText(*this->m_context, *this->m_controls); + this->m_countTexts[row]->SetSize(130, 15); + this->m_countTexts[row]->SetTextFitted(""); + this->m_countTexts[row]->Move(280, y); + this->AddChild(this->m_countTexts[row]); + + y += 15; + } + + const std::string prefix = "유저인터페이스\\basic_interface\\"; + for (int index = 0; index < 3; ++index) { + UIBitmapButton* button = new UIBitmapButton(*this->m_context, *this->m_controls); + button->SetBitmap((prefix + bitmaps[index][0] + ".bmp").c_str(), 0, 0); + button->SetBitmap((prefix + bitmaps[index][1] + ".bmp").c_str(), 1, 0); + button->SetBitmap((prefix + bitmaps[index][2] + ".bmp").c_str(), 2, 0); + button->SetSize(button->BitmapWidth(), button->BitmapHeight()); + button->Move(positions[index][0], positions[index][1]); + button->SetId(ids[index]); + this->AddChild(button); + } + + this->unknown_0158 = new UITabControl(*this->m_context, *this->m_controls); + this->unknown_0158->Configure(1, 20, 50, 1, 0, 0, 0, 0, 0, 0, 0, 0); + this->unknown_0158->Move(0, 17); + this->AddChild(this->unknown_0158); + this->unknown_0158->AddTab(LookupMessage(2544), ""); + this->unknown_0158->AddTab(LookupMessage(2545), ""); + this->unknown_0158->AddTab(LookupMessage(2546), ""); +}