rodecomp/Source/UI/UIBasicCtrl.h
ragnarok-clanker 3df1447b59 Decompile 3 functions in Source/UI/UIBarGraph.cpp, Source/UI/UIBarGraph.h, ...
Batch #5666 by Yommy: 0 byte-identical, 3 confirmed by peer review.

- fn_11343 UIBasicItemCtrl::Paint: logic confirmed by peer review
- fn_11344 UIBasicSkillCtrl::Paint: logic confirmed by peer review
- fn_11346 UICaptchaImage::Paint: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Snow, SapitoSucio
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 14:25:25 +00:00

47 lines
1.1 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:
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 */ unsigned char unknown_007C[0xC];
/* 0088 */ std::string m_tooltip;
/* 00A0 */ ITEM_INFO m_item;
ItemNaming* m_naming;
UIButtonContext* m_controls;
WindowManagerWindows* m_windows;
};
class UIBasicSkillCtrl : public UIWindow {
public:
void Paint() override;
void Slot26(int x, int y) override;
void Slot28(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