rodecomp/Source/UI/Buttons/UITVTextButton.h
ragnarok-clanker 7dbb23ed26 Decompile 8 functions in Source/UI/Buttons/UITextButton.cpp, Source/UI/Lists/UIListBox.cpp, ...
Batch #5841 by Yommy: 0 byte-identical, 8 confirmed by peer review.

- fn_11276 UIListBoxNavi::LineOffset: logic confirmed by peer review
- fn_11289 UIComboBoxV2Wnd::SelectedText: logic confirmed by peer review
- fn_11291 UIListBox::CopyText: logic confirmed by peer review
- fn_11292 UIListBox::TextLength: logic confirmed by peer review
- fn_11293 UITreeView::HideNodes: logic confirmed by peer review
- fn_11294 UIItemTagCtrl::SetTaggedText: logic confirmed by peer review
- fn_11296 UITreeView::AddNodeButtons: logic confirmed by peer review
- fn_11297 UITreeView::AddNodeLabel: logic confirmed by peer review

Peer-reviewed-by: bigodeira, tayoba, SapitoSucio, willerthal, ragnarok-clanker, KWDev
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 16:38:16 +00:00

49 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UITVTEXTBUTTON_H
#define RAGNAROK_SOURCE_UI_BUTTONS_UITVTEXTBUTTON_H
#include "UI/Buttons/UIButton.h"
#include <cstdint>
#include <string>
class UITVTextButton : public UIButton {
friend class UITreeView;
public:
// INLINED
UITVTextButton(UIWindowContext& windowContext, UIButtonContext& buttonContext)
: UIButton(windowContext, buttonContext), unknown_00B4(0), unknown_00B5(0), unknown_00B6(0), m_border(0), m_fill(0), m_fillColor(0xFFFFFF),
m_textColor(0), m_outlineColor(0xFFFFFF), m_highlightColor(0), m_outlined(0), m_fontHeight(12), m_fontFamily(0), m_value(0) {
}
void Paint() override;
void Slot25(int x, int y) override;
void Slot26(int x, int y) override;
void Slot27(int x, int y) override;
void ResetCursor(int x, int y) override;
void Slot31(int x, int y) override;
void Slot32(int x, int y) override;
void Slot33(int x, int y) override;
void ResizeToText();
void SetLabel(std::string text);
protected:
/* 00B4 */ unsigned char unknown_00B4;
/* 00B5 */ unsigned char unknown_00B5;
/* 00B6 */ unsigned char unknown_00B6;
/* 00B7 */ unsigned char m_border;
/* 00B8 */ unsigned char m_fill;
/* 00B9 */ unsigned char unknown_00B9[0x3];
/* 00BC */ std::uint32_t m_borderColor;
/* 00C0 */ std::uint32_t m_fillColor;
/* 00C4 */ std::uint32_t m_textColor;
/* 00C8 */ std::uint32_t m_outlineColor;
/* 00CC */ std::uint32_t m_highlightColor;
/* 00D0 */ unsigned char m_outlined;
/* 00D1 */ unsigned char unknown_00D1[0x3];
/* 00D4 */ int m_fontHeight;
/* 00D8 */ int m_fontFamily;
/* 00DC */ std::string unknown_00DC;
/* 00F4 */ int m_value;
};
#endif