s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
ControlWidget
chevron_left
Editor Classes
class
ControlWidget
search
Constructors
functions
ControlWidget
Fields
crop_din
PaintBackground
Properties
data_object
CellAlignment
data_object
IncludeLabel
data_object
IsControlActive
data_object
IsControlButton
data_object
IsControlDisabled
data_object
IsControlHovered
data_object
IsWideMode
data_object
SerializedProperty
data_object
SupportsMultiEdit
data_object
Tint
lock
ValueHash
Methods
functions
FromClipboardString
lock
MinimumSizeHint
lock
OnContextMenu
functions
OnLabelContextMenu
lock
OnMultipleDifferentValues
lock
OnPaint
lock
OnValueChanged
lock
PaintControl
lock
PaintOver
lock
PaintUnder
functions
Prime
lock
PropertyFinishEdit
lock
PropertyStartEdit
lock
SizeHint
functions
StartEditing
functions
Think
functions
ToClipboardString
Static Fields
crop_din
ControlHighlightPrimary
crop_din
ControlHighlightSecondary
Static Methods
functions
Create
functions
TryCreateGenericObjectControlWidget
ControlWidget
A control widget is used to edit the value of a single SerializedProperty.
class
Editor
.
account_tree
extends
Widget
abstract
Sandbox.Tools
build
Constructors
1
ControlWidget
(
property
)
crop_din
Fields
1
PaintBackground
bool
data_object
Properties
11
CellAlignment
TextFlag
If none, when in a grid, the control will fill the entire cell
IncludeLabel
bool
If true (default) we'll include a label next to the control
IsControlActive
bool
IsControlButton
bool
IsControlDisabled
bool
IsControlHovered
bool
IsWideMode
bool
If true we prefer to be full inspector width with the label above us
SerializedProperty
SerializedProperty
SupportsMultiEdit
bool
Tint
Color
ValueHash
int
functions
Methods
17
FromClipboardString
(
clipboard
)
MinimumSizeHint
(
)
Vector2
OnContextMenu
(
e
)
OnLabelContextMenu
(
menu
)
Called when right clicking a label in a ControlSheet for this widget. This allows you to add advanced menu items for this widget at the top of the menu, before the default ones.
OnMultipleDifferentValues
(
state
)
OnPaint
(
)
OnValueChanged
(
)
PaintControl
(
)
PaintOver
(
)
PaintUnder
(
)
Prime
(
)
Should get called right after creation
PropertyFinishEdit
(
)
PropertyStartEdit
(
)
SizeHint
(
)
Vector2
StartEditing
(
)
Selects this widget and starts editing. Used when we want to focus on the widget in the inspector, like when double-clicking on something in a graph editor that maps to this widget.
Think
(
)
ToClipboardString
(
)
string
crop_din
Static Fields
2
ControlHighlightPrimary
Color
ControlHighlightSecondary
Color
functions
Static Methods
2
Create
(
property
)
ControlWidget
TryCreateGenericObjectControlWidget
(
property
)
ControlWidget
Inheritance
QObject
Widget
ControlWidget
AnglesControlWidget
BBoxControlWidget
BoolControlWidget
DropdownControlWidget
EnumControlWidget
GroupButtonControlWidget
MarginControlWidget
RectControlWidget
RotationControlWidget
SphereControlWidget
SpriteAnimationControlWidget
StringControlWidget
FloatControlWidget
IntegerControlWidget
TextAreaControlWidget
TransformControlWidget
VariantControlWidget
VectorControlWidget
VectorIntControlWidget
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.