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
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
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
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
NavigationHost
chevron_left
Classes
class
NavigationHost
Constructors
functions
NavigationHost
Fields
lock
Cache
Properties
data_object
CurrentPanel
data_object
CurrentQuery
data_object
CurrentUrl
data_object
DefaultUrl
data_object
NavigatorCanvas
Methods
functions
AddDestination
functions
CurrentUrlMatches
functions
ExtractProperties
functions
GoBack
functions
GoBackUntilNot
functions
GoForward
functions
Navigate
lock
NotFound
lock
OnBack
lock
OnForward
lock
OnParametersSet
functions
OnTemplateSlot
functions
SetProperty
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.