Batch #10201 by ragnarok-clanker: forced by an admin (14 lower score(s), 95 changed function(s)); checked with 256 compiled unit(s), including every includer of Source/Contents/Items/ItemInfo.h, Source/Contents/Items/ItemNaming.h, Source/UI/Shortcuts/ShortcutTooltip.h, Source/UI/Shortcuts/ShortcutUse.h, Source/UI/Text/ItemLinkDisplay.h, Source/UI/Text/UITextViewer.h, Source/UI/UIBasicCtrl.h.
52 lines
1.5 KiB
C++
52 lines
1.5 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 ClientSkills;
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
|
|
class UIBasicItemCtrl : public UIWindow {
|
|
public:
|
|
UIBasicItemCtrl(UIWindowContext& windows, 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;
|
|
void* unknown_naming;
|
|
void* unknown_controls;
|
|
WindowManagerWindows* m_windows;
|
|
};
|
|
|
|
class UIBasicSkillCtrl : public UIWindow {
|
|
public:
|
|
UIBasicSkillCtrl(UIWindowContext& windows, ClientSkills& skills);
|
|
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;
|
|
void* unknown_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
|