Batch #7851 by Yommy: 0 byte-identical, 7 confirmed by peer review. - fn_11021 TableBox::TableBox: logic confirmed by peer review - fn_11084 UITableBox::UITableBox: logic confirmed by peer review - fn_11026 UIBasicItemCtrl::UIBasicItemCtrl: logic confirmed by peer review - fn_11027 UIBasicSkillCtrl::UIBasicSkillCtrl: logic confirmed by peer review - fn_11028 UIBmpRadioBtn::UIBmpRadioBtn: logic confirmed by peer review - fn_11029 UICaptchaImage::UICaptchaImage: logic confirmed by peer review - fn_11033 UIComboBox::UIComboBox: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Buttons/UIBmpRadioBtn.cpp, Source/UI/Buttons/UIItemMoveInfo.cpp, Source/UI/Buttons/UISlotBmpButton.cpp, Source/UI/Edit/UIEditCtrl_Currency.cpp, Source/UI/Lists/TableBox.cpp, Source/UI/Lists/UIComboBoxV2Wnd.cpp, Source/UI/Lists/UIListBoxNavi.cpp, Source/UI/Lists/UIPackageBoxNameList.cpp, Source/UI/Lists/UITreeView.cpp, Source/UI/UIBasicCtrl.cpp, Source/UI/UIStaticItem.cpp
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_UIBASICCTRL_H
|
|
#define RAGNAROK_SOURCE_UI_UIBASICCTRL_H
|
|
|
|
#include "Contents/Items/ItemInfo.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
#include <string>
|
|
|
|
struct ItemNaming;
|
|
struct ClientSkills;
|
|
struct UIButtonContext;
|
|
class WindowManagerWindows;
|
|
|
|
class UIBasicItemCtrl : public UIWindow {
|
|
public:
|
|
UIBasicItemCtrl(UIWindowContext& windows, ItemNaming& naming, UIButtonContext& controls, WindowManagerWindows& windowList);
|
|
void Slot10(int argument1, int argument2, std::intptr_t argument3) override;
|
|
void Paint() override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot28(int x, int y) override;
|
|
void Slot32(int x, int y) override;
|
|
void DrawItemIcon(int x, int y, int unused, bool compact);
|
|
|
|
protected:
|
|
/* 007C */ int m_itemType;
|
|
/* 0080 */ int m_itemMask;
|
|
/* 0084 */ unsigned char m_identified;
|
|
/* 0088 */ std::string m_tooltip;
|
|
/* 00A0 */ ITEM_INFO m_item;
|
|
ItemNaming* m_naming;
|
|
UIButtonContext* m_controls;
|
|
WindowManagerWindows* m_windows;
|
|
};
|
|
|
|
class UIBasicSkillCtrl : public UIWindow {
|
|
public:
|
|
UIBasicSkillCtrl(UIWindowContext& windows, ClientSkills& skills, UIButtonContext& controls);
|
|
void Slot10(int argument1, int argument2, std::intptr_t argument3) override;
|
|
void Paint() override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot28(int x, int y) override;
|
|
void Slot32(int x, int y) override;
|
|
|
|
protected:
|
|
/* 007C */ int m_skillId;
|
|
ClientSkills* m_skills;
|
|
UIButtonContext* m_controls;
|
|
int m_level;
|
|
};
|
|
|
|
std::string SkillUseTextPercent(const char* name, int level, int sp, int ap);
|
|
std::string SkillUseTextFlat(const char* name, int level, int sp, int ap);
|
|
|
|
#endif
|