rodecomp/Source/UI/Shortcuts/ShortcutControls.cpp
ragnarok-clanker 7ec5f12cf0 Decompile fn_12654 (UIShortCutWnd::Slot15)
Batch #11634 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_12654 UIShortCutWnd::Slot15: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 03:59:44 +00:00

84 lines
3.6 KiB
C++

#include "Contents/MessageTable.h"
#include "Client/Session.h"
#include "UI/Shortcuts/UIShortCutWnd.h"
#include "UI/Buttons/UIBitmapButton.h"
#include "UI/Buttons/UICheckBox.h"
#include <algorithm>
#include <iterator>
#include <new>
// OFFSET: 0x0092A190
// FUNCTION: fn_12654
void UIShortCutWnd::Slot15(int, int) {
this->AddCloseButton("F12", 0)->Move(this->geometry.width - 10, 0);
for (int index = 0; index < 36; ++index) {
this->m_slots[index] = nullptr;
}
this->m_bank = new (std::nothrow) UICheckBox();
this->m_bank->SetSize(10, 26);
this->m_bank->SetImages(
"유저인터페이스\\shortcut_2_bts.bmp",
"유저인터페이스\\shortcut_1_bts.bmp", ""
);
this->m_bank->SetId(549);
this->m_bank->Move(3, 4);
this->m_bank->SetChecked(g_session.GetOption(10));
this->m_bank->SetTooltip(LookupMessage(3596));
this->AddChild(this->m_bank);
this->m_decrease = new UIBitmapButton();
this->m_decrease->SetBitmap("유저인터페이스\\Shortcut\\btn_minus_normal.bmp", 0, 0);
this->m_decrease->SetBitmap("유저인터페이스\\Shortcut\\btn_minus_over.bmp", 1, 0);
this->m_decrease->SetBitmap("유저인터페이스\\Shortcut\\btn_minus_press.bmp", 2, 0);
this->m_decrease->SetSize(this->m_decrease->BitmapWidth(), this->m_decrease->BitmapHeight());
this->m_decrease->SetId(217);
this->m_decrease->SetDisabled(0);
this->m_decrease->Invalidate();
this->m_decrease->Move(276, 0);
this->m_decrease->Enable(0);
this->AddChild(this->m_decrease);
this->m_increase = new UIBitmapButton();
this->m_increase->SetBitmap("유저인터페이스\\Shortcut\\btn_plus_normal.bmp", 0, 0);
this->m_increase->SetBitmap("유저인터페이스\\Shortcut\\btn_plus_over.bmp", 1, 0);
this->m_increase->SetBitmap("유저인터페이스\\Shortcut\\btn_plus_press.bmp", 2, 0);
this->m_increase->SetBitmap("유저인터페이스\\Shortcut\\btn_plus_disable.bmp", 3, 0);
this->m_increase->SetSize(this->m_increase->BitmapWidth(), this->m_increase->BitmapHeight());
this->m_increase->SetId(216);
this->m_increase->SetDisabled(0);
this->m_increase->Invalidate();
this->m_increase->Move(276, 19);
this->m_increase->Enable(1);
this->AddChild(this->m_increase);
std::fill(std::begin(this->m_itemSlots), std::end(this->m_itemSlots), nullptr);
this->m_showItems = new UIBitmapButton();
this->m_showItems->SetBitmap("유저인터페이스\\Shortcut\\btn_open_itemslot_normal.bmp", 0, 0);
this->m_showItems->SetBitmap("유저인터페이스\\Shortcut\\btn_open_itemslot_normal.bmp", 1, 0);
this->m_showItems->SetBitmap("유저인터페이스\\Shortcut\\btn_open_itemslot_press.bmp", 2, 0);
this->m_showItems->SetSize(this->m_showItems->BitmapWidth(), this->m_showItems->BitmapHeight());
this->m_showItems->SetId(588);
this->m_showItems->SetDisabled(1);
this->m_showItems->Invalidate();
this->m_showItems->Move(247, 33);
this->m_showItems->Enable(0);
this->AddChild(this->m_showItems);
this->m_hideItems = new UIBitmapButton();
this->m_hideItems->SetBitmap("유저인터페이스\\Shortcut\\btn_close_itemslot_normal.bmp", 0, 0);
this->m_hideItems->SetBitmap("유저인터페이스\\Shortcut\\btn_close_itemslot_normal.bmp", 1, 0);
this->m_hideItems->SetBitmap("유저인터페이스\\Shortcut\\btn_close_itemslot_press.bmp", 2, 0);
this->m_hideItems->SetSize(this->m_hideItems->BitmapWidth(), this->m_hideItems->BitmapHeight());
this->m_hideItems->SetId(589);
this->m_hideItems->SetDisabled(0);
this->m_hideItems->Invalidate();
this->m_hideItems->Move(247, 33);
this->m_hideItems->Enable(1);
this->AddChild(this->m_hideItems);
this->SendMsg(nullptr, 23, 0, 0, 0, 0);
}