Batch #11455 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_11353 UIComboBoxEx2::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, dori, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_LISTS_UICOMBOBOXEX_H
|
|
#define RAGNAROK_SOURCE_UI_LISTS_UICOMBOBOXEX_H
|
|
|
|
#include "Resource/TextureNames.h"
|
|
#include "UI/Lists/UIListBoxEx.h"
|
|
|
|
class UIComboBoxEx : public UIListBoxEx {
|
|
public:
|
|
UIComboBoxEx();
|
|
~UIComboBoxEx() override;
|
|
void Resize(int width, int height) override;
|
|
void Slot15(int width, int height) override;
|
|
void Paint() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot27(int x, int y) override;
|
|
void Slot31(int x, int y) override;
|
|
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
|
void Configure(int x, int y, int width, int height, unsigned char transparent) override;
|
|
void Refresh() override;
|
|
|
|
/* 00C0 */ int targetId;
|
|
|
|
protected:
|
|
void DrawRows(bool centered);
|
|
};
|
|
|
|
class UIComboBoxEx2 : public UIComboBoxEx {
|
|
public:
|
|
UIComboBoxEx2();
|
|
~UIComboBoxEx2() override;
|
|
void Resize(int width, int height) override;
|
|
void Slot15(int width, int height) override;
|
|
void Paint() override;
|
|
|
|
/* 00C4 */ int alignment;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIComboBoxEx) == 0xC4);
|
|
static_assert(sizeof(UIComboBoxEx2) == 0xC8);
|
|
#endif
|
|
|
|
#endif
|