コード例 #1
0
        public override void Draw(int aID)
        {
            var variables = Controller.Instance.VarFlagSummary.getVars();

            Available = variables != null && variables.Length > 0;

            var windowHeight = Rect.height;

            GUILayout.Label(TC.get("Analytics.GameStart") + Controller.Instance.SelectedChapterDataControl.getInitialScene());
            GUILayout.Label(TC.get("Analytics.GameEnd"));

            end = EditorGUILayout.Popup(end, endOptions);

            GUILayout.Label(TC.get("Analytics.GameProgress"));

            progress = EditorGUILayout.Popup(progress, progressOptions);

            if (progress == 1)
            {
                GUILayout.Button(TC.get("Analytics.EditProgress"));
            }

            completables = AnalyticsController.Instance.Completables;
            completablesList.SetData(completables, (c) => (c as CompletableListDataControl).getCompletables().Cast <DataControl>().ToList());
            completablesList.DoList(windowHeight - 150);
        }
        private void UpdateChapter()
        {
            if (Controller.Instance.SelectedChapterDataControl != null && lastSelectedChapterDataControl != Controller.Instance.SelectedChapterDataControl)
            {
                completableListDataControl = new CompletableListDataControl(Controller.Instance.SelectedChapterDataControl.getObjects <Completable>());
                Controller.Instance.SelectedChapterDataControl.RegisterExtraDataControl(completableListDataControl);

                lastSelectedChapterDataControl = Controller.Instance.SelectedChapterDataControl;
                Controller.Instance.updateVarFlagSummary();
            }
        }