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
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
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
Classes
Tab
chevron_left
Classes
class
Tab
Constructors
functions
Tab
Properties
data_object
Bar
data_object
BuildContextMenu
data_object
CanClose
data_object
Count
data_object
Icon
data_object
IconTexture
data_object
IsIconOnly
data_object
Selected
data_object
Text
data_object
WantsDrag
Methods
functions
OnButtonTyped
lock
OnClick
functions
OnDeleted
lock
OnDrag
lock
OnDragCancel
lock
OnDragEnd
lock
OnDragStart
lock
OnMiddleClick
lock
OnMouseDown
lock
OnRightClick
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.