Panorama Core
scripts/vscripts/alyxlib/panorama/core.lua
Global variables
| Name | Value |
|---|---|
Panorama |
table |
Methods
InitPanel
Initializes a panorama panel with a unique id. This must be done every time the entity loads, even on save game loads.
The entity can be initialized if it accepts the input "AddCSSClass".
Parameters
panelEntity
EntityHandle
The entity to initialize.customId(optional)
string
If nil the id will be generated automatically.
Send
Send data to a panorama panel.
Parameters
panelEntity
EntityHandle
The entity to send data to.
ToJSON
Converts any value to a JSON string.
Parameters
value
any
The value to convert
Returns
- string
The JSON string
GetId
Get the panorama id from an entity if it has one.
Parameters
entityPanel
EntityHandle
Returns
- string?