Exemplo n.º 1
0
	// ***********************************************************************************
	// INIT + GUI START - END
	// ***********************************************************************************

	public static void GUIStart(IHOTweenPanel panel, HOTweenComponent src, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
	{
		// Ensure that only one panel is in a state different from the default one
		if (isManagerGUI && src != null && panelMode != HOTweenPanelMode.Default) {
			panelMode = HOTweenPanelMode.Default;
			HOTweenEditorGUI.panel.Repaint();
		}
		isManagerGUI = false;
		HOTweenEditorGUI.src = componentSrc = src;
		GUIStart(panel, undoManager, labelsWidth, fieldsWidth);
	}
Exemplo n.º 2
0
    // ***********************************************************************************
    // INIT + GUI START - END
    // ***********************************************************************************

    public static void GUIStart(IHOTweenPanel panel, HOTweenComponent src, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
    {
        // Ensure that only one panel is in a state different from the default one
        if (isManagerGUI && src != null && panelMode != HOTweenPanelMode.Default)
        {
            panelMode = HOTweenPanelMode.Default;
            HOTweenEditorGUI.panel.Repaint();
        }

        isManagerGUI         = false;
        HOTweenEditorGUI.src = componentSrc = src;
        GUIStart(panel, undoManager, labelsWidth, fieldsWidth);
    }
Exemplo n.º 3
0
    // ===================================================================================
    // MONOBEHAVIOUR METHODS -------------------------------------------------------------

    void OnEnable()
    {
        src = target as HOTweenComponent;
        undoManager = new HOEditorUndoManager(src, "HOTweenComponent");
        HOTweenEditorGUI.panelMode = HOTweenPanelMode.Default;
    }
    // ===================================================================================
    // MONOBEHAVIOUR METHODS -------------------------------------------------------------

    void OnEnable()
    {
        src         = target as HOTweenComponent;
        undoManager = new HOEditorUndoManager(src, "HOTweenComponent");
        HOTweenEditorGUI.panelMode = HOTweenPanelMode.Default;
    }