s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsresults

Game Jam III

Crowned Sat 3 Oct
Winner 🏆 GAMMA ☢ TEAM
ThemeOne More Round

This jam is over. The next one will show up here.

See the results
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Editor Classes
Option
chevron_left Editor Classes
class
Option

Constructors

functionsOption

Fields

crop_dinFetchCheckedStatecrop_dinToggledcrop_dinTriggered

Properties

data_objectCheckabledata_objectCheckeddata_objectEnableddata_objectIcondata_objectIconImagedata_objectIconTextremove_circleShortcutdata_objectShortcutNameremove_circleStatusTextdata_objectStatusTipdata_objectTextremove_circleTooltipdata_objectToolTip

Methods

lockOnToggledlockOnTriggeredfunctionsSetIcon
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
obsoletestring
ShortcutName
string
StatusText
obsoletestring
StatusTip
string
Text
string
Text for this option.
Tooltip
obsoletestring
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter