A class used to manipulate developer utilities.
This class is used to display an overlay on top of the app which lists dev widgets. Each widget controls a single debug utility.
The method used to activate the dev panel depends on the platform on which the app runs:
- Desktop: F3, F13 or CTRL+` (CTRL + Back Tick)
- Touch devices: triple-tap one of the corners of the screen
- Consoles: Click the right thumbstick on the gamepad
- 10-foot: These keys in sequence: up, up, down, down, left, right, left, right, select (modified Konami code), or triple-click the Play/Pause button on the remote Note that some platforms support multiple activation methods.
The dev panel is typically only available for Debug builds. However, it can be made available on Release builds by calling the CYIApp::InitializeDevPanel function.
The following describes the various components that make up the dev panel system:
- The dev panel instance holds the dev widgets, and is owned by the CYIApp instance
- The dev widget instance represents a single debug utility, and is owned by the dev panel instasnce
- The dev panel view is the rendered portion of the dev panel
- Each dev widget inserts a dev widget item in the dev panel (e.g. a button)
- Dev widgets can optionally display a widget view to the user when activated
- Dev widgets can optionally display a configuration button in the dev panel to trigger displaying configuration options
- Dev widgets which provide configuration options can either make use of the default configuration subpanel in the dev panel, or implement their own configuration view
- See also
- CYIDevWidget
|
| | CYIDevPanel (CYISceneManager *pSceneManager, CYIApp *pApp) |
| |
| | ~CYIDevPanel () |
| |
| void | Open () |
| |
| void | Close () |
| |
| void | ToggleVisibility () |
| |
| bool | IsActive () const |
| |
| bool | IsVisible () const |
| |
| bool | IsConfigurationSubpanelOpen () const |
| |
| void | AddWidget (std::unique_ptr< CYIDevWidget > pWidget, INSERT_POSITION eInsertPosition=TOP) |
| |
| std::vector< CYIDevWidget * > | GetWidgets () const |
| |
| void | UpdateWidget (uint32_t uIndexInPanel) |
| |
| template<class T > |
| T * | GetWidget () const |
| |
| CYIApp * | GetApp () const |
| |
| CYISceneManager * | GetSceneManager () const |
| |
| CYISceneView * | GetWidgetsContainer () const |
| |
| void | SimulatePanelItemClicked (uint32_t uIndex) |
| |
| void | SimulateConfigurationItemClicked (uint32_t uWidgetIndex, uint32_t uItemIndex) |
| |
| void | OpenConfigurationSubpanel (CYIDevWidget *pWidget, const std::vector< std::pair< CYIString, CYIString > > &items) |
| |
| void | CloseConfigurationSubpanel () |
| |
| void | ReconfigureConfigurationSubpanel (CYIDevWidget *pWidget) |
| |
| bool | HandleKeyInputs (const CYIKeyEvent &keyEvent) |
| |
| bool | HandleActionInputs (int32_t nX, int32_t nY, int32_t nWheelDelta, uint8_t uButton, YI_EVENT_TYPE eEventType, uint8_t uPointerID, bool bHover) |
| |
| bool | Update (bool *pbSkipUpdate=nullptr) |
| |
| void | Draw () |
| |
Public Member Functions inherited from CYISignalHandler |
| | CYISignalHandler () |
| |
| | CYISignalHandler (const CYISignalHandler &rSignalHandler) |
| |
| virtual | ~CYISignalHandler () |
| |
| CYISignalHandler & | operator= (const CYISignalHandler &rSignalHandler) |
| |
| void | MoveToThread (CYIThread *pThread) |
| | This function allows the user to override the default thread affinity to any CYIThread that may or may not be running. More...
|
| |
| CYIThreadHandle | GetThreadAffinity () const |
| |
| void | SetThreadAffinity (const CYIThreadHandle &rThreadAffinity) |
| |
| virtual bool | IsConnected () const |
| |
| virtual bool | IsConnected (const CYISignalBase &rSignal) const |
| |
| void | Disconnect (CYISignalBase &rSignal) |
| |
| void | DisconnectFromAllSignals () |
| |
| | Listener () |
| |
| virtual | ~Listener () |
| |
| virtual void | OnThreadStarted (CYIThread *) |
| |
| virtual void | OnThreadTerminated (CYIThread *) |
| |
| virtual void | OnThreadFinished (CYIThread *) |
| |
| | CYIEventFilter () |
| |
| | CYIEventFilter (const CYIEventFilter &other) |
| |
| virtual | ~CYIEventFilter () |
| |
| CYIEventFilter & | operator= (const CYIEventFilter &other) |
| |
| | CYIScriptableObject () |
| |
| | CYIScriptableObject (const CYIScriptableObject &other) |
| |
| CYIScriptableObject & | operator= (const CYIScriptableObject &other) |
| |
| virtual | ~CYIScriptableObject () |
| |
| CYIBindingImplementation * | GetBindingImplementation () const |
| |
| void | SetBindingImplementation (CYIBindingImplementation *pBindingImplementation) |
| |
| virtual const CYIRuntimeTypeInfo * | GetRuntimeTypeInfoForScriptObject () const |
| |