Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
62 lines
1.7 KiB
C++
62 lines
1.7 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(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);
|
|
|
|
/* 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
|