rodecomp/Source/UI/Lists/UIComboBoxDefWnd.h
ragnarok-clanker 38e97c6adf Decompile fn_11217 (UIItemTagCtrl::CanInsertTag)
Batch #5025 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_11217 UIItemTagCtrl::CanInsertTag: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-10-30 06:55:58 +00:00

71 lines
1.9 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;
};
class UIComboBox_BmpWnd : public UIComboBoxDefWnd {
public:
void Create(int width, int height, const char* path, const char* name);
std::string name;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIComboBoxDefWnd) == 176);
static_assert(sizeof(UIComboBoxDef2Wnd) == 192);
#endif
#endif