Cyrus Mod Loader
Loading...
Searching...
No Matches
ControlText.h
1#pragma once
2#include <Cyrus/Classes/Window.h>
3#include <Cyrus/shared.h>
4
6
7#pragma pack(push, 1)
22class ControlText : public Window {
23private:
24 std::wstring m_sText; // 0x248
25 std::wstring m_sTooltip; // 0x268
26 int32_t pad; // 0x288
27 bool m_bEnableToggle; // 0x28C
28 bool m_bUseDropShadow; // 0x28D
29 bool m_bUseOutline; // 0x28E
30 bool m_bEnableWordWrap; // 0x28F
31 int m_nLeadingAdjust; // 0x290
32
33public:
39 std::wstring getText() const { return m_sText; }
40
46 void setText(const std::wstring &text) { m_sText = text; }
47
53 std::wstring getTooltip() const { return m_sTooltip; }
54
60 void setTooltip(const std::wstring &tooltip) { m_sTooltip = tooltip; }
61
67 bool isToggleEnabled() const { return m_bEnableToggle; }
68
74 void setToggleEnabled(bool enableToggle) { m_bEnableToggle = enableToggle; }
75
81 bool isDropShadowUsed() const { return m_bUseDropShadow; }
82
88 void setDropShadowUsed(bool useDropShadow) {
89 m_bUseDropShadow = useDropShadow;
90 }
91
97 bool isOutlineUsed() const { return m_bUseOutline; }
98
104 void setOutlineUsed(bool useOutline) { m_bUseOutline = useOutline; }
105
111 bool isWordWrapEnabled() const { return m_bEnableWordWrap; }
112
118 void setWordWrapEnabled(bool enableWordWrap) {
119 m_bEnableWordWrap = enableWordWrap;
120 }
121
127 int getLeadingAdjust() const { return m_nLeadingAdjust; }
128
134 void setLeadingAdjust(int leadingAdjust) { m_nLeadingAdjust = leadingAdjust; }
135
136private:
137 friend struct ControlTextLayout;
138};
139#pragma pack(pop)
140
A class that represents a text-based control element in a window.
Definition ControlText.h:22
void setOutlineUsed(bool useOutline)
Enable or disable outline.
Definition ControlText.h:104
std::wstring getTooltip() const
Get the tooltip text of the control.
Definition ControlText.h:53
bool isOutlineUsed() const
Check if outline is used.
Definition ControlText.h:97
void setText(const std::wstring &text)
Set the text of the control.
Definition ControlText.h:46
void setWordWrapEnabled(bool enableWordWrap)
Enable or disable word wrap.
Definition ControlText.h:118
void setDropShadowUsed(bool useDropShadow)
Enable or disable drop shadow.
Definition ControlText.h:88
void setToggleEnabled(bool enableToggle)
Enable or disable toggle.
Definition ControlText.h:74
bool isWordWrapEnabled() const
Check if word wrap is enabled.
Definition ControlText.h:111
std::wstring getText() const
Get the text of the control.
Definition ControlText.h:39
int getLeadingAdjust() const
Get the leading adjustment value.
Definition ControlText.h:127
bool isToggleEnabled() const
Check if toggle is enabled.
Definition ControlText.h:67
void setLeadingAdjust(int leadingAdjust)
Set the leading adjustment value.
Definition ControlText.h:134
bool isDropShadowUsed() const
Check if drop shadow is used.
Definition ControlText.h:81
void setTooltip(const std::wstring &tooltip)
Set the tooltip text of the control.
Definition ControlText.h:60
Represents a Wizard101 Window, think anything you see on screen that is not a 3D model.
Definition Window.h:45
Definition ControlText.h:141
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_sTooltip, 0x268)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_sText, 0x248)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_bEnableWordWrap, 0x28F)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, pad, 0x288)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_bEnableToggle, 0x28C)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_nLeadingAdjust, 0x290)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_bUseOutline, 0x28E)
DEFINE_OFFSET_AND_STATIC_ASSERT(ControlText, m_bUseDropShadow, 0x28D)