Batch #8096 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_11962 UINpcTextEditDialogWnd::UINpcTextEditDialogWnd: logic confirmed by peer review Peer-reviewed-by: Yommy, secret, pedrao Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_DIALOGS_UITIPBOXWND_H
|
|
#define RAGNAROK_SOURCE_UI_DIALOGS_UITIPBOXWND_H
|
|
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct TipBoxAnimation {
|
|
/* 0000 */ std::uint32_t moveStart;
|
|
/* 0004 */ std::uint32_t blinkStart;
|
|
/* 0008 */ int kind;
|
|
/* 000C */ int blink;
|
|
/* 0010 */ float x;
|
|
/* 0014 */ float y;
|
|
/* 0018 */ int fromX;
|
|
/* 001C */ int fromY;
|
|
/* 0020 */ int toX;
|
|
/* 0024 */ int toY;
|
|
/* 0028 */ float duration;
|
|
/* 002C */ bool visible;
|
|
};
|
|
|
|
struct TipBoxDot {
|
|
/* 0000 */ float x;
|
|
/* 0004 */ float y;
|
|
/* 0008 */ bool visible;
|
|
};
|
|
|
|
class UITipboxWnd : public UIFrameWnd {
|
|
public:
|
|
UITipboxWnd(UIWindowContext& windows, UIFrameContext& frames);
|
|
void ShowTip(int id);
|
|
void TrimAt(std::string& text, const char* marker);
|
|
void UpdateAnimations();
|
|
bool BuildAnimations();
|
|
|
|
/* 00B4 */ int unknown_00B4;
|
|
/* 00B8 */ int unknown_00B8;
|
|
/* 00BC */ int unknown_00BC;
|
|
/* 00C0 */ int unknown_00C0;
|
|
/* 00C4 */ int unknown_00C4;
|
|
/* 00C8 */ int unknown_00C8;
|
|
/* 00CC */ int unknown_00CC;
|
|
/* 00D0 */ int unknown_00D0;
|
|
/* 00D4 */ int unknown_00D4;
|
|
/* 00D8 */ int unknown_00D8;
|
|
/* 00DC */ std::vector<TipBoxAnimation> m_animations;
|
|
/* 00E8 */ std::vector<TipBoxDot> m_dots;
|
|
/* 00F4 */ std::uint32_t m_buildTime;
|
|
/* 00F8 */ std::uint32_t m_frameTime;
|
|
/* 00FC */ bool unknown_00FC;
|
|
/* 0100 */ int unknown_0100;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(TipBoxAnimation) == 0x30);
|
|
static_assert(sizeof(TipBoxDot) == 0xC);
|
|
#endif
|
|
|
|
#endif
|