|
Highroad Engine v1.3
|
A debug menu helper, meant to help create quick mobile friendly debug menus More...
Public Types | |
| enum | ToggleDirections { TopToBottom , LeftToRight , RightToLeft , BottomToTop } |
| the possible directions for the menu to appear More... | |
Public Member Functions | |
| virtual void | FillMenu (bool triggerEvents=false) |
| Fills the menu based on the data's contents More... | |
| virtual void | OpenMenu () |
| Makes the menu appear More... | |
| virtual void | CloseMenu () |
| Makes the menu disappear More... | |
| virtual void | ToggleMenu () |
| Closes or opens the menu depending on its current state More... | |
Public Attributes | |
| MMDebugMenuData | Data |
| the scriptable object containing the menu's data More... | |
| CanvasGroup | MenuContainer |
| the container of the whole menu More... | |
| RectTransform | Contents |
| the scrolling contents More... | |
| Image | MenuBackground |
| the menu's background image More... | |
| Image | CloseIcon |
| the icon used to close the menu More... | |
| RectTransform | TabBar |
| the tab bar (where the tab buttons go) More... | |
| RectTransform | TabContainer |
| the tab contents container (where the contents of the page will go) More... | |
| MMDebugMenuTabManager | TabManager |
| the tab manager More... | |
| Image | MMLogo |
| the MoreMountains logo More... | |
| UnityEvent | OnOpenEvent |
| an event to call when the menu opens More... | |
| UnityEvent | OnCloseEvent |
| an event to call when the menu closes More... | |
| bool | Active = false |
| whether or not this menu is active at this moment More... | |
| bool | ToggleButton |
| a test button to toggle the menu More... | |
Protected Member Functions | |
| virtual void | Start () |
| On Start we init our menu More... | |
| virtual void | Initialization () |
| Prepares transitions and grabs components More... | |
| virtual void | FillTab (MMDebugMenuTabContents tab, int index, bool triggerEvents=false) |
| virtual IEnumerator | ToggleCo (bool active) |
| A coroutine used to toggle the menu More... | |
| virtual void | Update () |
| On update we handle our input More... | |
| virtual void | HandleInput () |
| Looks for shortcut input More... | |
Protected Attributes | |
| RectTransform | _containerRect |
| Vector3 | _initialContainerPosition |
| Vector3 | _offPosition |
| Vector3 | _newPosition |
| bool | _toggling = false |
A debug menu helper, meant to help create quick mobile friendly debug menus
|
virtual |
Makes the menu disappear
|
virtual |
Fills the menu based on the data's contents
|
protectedvirtual |
|
protectedvirtual |
Looks for shortcut input
|
protectedvirtual |
Prepares transitions and grabs components
|
virtual |
Makes the menu appear
|
protectedvirtual |
On Start we init our menu
|
protectedvirtual |
A coroutine used to toggle the menu
| active |
|
virtual |
Closes or opens the menu depending on its current state
|
protectedvirtual |
On update we handle our input
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool MoreMountains.Tools.MMDebugMenu.Active = false |
whether or not this menu is active at this moment
| Image MoreMountains.Tools.MMDebugMenu.CloseIcon |
the icon used to close the menu
| RectTransform MoreMountains.Tools.MMDebugMenu.Contents |
the scrolling contents
| MMDebugMenuData MoreMountains.Tools.MMDebugMenu.Data |
the scriptable object containing the menu's data
| Image MoreMountains.Tools.MMDebugMenu.MenuBackground |
the menu's background image
| CanvasGroup MoreMountains.Tools.MMDebugMenu.MenuContainer |
the container of the whole menu
| Image MoreMountains.Tools.MMDebugMenu.MMLogo |
the MoreMountains logo
| UnityEvent MoreMountains.Tools.MMDebugMenu.OnCloseEvent |
an event to call when the menu closes
| UnityEvent MoreMountains.Tools.MMDebugMenu.OnOpenEvent |
an event to call when the menu opens
| RectTransform MoreMountains.Tools.MMDebugMenu.TabBar |
the tab bar (where the tab buttons go)
| RectTransform MoreMountains.Tools.MMDebugMenu.TabContainer |
the tab contents container (where the contents of the page will go)
| MMDebugMenuTabManager MoreMountains.Tools.MMDebugMenu.TabManager |
the tab manager
| bool MoreMountains.Tools.MMDebugMenu.ToggleButton |
a test button to toggle the menu