Batch #10192 by ragnarok-clanker: forced by an admin (20 lower score(s), 81 changed function(s)); checked with 87 compiled unit(s), including every includer of Source/UI/CashShop/UICashShopWnd.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Dialogs/UIEditctrlWnd.h, Source/UI/Dialogs/UIEmailAddressWnd.h, Source/UI/Dialogs/UIGraffiStrboxWnd.h, Source/UI/Dialogs/UINpcEditDialogWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UIProhibitListWnd.h, Source/UI/Dialogs/UITipboxWnd.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIEditCtrl_Currency.h, Source/UI/Guild/UIGuildHelperWnd.h, Source/UI/Lists/UITreeView.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIPartySettingWnd.h, Source/UI/Party/UIRegisterPartyWnd.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIReputeWnd.h, Source/UI/Window/UIAccountLimitedToolWnd.h, Source/UI/Window/UIBank_NewWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICntWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UISeekPartyListWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h.
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
#include "UI/Dialogs/UIGraffiStrboxWnd.h"
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
#include "UI/Edit/UIEditCtrl.h"
|
|
#include "UI/Window/InputFocus.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
#include <string>
|
|
|
|
// OFFSET: 0x008E1210
|
|
// FUNCTION: fn_12174
|
|
void UIGraffiStrboxWnd::Slot15(int, int) {
|
|
this->edit = new UIEditCtrl(*this->m_context);
|
|
this->edit->SetSize(240, 16);
|
|
this->edit->Move(22, 50);
|
|
this->edit->maximum = 20;
|
|
this->edit->Background(242, 242, 242);
|
|
this->AddChild(this->edit);
|
|
g_windowMgr.SetFocus(this->edit);
|
|
|
|
const std::string prefix("유저인터페이스\\");
|
|
const char* names[2][3] = {{"btn_ok", "btn_ok_a", "btn_ok_b"}, {"btn_cancel", "btn_cancel_a", "btn_cancel_b"}};
|
|
int ids[2] = {184, 185};
|
|
int positions[2][2] = {{189, 96}, {234, 96}};
|
|
|
|
for (int index = 0; index < 2; ++index) {
|
|
auto* button = new UIBitmapButton(*this->m_context);
|
|
button->SetBitmap((prefix + names[index][0] + ".bmp").c_str(), 0, 0);
|
|
button->SetBitmap((prefix + names[index][1] + ".bmp").c_str(), 1, 0);
|
|
button->SetBitmap((prefix + names[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->m_message0 = 184;
|
|
}
|
|
|
|
// OFFSET: 0x008C7C50
|
|
// FUNCTION: fn_11942
|
|
UIGraffiStrboxWnd::UIGraffiStrboxWnd(UIWindowContext& windows)
|
|
: UIFrameWnd(windows, 0) {
|
|
}
|