예제 #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 = Controller.Instance.SelectedChapterDataControl.getCompletables();
            completablesList.SetData(completables, (c) => (c as CompletableListDataControl).getCompletables().Cast <DataControl>().ToList());
            completablesList.DoList(windowHeight - 150);
        }
예제 #2
0
        /**
         * Updates the data contained in the data control with a new chapter. This
         * method is essential for some undo/redo tools
         *
         * @param chaper
         */
        public void update(Chapter chapter)
        {
            this.chapter = chapter;

            // Create the subcontrollers
            playerDataControl            = new PlayerDataControl(chapter.getPlayer());
            scenesListDataControl        = new ScenesListDataControl(chapter.getObjects <Scene> (), this.getPlayer().getPreviewImage());
            cutscenesListDataControl     = new CutscenesListDataControl(chapter.getObjects <Cutscene> ());
            booksListDataControl         = new BooksListDataControl(chapter.getObjects <Book> ());
            itemsListDataControl         = new ItemsListDataControl(chapter.getObjects <Item> ());
            atrezzoListDataControl       = new AtrezzoListDataControl(chapter.getObjects <Atrezzo> ());
            npcsListDataControl          = new NPCsListDataControl(chapter.getObjects <NPC> ());
            conversationsListDataControl = new ConversationsListDataControl(chapter.getObjects <Conversation> ());
            TimersListDataControl      timersListDataControl       = new TimersListDataControl(chapter.getObjects <Timer> ());
            GlobalStateListDataControl globalStatesListDataControl = new GlobalStateListDataControl(chapter.getObjects <GlobalState> ());
            MacroListDataControl       macrosListDataControl       = new MacroListDataControl(chapter.getObjects <Macro> ());

            advancedFeaturesDataControl = new AdvancedFeaturesDataControl();
            advancedFeaturesDataControl.setTimerListDataControl(timersListDataControl);
            advancedFeaturesDataControl.setGlobalStatesListDataContorl(globalStatesListDataControl);
            advancedFeaturesDataControl.setMacrosListDataControl(macrosListDataControl);
            completableListDataControl = new CompletableListDataControl(chapter.getObjects <Completable>());
            // assessmentProfilesDataControl = new AssessmentProfilesDataControl(chapter.getAssessmentProfiles());
            //adaptationProfilesDataControl = new AdaptationProfilesDataControl(chapter.getAdaptationProfiles());
        }