Exemplo n.º 1
0
        static void Main(string[] args)
        {
            string        path       = @"C:\Users\Tytus\Desktop\TASKs\biostats.csv";
            ListCreator   nl         = new ListCreator();
            CSVFileReader fr         = new CSVFileReader();
            var           listToSort = fr.ReadCSVFile(path, nl.CreateList());
            ListSearcher  ls         = new ListSearcher();

            ls.SearchTheList(listToSort);
        }
 public void SelectSelf()
 {
     DisplayComponents();
     dialogueNodeVocabListInfo = new ListDisplayInfo(
         DbQueries.GetVocabQry,
         BuildVocabPlayerChoice
         );
     list = GetComponentInChildren <VerticalLayoutGroup>().transform;
     FillDisplayFromDb(dialogueNodeVocabListInfo.GetMyDefaultQuery(), list.transform, BuildVocabPlayerChoice);
     listSearcher = GetPanel().GetComponentInChildren <ListSearcher>();
     listSearcher.SetSearchInfo(dialogueNodeVocabListInfo);
 }
Exemplo n.º 3
0
        // Use this for initialization
        void Start()
        {
            questsUI = FindObjectOfType <QuestsUI>();
            //PART COMPONENTS
            partsListUI      = FindObjectOfType <TaskPartsListUI>().gameObject;
            partsListUIPanel = partsListUI.transform.Find("Panel").gameObject;
            partsList        = partsListUIPanel.transform.Find("PartsList").gameObject;
            //add
            addPart                = partsListUIPanel.transform.Find("AddPart").gameObject;
            addPartPanel           = addPart.transform.Find("AddPartPanel").gameObject;
            activateAddPartBtn     = addPart.transform.Find("ActivateAddPartBtn").gameObject;
            partOptionSelectedList = addPartPanel.transform.Find("ScrollWindow").Find("OptionSelectedList").gameObject;
            optionBtnListSearcher  = addPartPanel.GetComponentInChildren <ListSearcher>();
            selectedTaskPart       = "selectedTaskPart";
            CreateSelectionToggleGroup(selectedTaskPart);

            HideNewPartPanel();

            activateDialogueNodeBtnListInfo = new ListDisplayInfo(
                DbQueries.GetTaskPartOptionsActivateDialogueNodeDisplayQry,
                BuildActivateDialogueNodeOptionBtn);
            print(activateDialogueNodeBtnListInfo);
        }
Exemplo n.º 4
0
        void Start()
        {
            taskPartsListUI = GetPanel().transform.Find("TaskPartsListUI").GetComponent <TaskPartsListUI>();
            //QUEST COMPONENTS
            questsListUI      = GetPanel().transform.Find("QuestsListUI").gameObject;
            questsListUIPanel = questsListUI.transform.Find("Panel").gameObject;
            questsList        = questsListUIPanel.transform.Find("QuestsList").gameObject;
            //add
            questDetails            = questsListUIPanel.transform.Find("QuestDetails").gameObject;
            questDetailsPanel       = questDetails.transform.Find("QuestDetailsPanel").gameObject;
            activateQuestDetailsBtn = questDetails.transform.Find("ActivateQuestDetailsBtn").gameObject;
            inputQuestDetailsName   = questDetailsPanel.transform.Find("InputNameText").GetComponent <InputField>();
            inputQuestDetailsDesc   = questDetailsPanel.transform.Find("InputDescriptionText").GetComponent <InputField>();

            //TASK COMPONENTS
            tasksListUI      = GetPanel().transform.Find("QuestTasksListUI").gameObject;
            tasksListUIPanel = tasksListUI.transform.Find("Panel").gameObject;
            tasksList        = tasksListUIPanel.transform.Find("TasksList").gameObject;
            //add
            addTask              = tasksListUIPanel.transform.Find("AddTask").gameObject;
            addTaskPanel         = addTask.transform.Find("AddTaskPanel").gameObject;
            activateAddTaskBtn   = addTask.transform.Find("ActivateAddTaskBtn").gameObject;
            inputTaskDescription = addTaskPanel.transform.Find("InputDescriptionText").GetComponent <InputField>();
            taskActiveAtStart    = addTaskPanel.GetComponentInChildren <Toggle>();

            //TASK RESULTS COMPONENTS
            taskResultsListUI      = GetPanel().transform.Find("QuestTaskCompleteResultsUI").gameObject;
            taskResultsListUIPanel = taskResultsListUI.transform.Find("Panel").gameObject;
            taskResultsList        = taskResultsListUIPanel.transform.Find("ResultsList").gameObject;
            //add
            addTaskResult                = taskResultsListUIPanel.transform.Find("AddTaskResult").gameObject;
            addTaskResultPanel           = addTaskResult.transform.Find("AddResultPanel").gameObject;
            activateAddTaskResultBtn     = addTaskResult.transform.Find("ActivateAddTaskResultBtn").gameObject;
            taskResultOptionSelectedList = addTaskResultPanel.transform.Find("ScrollWindow").Find("OptionSelectedList").gameObject;
            listSearcher = addTaskResultPanel.transform.GetComponentInChildren <ListSearcher>();


            FillDisplayFromDb(DbQueries.GetQuestsDisplayQry(), questsList.transform, BuildQuest);

            selectedQuest      = "selectedQuest";
            selectedTask       = "selectedTask";
            selectedTaskResult = "selectedTaskResult";

            CreateSelectionToggleGroup(selectedQuest);
            CreateSelectionToggleGroup(selectedTask);
            CreateSelectionToggleGroup(selectedTaskResult);

            newStartDialogueOptionListInfo = new ListDisplayInfo(
                DbQueries.GetTaskResultOptionsToStartDialogueQry,
                BuildStartDialogueTaskResultOptionBtn
                );

            newActivateDialogueOptionListInfo = new ListDisplayInfo(
                DbQueries.GetTaskResultOptionsToStartDialogueQry,
                BuildActivateDialogueTaskResultOptionBtn
                );

            newEndCombatOptionListInfo = new ListDisplayInfo(
                DbQueries.GetTaskResultOptionsToEndCombatWithCharQry,
                BuildEndCombatWithCharTaskResultOptionBtn
                );

            SceneLoader sceneLoader  = new SceneLoader();
            string      currentScene = sceneLoader.GetCurrentSceneName();

            InsertWorldItemsNotInDbFromScene(currentScene);

            HideAddTaskPanel();
            HidePartsListUI();
            HideTasksListUI();
            HideTaskResultsListUI();
        }
