// Description: Add panel to view which will be opened automatically for the requested duration // Parameters: // PANEL_TYPE panel_type - The panel type (where the panel will be located) // HANDLE_POSITION handle_position - the place where to place the handle for the panel // float startDelay - the selected time in seconds before the panel will be opened. -1 will disable this feature // float duration - the selected time in seconds for the panel to stay open. -1 the panel will not be closed. // return: // 0 - the function worked correctly // NO_GAME_OBJECT - there is no Kidoz gameobject public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position, float startDelay, float duration) { if (instance == null) { return(NO_GAME_OBJECT); } kidozBridgeObject.Call("addPanelToView", (int)panel_type, (int)handle_position, startDelay, duration); return(0); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mPrefabPanelSplitter_MouseUp(object sender, MouseEventArgs e) { mMouseResizing = false; mActivePanelType = PANEL_TYPE.INVALID; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mPrefabPanelSplitter_MouseDown(object sender, MouseEventArgs e) { mMouseResizing = true; mActivePanelType = PANEL_TYPE.PREFAB; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mObjectPanelSplitter_MouseDown(object sender, MouseEventArgs e) { mMouseResizing = true; mActivePanelType = PANEL_TYPE.OBJECT; }
private void ChangePanel( PANEL_TYPE type) { //$yde if((PANEL_TYPE)curPanel == PANEL_TYPE.PANEL_CUSTOMIZING) { if(AsEntityManager.Instance.ModelLoading == true) return; } if( (int)type == curPanel) return; CloseAllAlertDlg(); rep.Enable = ( PANEL_TYPE.PANEL_CUSTOMIZING == type) ? false : true; panels[ curPanel].Hide( true); panels[ (int)type].Hide( false); curPanel = (int)type; }
// Description: Add panel to view which will be opened automatically for the requested duration // Parameters: // PANEL_TYPE panel_type - The panel type (where the panel will be located) // HANDLE_POSITION handle_position - the place where to place the handle for the panel // float startDelay - the selected time in seconds before the panel will be opened. -1 will disable this feature // float duration - the selected time in seconds for the panel to stay open. -1 the panel will not be closed. // return: // 0 - the function worked correctly // NO_GAME_OBJECT - there is no Kidoz gameobject public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position, float startDelay, float duration) { //TODO: implement function return(0); }
//Basic function creation function. //Since Kidoz SDK should be activated only once use this function to create //a game object. If Kidoz game object was added to the scene there is no need to call this function // Description: Add panel to view // Parameters: // PANEL_TYPE panel_type - The panel type (where the panel will be located) // HANDLE_POSITION handle_position - the place where to place the handle for the panel // return: // 0 - the function worked correctly // NO_GAME_OBJECT - there is no Kidoz gameobject public static int addPanelToView(PANEL_TYPE panel_type, HANDLE_POSITION handle_position) { kidozin.addPanelToView((int)panel_type, (int)handle_position); return(0); }