rodecomp/Source/UI/Buttons/UIRadioButton.h
ragnarok-clanker f289f2f909 Decompile 4 functions in Source/UI/Window/UIControl.cpp, Source/UI/Window/UIControl.h, ...
Batch #4117 by youko: 0 byte-identical, 4 confirmed by peer review.

- fn_14407 CUIBasicButton::Resize: logic confirmed by peer review
- fn_14411 CUICheckBox::Paint: logic confirmed by peer review
- fn_14412 CUICheckBox::Slot25: logic confirmed by peer review
- fn_14413 CUICheckBox::Slot31: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, superintelligence, KWDev, Yommy, tayoba
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 01:20:02 +00:00

34 lines
915 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);
void Paint() override;
void Slot25(int x, int y) override;
void Slot31(int x, int y) override;
};
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