Loading...
Searching...
No Matches
realvirtual.rvUIMenuWindow Class Reference
Inheritance diagram for realvirtual.rvUIMenuWindow:
Public Types | |
| enum | Style { Horizontal , Vertical , Window } |
Public Member Functions | |
| void | ApplySettingsToPanel (rvUIFloatingMenuPanel panel) |
| void | Open () |
| void | Close () |
| void | Place (rvUIPanelPlacer.Position position) |
| void | Initialize () |
| Initializes the window with a specific style. | |
| void | RefreshStyleNotifications () |
| Refreshes the current style and notifies all children. | |
| void | SwitchStyle (Style newStyle) |
| Switches to a new panel style, preserving all content and panel properties. | |
| void | SwitchToHorizontal () |
| Switches to horizontal style. | |
| void | SwitchToVertical () |
| Switches to vertical style. | |
| void | SwitchToWindow () |
| Switches to window style. | |
| override RectTransform | GetContentRoot () |
| override void | RefreshLayout () |
| Style | GetCurrentStyle () |
| Gets the current panel style. | |
| rvUIFloatingMenuPanel | GetCurrentPanel () |
| Gets the current active panel. | |
| bool | IsStyle (Style style) |
| Checks if the window is currently in a specific style. | |
| void | PlaceRelativeTo (rvUIContent other, rvUIRelativePlacement.Placement placement) |
| void | ClearRelativePlacement () |
Public Member Functions inherited from realvirtual.rvUIContainer | |
| RectTransform | GetContentRoot () |
| List< rvUIContent > | GetUIContents () |
| void | MoveContentToContainer (rvUIContainer container) |
Public Member Functions inherited from realvirtual.rvUIContent | |
| void | RefreshLayout () |
| void | RefreshLayoutRecursive () |
| void | RefreshLayoutBottomUp () |
| List< rvUIContent > | GetChildContents () |
| void | MoveToContainer (rvUIContainer container, bool refresh=true) |
| rvUIContainer | GetContainer () |
| List< rvUIContent > | GetPathToRoot () |
| void | ApplyColorScheme (ColorScheme colorScheme) |
Public Attributes | |
| rvUIMenuSettings | settings |
| Style | currentStyle |
| Current panel style. | |
| UnityEvent< Style > | OnStyleChanged |
| Fired when style changes. | |
Public Attributes inherited from realvirtual.rvUIContainer | |
| UnityEvent< rvUIContent > | OnChildAdded |
| UnityEvent< rvUIContent > | OnChildRemoved |
Public Attributes inherited from realvirtual.rvUIContent | |
| UnityEvent< ColorScheme > | OnApplyColorScheme |
Member Enumeration Documentation
◆ Style
Member Function Documentation
◆ GetContentRoot()
| override RectTransform realvirtual.rvUIMenuWindow.GetContentRoot | ( | ) |
Implements realvirtual.IrvUIContainer.
◆ GetCurrentPanel()
| rvUIFloatingMenuPanel realvirtual.rvUIMenuWindow.GetCurrentPanel | ( | ) |
Gets the current active panel.
◆ GetCurrentStyle()
| Style realvirtual.rvUIMenuWindow.GetCurrentStyle | ( | ) |
Gets the current panel style.
◆ Initialize()
| void realvirtual.rvUIMenuWindow.Initialize | ( | ) |
Initializes the window with a specific style.
- Parameters
-
style The initial style to use
◆ IsStyle()
| bool realvirtual.rvUIMenuWindow.IsStyle | ( | Style | style | ) |
Checks if the window is currently in a specific style.
◆ RefreshStyleNotifications()
| void realvirtual.rvUIMenuWindow.RefreshStyleNotifications | ( | ) |
Refreshes the current style and notifies all children.
Call this if children are added after initialization.
◆ SwitchStyle()
| void realvirtual.rvUIMenuWindow.SwitchStyle | ( | Style | newStyle | ) |
Switches to a new panel style, preserving all content and panel properties.
The old panel is destroyed and content is moved to the new panel.
- Parameters
-
newStyle The style to switch to
◆ SwitchToHorizontal()
| void realvirtual.rvUIMenuWindow.SwitchToHorizontal | ( | ) |
Switches to horizontal style.
◆ SwitchToVertical()
| void realvirtual.rvUIMenuWindow.SwitchToVertical | ( | ) |
Switches to vertical style.
◆ SwitchToWindow()
| void realvirtual.rvUIMenuWindow.SwitchToWindow | ( | ) |
Switches to window style.
Member Data Documentation
◆ currentStyle
| Style realvirtual.rvUIMenuWindow.currentStyle |
Current panel style.
◆ OnStyleChanged
| UnityEvent<Style> realvirtual.rvUIMenuWindow.OnStyleChanged |
Fired when style changes.
Public Member Functions inherited from