Exemplo n.º 5
0
        void Start()
        {
            playerChoicesListUI = FindObjectOfType <PlayerChoicesListUI>();
            dialogueNodesListUI = GetPanel().GetComponentInChildren <DialogueNodesListUI>();

            //choiceResultOptions = new ChoiceResultOptions();

            //DIALOGUE COMPONENTS
            dialoguesListUI          = GetPanel().transform.Find("DialoguesListUI").gameObject;
            dialoguesPanel           = dialoguesListUI.transform.Find("Panel").gameObject;
            dialogueList             = dialoguesPanel.transform.Find("ScrollView").Find("DialoguesList").gameObject;
            mainDialogueListSearcher = dialoguesPanel.GetComponentInChildren <ListSearcher>();
            //add
            submitNewDialogue         = dialoguesPanel.transform.Find("SubmitNewDialog").gameObject;
            newDialoguePanel          = submitNewDialogue.transform.Find("NewDialogPanel").gameObject;
            activateNewDialogueBtn    = submitNewDialogue.transform.Find("ActivateNewDialogBtn").gameObject;
            inputShortDescriptionText = newDialoguePanel.transform.Find("InputShortDescriptionText").GetComponent <InputField>();
            dialogueActive            = newDialoguePanel.transform.GetComponentInChildren <Toggle>();

            //CHARACTER DIALOGUES COMPONENTS
            charDialoguesListUI = GetPanel().transform.Find("CharDialoguesListUI").gameObject;
            charDialoguesPanel  = charDialoguesListUI.transform.Find("Panel").gameObject;
            characterList       = charDialoguesPanel.transform.Find("CharDialoguesList").gameObject;
            //add
            addCharDialoguesUI    = charDialoguesPanel.transform.Find("AddCharDialoguesUI").gameObject;
            addCharDialoguesPanel = addCharDialoguesUI.transform.Find("AddCharDialoguesPanel").gameObject;
            addCharDialogueList   = addCharDialoguesPanel.transform.Find("CharacterList").gameObject;
            activateAddCharBtn    = addCharDialoguesUI.transform.Find("ActivateAddCharBtn").gameObject;

            //PLAYER CHOICE RESULTS COMPONENTS
            playerChoiceResultsListUI = GetPanel().transform.Find("PlayerChoiceResultsListUI").gameObject;
            playerChoiceResultsPanel  = playerChoiceResultsListUI.transform.Find("Panel").gameObject;
            playerChoicesResultsList  = playerChoiceResultsPanel.GetComponentInChildren <VerticalLayoutGroup>().gameObject;
            //add
            newChoiceResultUI             = playerChoiceResultsPanel.transform.Find("NewChoiceResultUI").gameObject;
            displayNewChoiceResultBtn     = newChoiceResultUI.transform.Find("DisplayNewChoiceResultBtn").gameObject;
            newChoiceResultPanel          = newChoiceResultUI.transform.Find("Panel").gameObject;
            choiceResultOptionsScrollView = newChoiceResultPanel.GetComponentInChildren <ScrollRect>();
            selectedResultTypeList        = choiceResultOptionsScrollView.transform.Find("SelectedResultTypeList").gameObject;
            newChoiceResultListSearcher   = newChoiceResultPanel.GetComponentInChildren <ListSearcher>();



            newActivateWelshVocabListInfo = new ListDisplayInfo(
                DbQueries.GetNewActivateVocabPlayerChoiceResultQry,
                BuildNewChoiceResultActivateVocabBtn);
            newActivateGrammarListInfo = new ListDisplayInfo(
                DbQueries.GetNewActivateGrammarPlayerChoiceResultQry,
                BuildNewChoiceResultActivateGrammarBtn);
            newActivateDialogueListInfo = new ListDisplayInfo(
                DbQueries.GetNewActivateDialoguePlayerChoiceResultQry,
                BuildNewChoiceResultActivateDialogueBtn);

            mainDialogueListInfo = new ListDisplayInfo(
                DbQueries.GetDialogueDisplayQry,
                BuildDialogue);

            //display dialogue list
            FillDisplayFromDb(mainDialogueListInfo.GetMyDefaultQuery(), dialogueList.transform, mainDialogueListInfo.GetMyBuildMethod());
            mainDialogueListSearcher.SetSearchInfo(mainDialogueListInfo);

            selectedDialogue     = "selectedDialogue";
            selectedNode         = "selectedNode";
            selectedChoiceResult = "selectedChoiceResult";
            CreateSelectionToggleGroup(selectedDialogue);
            CreateSelectionToggleGroup(selectedChoiceResult);
            CreateSelectionToggleGroup(selectedNode);
        }