|
Chunks
Moddable voxel sandbox for room-scale VR.
|
A surface with interactive graphical user interface controls displayed on it. More...
Public Member Functions | |
| MenuPanel () | |
| void | EaseToTransform (Vector localPosition, Geometry.Quaternion localRotation, float localScale) |
| void | EmitSound (ResourceName name) |
| void | Hide () |
| void | Show () |
| TControl | SetRootControl< TControl > () |
| Replaces the top level control of this MenuPanel with a new instance of the specified Control type. More... | |
| Control | SetRootControl (ResourceName resourceName) |
| Replaces the top level control of this MenuPanel with a new instance using layout data loaded from a control layout resource with the given name. More... | |
| bool | Raycast (Geometry.Ray ray, bool ignoreReverse, out MenuPanelRaycastHit hit) |
| Tests to see if a ray will hit this MenuPanel, and outputs some information about it if a hit is detected. More... | |
Public Attributes | |
| Entities.Transform | ControlParent => _behaviour.GetControlParent() |
| The transform of the Entity that Control instances are attached to. More... | |
| Vector | PanelSize => new Vector(Properties.WidthPixels, Properties.HeightPixels)/Properties.PixelsPerMetre |
| World space width and height of the panel before scaling. More... | |
Protected Member Functions | |
| override void | OnInitialize () |
| Called only once, when the component is first attached to an entity and is ready to add or retrieve other components. More... | |
| override void | OnEnable () |
| override void | OnDisable () |
| override void | OnDestroy () |
| Called when this component is removed, or the parent entity is destroyed. More... | |
Properties | |
| MenuPanelProperties | Properties [get] |
| MenuParent | MenuParent [get] |
| SoundEmitter | SoundEmitter [get] |
| Wand | CurrentlyHoldingWand [get, set] |
| Control | RootControl [get] |
| Gets the current top-level control of the GUI attached to this MenuPanel. More... | |
A surface with interactive graphical user interface controls displayed on it.
| Chunks.Interface.MenuPanel.MenuPanel | ( | ) |
| void Chunks.Interface.MenuPanel.EaseToTransform | ( | Vector | localPosition, |
| Geometry.Quaternion | localRotation, | ||
| float | localScale | ||
| ) |
| void Chunks.Interface.MenuPanel.EmitSound | ( | ResourceName | name | ) |
| void Chunks.Interface.MenuPanel.Hide | ( | ) |
|
protected |
Called when this component is removed, or the parent entity is destroyed.
|
protected |
|
protected |
|
protected |
Called only once, when the component is first attached to an entity and is ready to add or retrieve other components.
| bool Chunks.Interface.MenuPanel.Raycast | ( | Geometry.Ray | ray, |
| bool | ignoreReverse, | ||
| out MenuPanelRaycastHit | hit | ||
| ) |
Tests to see if a ray will hit this MenuPanel, and outputs some information about it if a hit is detected.
| ray | Ray to test for a hit with. |
| hit | Outputs information if a hit is found. |
| ignoreReverse | If true, only cases where the ray hits the inside surface are considered. |
| Control Chunks.Interface.MenuPanel.SetRootControl | ( | ResourceName | resourceName | ) |
Replaces the top level control of this MenuPanel with a new instance using layout data loaded from a control layout resource with the given name.
| resourceName | Name of the control layout resource to use. |
| TControl Chunks.Interface.MenuPanel.SetRootControl< TControl > | ( | ) |
Replaces the top level control of this MenuPanel with a new instance of the specified Control type.
| TControl | Type of Control to create. |
| TControl | : | Control | |
| TControl | : | new() |
| void Chunks.Interface.MenuPanel.Show | ( | ) |
| Entities.Transform Chunks.Interface.MenuPanel.ControlParent => _behaviour.GetControlParent() |
The transform of the Entity that Control instances are attached to.
| Vector Chunks.Interface.MenuPanel.PanelSize => new Vector(Properties.WidthPixels, Properties.HeightPixels)/Properties.PixelsPerMetre |
World space width and height of the panel before scaling.
|
getset |
|
get |
|
get |
|
get |
Gets the current top-level control of the GUI attached to this MenuPanel.
|
get |
1.8.10