Batch #10230 by ragnarok-clanker: forced by an admin (9 lower score(s), 42 changed function(s)); checked with 339 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Client/Session.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/UI/Shortcuts/ShortcutDetails.h, Source/UI/Shortcuts/ShortcutPainting.h, Source/UI/Shortcuts/ShortcutPress.h, Source/UI/Shortcuts/UIQuickSlotWnd.h, Source/UI/UIBasicCtrl.h, Source/Network/Packets/SkillUpdatePacket.h. Deletes: Source/Network/Packets/SkillUpdatePacket.h
49 lines
1.4 KiB
C++
49 lines
1.4 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>
|
|
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
|
|
class UIBasicItemCtrl : public UIWindow {
|
|
public:
|
|
UIBasicItemCtrl(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();
|
|
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;
|
|
/* 0080 */ 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
|