rodecomp/Source/Contents/Hotkeys/HotkeyInfo.h
ragnarok-clanker 0d85613875 Decompile fn_12663 (UIHotKeyWnd::Paint)
Batch #17651 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_12663 UIHotKeyWnd::Paint: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-12 01:49:08 +00:00

40 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#define RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#include "Utility/Text/FormatString.h"
#include <cstddef>
#include <string>
class LuaScript;
struct HotkeyInfo {
/* 0000 */ int key1;
/* 0004 */ int key2;
/* 0008 */ std::string text;
/* 0020 */ std::string description;
HotkeyInfo();
HotkeyInfo(const HotkeyInfo& other);
HotkeyInfo(HotkeyInfo&& other) = default;
HotkeyInfo& operator=(const HotkeyInfo& other) = default;
HotkeyInfo& operator=(HotkeyInfo&& other) = default;
// OFFSET: 0x005F7C30
// FUNCTION: fn_04053
~HotkeyInfo() = default;
};
HotkeyInfo GetHotkeyInfo(LuaScript& script, int tab, int index);
int HotkeyCount(LuaScript& script, int tab);
std::string SkillTooltipPercent(const char* hotkey, const char* name, int level, int sp, int ap);
std::string SkillTooltipFlat(const char* hotkey, const char* name, int level, int sp, int ap);
std::string SkillTooltip(const char* hotkey, const char* name, int level, int sp, int ap, bool percent);
bool SkillUsesPercentSp(int id);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(HotkeyInfo) == 56);
static_assert(offsetof(HotkeyInfo, text) == 8);
static_assert(offsetof(HotkeyInfo, description) == 0x0020);
#endif
#endif