rodecomp/Source/UI/Buttons/UIRadioButton.h
ragnarok-clanker 5d806a2df9 Decompile 5 functions in Source/UI/GameSettings/GameSettingsUI.cpp, Source/UI/GameSettings/GameSettingsUI.h, ...
Batch #4076 by youko: 5 byte-identical, 0 confirmed by peer review.

- fn_15411 CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderAdapter>::Paint: byte-identical
- fn_15412 CUIListBoxEx<GameSettingsUI::CUIComboItem,DisplayMode>::Paint: byte-identical
- fn_15413 CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderBackend>::Paint: byte-identical
- fn_15414 CUIListBoxEx<GameSettingsUI::CUIComboItem,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::Paint: byte-identical
- fn_15415 CUIListBoxEx<GameSettingsUI::CUIOptionItem,TALKTYPE>::Paint: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-10-30 00:41:49 +00:00

31 lines
814 B
C++

#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UIRADIOBUTTON_H
#define RAGNAROK_SOURCE_UI_BUTTONS_UIRADIOBUTTON_H
#include "UI/Window/UIControl.h"
#include <cstddef>
#include <functional>
class CUICheckBox : public CUIImageButton {
public:
/* 0120 */ bool checked;
/* 0128 */ std::function<void(bool)> onCheck;
void SetOnCheck(std::function<void(bool)> callback);
};
class CUIRadioButton : public CUICheckBox {
public:
/* 0150 */ std::function<void(CUIRadioButton*)> onSelect;
void SetOnSelect(std::function<void(CUIRadioButton*)> callback);
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CUICheckBox, onCheck) == 0x128);
static_assert(sizeof(CUICheckBox) == 0x150);
static_assert(offsetof(CUIRadioButton, onSelect) == 0x150);
static_assert(sizeof(CUIRadioButton) == 0x178);
#endif
#endif