Decompile fn_12893 (UIGuild_Storage_Log::Slot15)
Batch #8526 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_12893 UIGuild_Storage_Log::Slot15: logic confirmed by peer review Peer-reviewed-by: eAthena, gordaoprogramas, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
9e15423f81
commit
47e2d3e06d
1 changed files with 59 additions and 0 deletions
|
|
@ -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), "");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue