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
NavigationHost
chevron_left Classes
class
NavigationHost

Constructors

functionsNavigationHost

Fields

lockCache

Properties

data_objectCurrentPaneldata_objectCurrentQuerydata_objectCurrentUrldata_objectDefaultUrldata_objectNavigatorCanvas

Methods

functionsAddDestinationfunctionsCurrentUrlMatchesfunctionsExtractPropertiesfunctionsGoBackfunctionsGoBackUntilNotfunctionsGoForwardfunctionsNavigatelockNotFoundlockOnBacklockOnForwardlockOnParametersSetfunctionsOnTemplateSlotfunctionsSetProperty
NavigationHost
A panel that acts like a website. A single page is always visible but it will cache other views that you visit, and allow forward/backward navigation.
class Sandbox.UI.Navigation .account_tree extends Panel
Sandbox.Engine

build Constructors 1

NavigationHost ()

crop_din Fields 1

Cache
List`1

data_object Properties 5

CurrentPanel
Panel
The currently visible panel
CurrentQuery
string
The query part of the url we're currently viewing
CurrentUrl
string
The Url we're currently viewing
DefaultUrl
string
The Url we should go to when one isn't set
NavigatorCanvas
Panel
The panel in which we should create our pages

functions Methods 13

AddDestination (url, type)
Instead of finding pages by attributes, we can fill them in manually here
CurrentUrlMatches (url)
bool
ExtractProperties (parts, url)
IEnumerable`1
GoBack ()
bool
To back to the previous page. Return true on success.
GoBackUntilNot (wildcard)
bool
Keep pressing the back button until our url doesn't match the passed wildcard string
GoForward ()
bool
Go forward, return true on success
Navigate (url, redirectToDefault)
Panel
Navigate to the passed url
NotFound (url)
OnBack (e)
OnForward (e)
OnParametersSet ()
Called after initialization
OnTemplateSlot (element, slotName, panel)
This sucks this sucks this sucks
SetProperty (name, value)

Inheritance

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