rodecomp/Source/UI/Lists/UIComboBoxDefWnd.h
ragnarok-clanker 4e609d8652 Decompile fn_11623 (UIComboBoxDefWnd::Clear)
Batch #4894 by KWDev: 0 byte-identical, 1 confirmed by peer review.

- fn_11623 UIComboBoxDefWnd::Clear: logic confirmed by peer review

Peer-reviewed-by: youko, Millenium
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 05:53:35 +00:00

64 lines
1.8 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_LISTS_UICOMBOBOXDEFWND_H
#define RAGNAROK_SOURCE_UI_LISTS_UICOMBOBOXDEFWND_H
#include "UI/Lists/UIComboBoxEx.h"
#include "UI/Window/UIWindow.h"
class UIBitmapButton;
class UIStaticText;
struct UIButtonContext;
struct UIComboBoxHeaderContext {
UIComboBoxContext& combo;
UIButtonContext& buttons;
};
class UIComboBoxDefWnd : public UIWindow {
public:
UIComboBoxDefWnd();
UIComboBoxDefWnd(UIWindowContext& windows, UIComboBoxHeaderContext& controls);
~UIComboBoxDefWnd() override;
void Slot15(int width, int height) override;
void Paint() 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 AddOption(std::string text, std::uint32_t color);
void Select(int index);
void Clear();
/* 007C */ UIBitmapButton* button;
/* 0080 */ UIComboBoxEx* list;
/* 0084 */ UIStaticText* label;
/* 0088 */ unsigned char borderless;
/* 0089 */ unsigned char expanded;
/* 008C */ int red;
/* 0090 */ int green;
/* 0094 */ int blue;
/* 0098 */ int borderRed;
/* 009C */ int borderGreen;
/* 00A0 */ int borderBlue;
/* 00A4 */ int dropdownHeight;
protected:
UIComboBoxHeaderContext* m_controls;
};
class UIComboBoxDef2Wnd : public UIComboBoxDefWnd {
public:
UIComboBoxDef2Wnd(UIWindowContext& windows, UIComboBoxHeaderContext& controls);
~UIComboBoxDef2Wnd() override;
void Slot15(int width, int height) override;
void Paint() override;
/* 00A8 */ int skin;
/* 00AC */ int alignment;
/* 00B0 */ int textOffset;
/* 00B4 */ int previousTextX;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIComboBoxDefWnd) == 176);
static_assert(sizeof(UIComboBoxDef2Wnd) == 192);
#endif
#endif