s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
results
Game Jam III
Crowned
Sat 3 Oct
Winner
🏆 GAMMA ☢ TEAM
Theme
One More Round
This jam is over. The next one will show up here.
See the results
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Editor Classes
Option
chevron_left
Editor Classes
class
Option
Constructors
functions
Option
Fields
crop_din
FetchCheckedState
crop_din
Toggled
crop_din
Triggered
Properties
data_object
Checkable
data_object
Checked
data_object
Enabled
data_object
Icon
data_object
IconImage
data_object
IconText
remove_circle
Shortcut
data_object
ShortcutName
remove_circle
StatusText
data_object
StatusTip
data_object
Text
remove_circle
Tooltip
data_object
ToolTip
Methods
lock
OnToggled
lock
OnTriggered
functions
SetIcon
Option
class
Editor
.
account_tree
extends
QObject
Sandbox.Tools
build
Constructors
1
Option
(
parent
,
title
,
icon
,
action
)
crop_din
Fields
3
FetchCheckedState
Func`1
A method to get the checked state. Called periodically to update the status
Toggled
Action`1
Triggered
Action
data_object
Properties
13
Checkable
bool
Whether this option is a toggle option. Editor.Option.Checked.
Checked
bool
Whether this option is toggled/checked. Editor.Option.Checkable.
Enabled
bool
Whether this option can be clicked. Will also be visually different.
Icon
string
The icon for this option.
IconImage
Pixmap
The icon for this option.
IconText
string
Text to display if Editor.Option.Text is empty.
Shortcut
obsolete
string
ShortcutName
string
StatusText
obsolete
string
StatusTip
string
Text
string
Text for this option.
Tooltip
obsolete
string
ToolTip
string
functions
Methods
3
OnToggled
(
b
)
Called when this option was toggled.
OnTriggered
(
)
Called when this option was clicked..
SetIcon
(
pixmap
)
Sets an icon for the option via a raw image.
Inheritance
QObject
Option
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.