Пример #1
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();

            m_lastAutogencode = m_target.autogenerateCode;

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();

            if (EditorGUI.EndChangeCheck())
            {
                // Detech changes to autogenerate code!
                if (m_lastAutogencode != m_target.autogenerateCode)
                {
                    RefreshCore();
                }

                // m_isDirty = m_isDirty || true;
            }

            EditorGUILayout.Space();

            DrawButtons();

            EditorGUILayout.Space();

            DrawSerialList();
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();


            EditorGUILayout.Space();
            if (KLServer.Instance.startServerWhenPlay && serverPlayState)
            {
                KrilloudServer.Instance.ChangeServerPort();
                KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay);
                serverPlayState = false;
            }
            else if (!KLServer.Instance.startServerWhenPlay && !serverPlayState)
            {
                KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay);
                serverPlayState = true;
            }
            GUI.enabled = serverPlayState;

            DrawServerPortButton();
            DrawButtons();
        }
Пример #3
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();
            DrawInspectorGUI();

            EditorGUILayout.Space();
            DrawDebugInfo();
        }
Пример #4
0
 public override void OnInspectorGUI()
 {
     KLEditorUtils.DrawKrillHeader();
     KLEditorUtils.DrawUILine();
     DrawDebugInfo();
 }