internal void ShowDecalsFooter()
        {
            GUILayout.BeginHorizontal();

            //GUILayout.Label("Filter by Group:", GUILayout.Width(140));
            //GUILayout.FlexibleSpace();
            //groupfilter = GUILayout.TextField(groupfilter, 40, GUILayout.Width(140));
            if (GUILayout.Button("Spawn new MapDecal", GUILayout.Width(170)))
            {
                if (EditorGUI.instance.IsOpen())
                {
                    EditorGUI.instance.Close();
                }

                MapDecalEditor.selectedDecal = MapDecalUtils.SpawnNewDecalInstance();

                if (MapDecalEditor.selectedDecal == null)
                {
                    Log.UserError("No MapDecalInstance created");
                }

                MapDecalEditor.Instance.Open();

                Log.Normal("MapDecal Editor spawned");
            }
            GUILayout.EndHorizontal();
        }
Exemple #2
0
        /*void UpdateFilters()
         * {
         * }*/

        void SpawnDecal()
        {
            EditorGUI.instance.Close();
            EditorGUI.selectedInstance = null;

            MapDecalEditor.selectedDecal = MapDecalUtils.SpawnNewDecalInstance();

            if (MapDecalEditor.selectedDecal == null)
            {
                Log.UserError("No MapDecalInstance created");
            }

            MapDecalEditor.Instance.Open();

            Log.Normal("MapDecal Editor spawned");
        }