예제 #1
0
        protected override void OnInspectorGUI(ABTestingSettings settings, ABTestingServiceItem item, System.Action onReset, GUISkin skin)
        {
            var data = FlowSystem.GetData();

            if (data == null)
            {
                return;
            }

            UnityEditor.EditorGUI.BeginDisabledGroup(item.processing);
            if (GUILayout.Button(item.processing == true ? "Saving..." : "Save All", skin.button) == true)
            {
                if (item.processing == false)
                {
                    item.processing = true;

                    // Connecting
                    this.OnEditorAuth(item.authKey, (result) => {
                        UnityEditor.EditorApplication.delayCall += () => {
                            Dictionary <int, ABTestingItemsTO> testMap = new Dictionary <int, ABTestingItemsTO>();

                            foreach (var testWindow in data.GetWindows())
                            {
                                if (testWindow.IsABTest() == true)
                                {
                                    testMap.Add(testWindow.id, testWindow.abTests.GetTO());
//									this.Save(testWindow.id, testWindow.abTests.GetTO(), (saveResult) => {});
                                }
                            }

                            if (testMap.Count != 0)
                            {
                                this.SaveAll(testMap, (saveResult) => {});
                            }

                            item.processing = false;
                        };
                    });
                }
            }
            UnityEditor.EditorGUI.EndDisabledGroup();
        }
		protected virtual void OnInspectorGUI(ABTestingSettings settings, ABTestingServiceItem item, System.Action onReset, GUISkin skin) {
			
			
			
		}
예제 #3
0
 protected virtual void OnInspectorGUI(ABTestingSettings settings, ABTestingServiceItem item, System.Action onReset, GUISkin skin)
 {
 }