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
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£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
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
TreeRow
chevron_left Classes
class
TreeRow

Constructors

functionsTreeRow

Properties

data_objectContentdata_objectExpanderdata_objectIcondata_objectIconNamedata_objectIsRenamingdata_objectLabeldata_objectRowIndexdata_objectTextdata_objectTreedata_objectWantsDrag

Methods

functionsBeginRenamelockOnClicklockOnDoubleClicklockOnDraglockOnDragEndlockOnDragEnterlockOnDragLeavelockOnDragStartlockOnDroplockOnMouseDownlockOnRightClick
TreeRow
One visible row of a Sandbox.UI.BaseTreeView. Rows are pooled and rebound as the tree scrolls, so anything you add to one must be created once and updated on every bind.
class Sandbox.UI .account_tree extends Panel
Sandbox.Engine

build Constructors 1

TreeRow ()

data_object Properties 10

Content
Panel
Where a row's own controls go - toggles, buttons, badges - added once and updated on every bind. Clicks on them belong to them: they don't select or activate the row.
Expander
IconPanel
The expand/collapse arrow. Hidden on rows without children.
Icon
IconPanel
An optional icon before the label.
IconName
string
Material icon name. Null or empty hides the icon.
IsRenaming
bool
True while the label is swapped for a text entry.
Label
Label
The row's text.
RowIndex
int
Index into the tree's flat row list, or -1 while pooled.
Text
string
The row's label text. Only touches the label when it changes.
Tree
BaseTreeView
The tree this row belongs to.
WantsDrag
bool
Rows drag when the tree says this row can.

functions Methods 11

BeginRename ()
Swap the label for a text entry until enter, escape, or focus loss.
OnClick (e)
OnDoubleClick (e)
OnDrag (e)
OnDragEnd (e)
OnDragEnter (e)
OnDragLeave (e)
OnDragStart (e)
OnDrop (e)
OnMouseDown (e)
OnRightClick (e)

Inheritance

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