Exemplo n.º 1
0
        public override void OnFlowSettingsGUI()
        {
            if (ABTesting.settings == null)
            {
                ABTesting.settings = ABTesting.GetSettingsFile();
            }

            var settings = ABTesting.settings;

            if (settings == null)
            {
                EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (ABTestingSettings)."), MessageType.Error);
            }
            else
            {
                GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel);

                if (this.editor == null)
                {
                    this.editor = Editor.CreateEditor(settings) as ABTestingSettingsEditor;
                }

                if (this.editor != null)
                {
                    this.editor.OnInspectorGUI();
                }
            }
        }
Exemplo n.º 2
0
		public override void OnFlowSettingsGUI() {

			if (ABTesting.settings == null) ABTesting.settings = ABTesting.GetSettingsFile();
			
			var settings = ABTesting.settings;
			if (settings == null) {
				
				EditorGUILayout.HelpBox(string.Format(FlowAddon.MODULE_HAS_ERRORS, "Settings file not found (ABTestingSettings)."), MessageType.Error);
				
			} else {
				
				GUILayout.Label(FlowAddon.MODULE_INSTALLED, EditorStyles.centeredGreyMiniLabel);
				
				if (this.editor == null) {
					
					this.editor = Editor.CreateEditor(settings) as ABTestingSettingsEditor;
					
				}
				
				if (this.editor != null) {
					
					this.editor.OnInspectorGUI();
					
				}
				
			}
			
		}