Batch #5286 by zindokar: 0 byte-identical, 1 confirmed by peer review. - fn_11271 UIChatHisBox::PlaceNaviLinks: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
32 lines
788 B
C++
32 lines
788 B
C++
#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UINAVILINKBUTTON_H
|
|
#define RAGNAROK_SOURCE_UI_BUTTONS_UINAVILINKBUTTON_H
|
|
|
|
#include "UI/Buttons/UITextButton.h"
|
|
|
|
class NavigationDestination {
|
|
public:
|
|
virtual void Navigate(std::string map, int x, int y) = 0;
|
|
|
|
protected:
|
|
~NavigationDestination() = default;
|
|
};
|
|
|
|
class UINaviLinkButton : public UITextButton {
|
|
public:
|
|
UINaviLinkButton(UIWindowContext& windows, UIButtonContext& buttons, NavigationDestination& navigation);
|
|
~UINaviLinkButton() override;
|
|
void Slot25(int x, int y) override;
|
|
std::string Link();
|
|
/* 00F8 */ std::string link;
|
|
/* 0110 */ int column;
|
|
/* 0114 */ int line;
|
|
|
|
private:
|
|
NavigationDestination* m_navigation;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UINaviLinkButton) == 292);
|
|
#endif
|
|
|
|
#endif
|