rodecomp/Source/UI/UIBasicCtrl.h
ragnarok-clanker 214e3ad796 Decompile 4 functions in Source/UI/Buttons/UITextButton.cpp, Source/UI/UIStaticItem.h, ...
Batch #1836 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review.

- fn_11448 UIBasicItemCtrl::Slot28: logic confirmed by peer review
- fn_11449 UIBasicSkillCtrl::Slot28: logic confirmed by peer review
- fn_11456 UIMemberListBox::Slot28: logic confirmed by peer review
- fn_11458 UIStaticItem::Slot28: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-28 22:47:59 +00:00

38 lines
859 B
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 UIBasicItemCtrl : public UIWindow {
public:
void Slot28(int x, int y) override;
protected:
/* 007C */ unsigned char unknown_007C[0xC];
/* 0088 */ std::string m_tooltip;
/* 00A0 */ ItemInfo m_item;
ItemNaming* m_naming;
UIButtonContext* m_controls;
};
class UIBasicSkillCtrl : public UIWindow {
public:
void Slot28(int x, int y) override;
protected:
/* 007C */ int m_skillId;
ClientSkills* m_skills;
UIButtonContext* m_controls;
};
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