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
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
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
Classes
Tab
chevron_left Classes
class
Tab

Constructors

functionsTab

Properties

data_objectBardata_objectBuildContextMenudata_objectCanClosedata_objectCountdata_objectIcondata_objectIconTexturedata_objectIsIconOnlydata_objectSelecteddata_objectTextdata_objectWantsDrag

Methods

functionsOnButtonTypedlockOnClickfunctionsOnDeletedlockOnDraglockOnDragCancellockOnDragEndlockOnDragStartlockOnMiddleClicklockOnMouseDownlockOnRightClick
Tab
A selectable tab belonging to a Sandbox.UI.TabBar.
class Sandbox.UI .account_tree extends Panel
Sandbox.Engine

build Constructors 1

Tab ()

data_object Properties 10

Bar
TabBar
The bar containing this tab.
BuildContextMenu
Action`1
Populate the right-click menu. A Close option is supplied for closable tabs.
CanClose
bool
Whether to show the close button and allow middle-click closing.
Count
Nullable`1
Optional count badge. Null hides the badge; zero is displayed.
Icon
string
Optional Material icon.
IconTexture
Texture
Optional texture, taking precedence over the icon. The caller owns the texture.
IsIconOnly
bool
Whether the bar is currently hiding this tab's title to save space.
Selected
bool
Whether this is the selected tab.
Text
string
Text displayed on the tab.
WantsDrag
bool

functions Methods 10

OnButtonTyped (e)
OnClick (e)
OnDeleted ()
OnDrag (e)
OnDragCancel (e)
OnDragEnd (e)
OnDragStart (e)
OnMiddleClick (e)
OnMouseDown (e)
OnRightClick (e)

Inheritance

Panel
Tab
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