예제 #1
0
        public override void OnFlowToolbarGUI(GUIStyle buttonStyle)
        {
            base.OnFlowToolbarGUI(buttonStyle);

            if (FlowSystem.IsCompileDirty() == true)
            {
                var color = GUI.color;

                GUI.color = Color.red;
                if (GUILayout.Button("Recompile", buttonStyle) == true)
                {
                    CompilerSystem.currentNamespace = FlowSystem.GetData().namespaceName;
                    CompilerSystem.Generate(AssetDatabase.GetAssetPath(FlowSystem.GetData()), recompile: true, minimalScriptsSize: false);
                }

                GUI.color = color;
            }
        }
예제 #2
0
        public override void OnFlowToolbarGUI(GUIStyle buttonStyle)
        {
            base.OnFlowToolbarGUI(buttonStyle);

            if (FlowSystem.IsCompileDirty() == true)
            {
                var color = GUI.color;

                GUI.color = Color.red;
                if (GUILayout.Button("Recompile needed", buttonStyle) == true)
                {
                    Compiler.ShowEditor(null, () => {
                        FlowSystem.SetCompileDirty(state: false);
                    });
                }

                GUI.color = color;
            }
        }