// ***********************************************************************************
	// 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);
	}
Beispiel #2
0
    public static void GUIStart(IHOTweenPanel panel, HOTweenManager src, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
    {
        // Ensure that only one panel is in a state different from the default one
        if (!isManagerGUI && HOTweenEditorGUI.panel != null && panelMode != HOTweenPanelMode.Default)
        {
            panelMode = HOTweenPanelMode.Default;
            HOTweenEditorGUI.panel.Repaint();
        }

        isManagerGUI         = true;
        HOTweenEditorGUI.src = src;
        GUIStart(panel, undoManager, labelsWidth, fieldsWidth);
    }
Beispiel #3
0
    static void GUIStart(IHOTweenPanel panel, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
    {
        HOTweenEditorGUI.panel       = panel;
        HOTweenEditorGUI.undoManager = undoManager;
        HOTweenEditorGUI.labelsWidth = labelsWidth;
        HOTweenEditorGUI.fieldsWidth = fieldsWidth;
        undoManager.CheckUndo();
        EditorGUIUtility.LookLikeControls(labelsWidth, fieldsWidth);

        if (pluginDatas == null)
        {
            ReflectHOTween();
        }
        dcPropDataToValidPluginDatas = new Dictionary <HOTweenManager.HOPropData, List <PluginData> >();
        dcPropDataToValidPluginsEnum = new Dictionary <HOTweenManager.HOPropData, string[]>();
        foreach (HOTweenManager.HOTweenData twData in src.tweenDatas)
        {
            foreach (HOTweenManager.HOPropData propData in twData.propDatas)
            {
                StoreValidPluginsFor(twData.targetType, propData);
            }
        }
    }
Beispiel #4
0
    static void GUIStart(IHOTweenPanel panel, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
    {
        HOTweenEditorGUI.panel = panel;
        HOTweenEditorGUI.undoManager = undoManager;
        HOTweenEditorGUI.labelsWidth = labelsWidth;
        HOTweenEditorGUI.fieldsWidth = fieldsWidth;
        undoManager.CheckUndo();
        EditorGUIUtility.LookLikeControls(labelsWidth, fieldsWidth);

        if (pluginDatas == null) ReflectHOTween();
        dcPropDataToValidPluginDatas = new Dictionary<HOTweenManager.HOPropData, List<PluginData>>();
        dcPropDataToValidPluginsEnum = new Dictionary<HOTweenManager.HOPropData, string[]>();
        foreach (HOTweenManager.HOTweenData twData in src.tweenDatas) {
            foreach (HOTweenManager.HOPropData propData in twData.propDatas) {
                StoreValidPluginsFor(twData.targetType, propData);
            }
        }
    }
	static void GUIStart(IHOTweenPanel panel, HOEditorUndoManager undoManager, int labelsWidth, int fieldsWidth)
	{
        _hiliteStyle = new GUIStyle(HOGUIStyle.toolbarTextField);
        _hiliteStyle.SetFontColor(new Color(0.8f, 0.55f, 0f));
        _idButtonStyle = new GUIStyle(HOGUIStyle.toolbarButton);
        _idButtonStyle.alignment = TextAnchor.MiddleLeft;
        _idMissingButtonStyle = new GUIStyle(_idButtonStyle);
        _idButtonStyle.SetFontColor(new Color(0.8f, 0.55f, 0f));
        _idMissingButtonStyle.fontStyle = FontStyle.Italic;

		HOTweenEditorGUI.panel = panel;
		HOTweenEditorGUI.undoManager = undoManager;
		HOTweenEditorGUI.labelsWidth = labelsWidth;
		HOTweenEditorGUI.fieldsWidth = fieldsWidth;
		undoManager.CheckUndo();
		EditorGUIUtility.LookLikeControls(labelsWidth, fieldsWidth);

		if (pluginDatas == null) ReflectHOTween();
		dcPropDataToValidPluginDatas = new Dictionary<HOTweenManager.HOPropData, List<PluginData>>();
		dcPropDataToValidPluginsEnum = new Dictionary<HOTweenManager.HOPropData, string[]>();
		foreach (HOTweenManager.HOTweenData twData in src.tweenDatas) {
			foreach (HOTweenManager.HOPropData propData in twData.propDatas) {
				StoreValidPluginsFor(twData.targetType, propData);
			}
		}
	}