s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
Menu
OnChildAdded
chevron_left Classes
class
Menu

Constructors

functionsMenu

Properties

data_objectCheckabledata_objectCheckeddata_objectClickeddata_objectEnableddata_objectHasOptionsdata_objectHighlighteddata_objectIcondata_objectIsOpendata_objectIsSeparatordata_objectOptionsdata_objectParentMenudata_objectRootMenudata_objectRowsdata_objectShortcutdata_objectStaysOpendata_objectTextdata_objectToggled

Methods

functionsActivatefunctionsAddMenufunctionsAddOptionfunctionsAddSeparatorfunctionsAddWidgetfunctionsClearfunctionsClosefunctionsFindOptionlockOnChildAddedlockOnClickfunctionsOnDeletedlockOnMouseMovelockOnMouseOutlockOnMouseOverfunctionsOpenfunctionsRemove
OnChildAdded
A panel nested inside a menu - from Razor, or AddChild - is a row of it, not part of the row itself. It stays hidden in the row until the menu opens and moves it into the list.
method
void OnChildAdded (Panel child)

Parameters

NameTypeDescription
child Panel
Declared in Sandbox.UI.Menu ยท Assembly Sandbox.Engine
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