Decompile 2 functions in Source/UI/Item/UIMerchantItemLogWnd.cpp
Batch #15803 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_13575 UIMerchantItemLogWnd::OnCreate: logic confirmed by peer review - fn_13580 UIMerchantItemLogWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena 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
0f4c42afca
commit
c58578bf84
1 changed files with 26 additions and 25 deletions
|
|
@ -49,29 +49,26 @@ void UIMerchantItemLogWnd::OnCreate(int width, int height) {
|
|||
title->shadow = 1;
|
||||
this->AddChild(title);
|
||||
|
||||
UIResizer* resizer = new UIResizer();
|
||||
this->resizer = resizer;
|
||||
resizer->SetSize(16, 16);
|
||||
resizer->SetDirection(3);
|
||||
resizer->SetBitmapName("유저인터페이스\\btn_resize.bmp");
|
||||
resizer->Move(this->geometry.width - 15, this->geometry.height - 15);
|
||||
resizer->SetColors(0xFFFF00FF, 0xFFFF00FF);
|
||||
this->AddChild(resizer);
|
||||
this->resizer = new UIResizer();
|
||||
this->resizer->SetSize(16, 16);
|
||||
static_cast<UIResizer*>(this->resizer)->SetDirection(3);
|
||||
static_cast<UIResizer*>(this->resizer)->SetBitmapName("유저인터페이스\\btn_resize.bmp");
|
||||
this->resizer->Move(this->geometry.width - 15, this->geometry.height - 15);
|
||||
static_cast<UIResizer*>(this->resizer)->SetColors(0xFFFF00FF, 0xFFFF00FF);
|
||||
this->AddChild(this->resizer);
|
||||
|
||||
UIScrollBar* scrollBar = new UIScrollBar();
|
||||
this->scrollBar = scrollBar;
|
||||
scrollBar->Configure(this->geometry.width - 15, 14, 1, this->geometry.height - 38);
|
||||
this->AddChild(scrollBar);
|
||||
this->scrollBar = new UIScrollBar();
|
||||
static_cast<UIScrollBar*>(this->scrollBar)->Configure(this->geometry.width - 15, 14, 1, this->geometry.height - 38);
|
||||
this->AddChild(this->scrollBar);
|
||||
|
||||
UIBitmapButton* button = new UIBitmapButton();
|
||||
this->buttons[0] = button;
|
||||
button->SetBitmap("유저인터페이스\\btn_close.bmp", 0, 0);
|
||||
button->SetBitmap("유저인터페이스\\btn_close_a.bmp", 1, 0);
|
||||
button->SetBitmap("유저인터페이스\\btn_close_b.bmp", 2, 0);
|
||||
button->SetSize(button->BitmapWidth(), button->BitmapHeight());
|
||||
button->Move(this->geometry.width - 61, this->geometry.height - 24);
|
||||
button->SetId(201);
|
||||
this->AddChild(button);
|
||||
this->buttons[0] = new UIBitmapButton();
|
||||
static_cast<UIBitmapButton*>(this->buttons[0])->SetBitmap("유저인터페이스\\btn_close.bmp", 0, 0);
|
||||
static_cast<UIBitmapButton*>(this->buttons[0])->SetBitmap("유저인터페이스\\btn_close_a.bmp", 1, 0);
|
||||
static_cast<UIBitmapButton*>(this->buttons[0])->SetBitmap("유저인터페이스\\btn_close_b.bmp", 2, 0);
|
||||
this->buttons[0]->SetSize(static_cast<UIBitmapButton*>(this->buttons[0])->BitmapWidth(), static_cast<UIBitmapButton*>(this->buttons[0])->BitmapHeight());
|
||||
this->buttons[0]->Move(this->geometry.width - 61, this->geometry.height - 24);
|
||||
this->buttons[0]->SetId(201);
|
||||
this->AddChild(this->buttons[0]);
|
||||
|
||||
this->columns = 1;
|
||||
this->visibleRows = (height - 38) / 32;
|
||||
|
|
@ -217,7 +214,11 @@ int UIMerchantItemLogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a
|
|||
switch (message) {
|
||||
case UM_COMMAND:
|
||||
if (a == 201) {
|
||||
g_windowMgr.CloseWindow(this->mode != 0 ? 258 : 257);
|
||||
if (this->mode != 0) {
|
||||
g_windowMgr.CloseWindow(WID_MERCHANTITEMLOGWND_MODE_1);
|
||||
} else {
|
||||
g_windowMgr.CloseWindow(WID_MERCHANTITEMLOGWND_MODE_0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case UM_RESIZE:
|
||||
|
|
@ -248,8 +249,8 @@ int UIMerchantItemLogWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a
|
|||
|
||||
lcData data;
|
||||
data.name = LookupPlayerName(b);
|
||||
data.itemName = item.DisplayName(0);
|
||||
data.time = c;
|
||||
data.itemName = item.DisplayName(0);
|
||||
data.characterId = b;
|
||||
this->logs.push_back(data);
|
||||
this->Invalidate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue