32 lines
889 B
C++
32 lines
889 B
C++
#ifndef RAGNAROK_SOURCE_CLIENT_MODETOOLTIP_H
|
|
#define RAGNAROK_SOURCE_CLIENT_MODETOOLTIP_H
|
|
|
|
#include <cstdint>
|
|
#include <list>
|
|
|
|
class UITransBalloonText;
|
|
class UIWindow;
|
|
struct UIWindowContext;
|
|
struct BalloonTextContext;
|
|
struct WindowOrdering;
|
|
struct WindowRetirement;
|
|
|
|
// Borrowed CMode tooltip pointer, timestamp and actual
|
|
// manager render list.
|
|
struct ModeTooltip {
|
|
UITransBalloonText*& window;
|
|
std::uint32_t& tick;
|
|
UIWindowContext& windows;
|
|
BalloonTextContext& text;
|
|
std::list<UIWindow*>& rendered;
|
|
WindowOrdering& ordering;
|
|
const int& screenWidth;
|
|
const int& screenHeight;
|
|
|
|
void Show(const char* value, int x, int y, std::uint32_t color, unsigned char option, unsigned char convert);
|
|
// Schedules the tooltip for manager retirement 100 ms after Show; the
|
|
// deadline uses wrapping 32-bit tick arithmetic.
|
|
void Expire(WindowRetirement& retirement);
|
|
};
|
|
|
|
#endif
|