Beispiel #1
0
        public override void OnInspectorGUI()
        {
            var t = (UIWindow)target;

            base.OnInspectorGUI();

            if (Application.isPlaying)
            {
                if (t.isVisible)
                {
                    EditorGUILayout.LabelField("Window is Visible");
                    if (GUILayout.Button("OnHide"))
                    {
                        t.Hide();
                    }
                }
                else
                {
                    EditorGUILayout.LabelField("Window is Hidden");
                    if (GUILayout.Button("OnShow"))
                    {
                        t.Show();
                    }
                }
            }

            _inputHandlers.DoLayoutList();
        }
Beispiel #2
0
        private void DrawAddModules()
        {
//            var t = (Trigger) target;

//            DrawWindowContainer(t);

            _inputHandlers.DoLayoutList();
            _rangeHandlers.DoLayoutList();
        }