void Start()
        {
            dialogueNodesListUI = FindObjectOfType <DialogueNodesListUI>();
            //PLAYER CHOICE COMPONENTS
            playerChoicesList = GetPanel().transform.Find("PlayerChoicesList").gameObject;

            SelectedChoice = "selectedChoice";
            CreateSelectionToggleGroup(SelectedChoice);
        }
示例#2
0
 // Use this for initialization
 void Start()
 {
     dialogueNodesListUI = FindObjectOfType <DialogueNodesListUI>();
     playerChoicesListUI = FindObjectOfType <PlayerChoicesListUI>();
     print(playerChoicesListUI);
     choiceDropdown = GetPanel().GetComponentInChildren <Dropdown>();
     displayPlayerChoiceDetailsBtn = transform.Find("DisplayPlayerChoiceDetailsBtn").gameObject;
     inputChoiceText = GetPanel().transform.GetComponentInChildren <InputField>();
     NodeType        = "NodeType";
     CreateSelectionToggleGroup(NodeType);
 }
 // Use this for initialization
 void Start()
 {
     dialogueUI              = FindObjectOfType <DialogueUI>();
     dialogueNodesListUI     = FindObjectOfType <DialogueNodesListUI>();
     endDialogueOptionToggle = GetPanel().transform.GetComponentInChildren <Toggle>();
     //dialogueNodesList = transform.parent.Find("ScrollView").GetComponentInChildren<VerticalLayoutGroup>().gameObject;
     nodeTypeDropdown = GetPanel().GetComponentInChildren <Dropdown>();
     displayDialogueNodeDetailsBtn = transform.Find("ActivateNodeDetailsBtn").gameObject;
     inputNodeText = GetPanel().transform.GetComponentInChildren <InputField>();
     NodeType      = "NodeType";
     CreateSelectionToggleGroup(NodeType);
     playerChoicesListUI  = FindObjectOfType <PlayerChoicesListUI>();
     nodeSpeakerBtn       = GetPanel().transform.Find("NodeSpeakerBtn").gameObject;
     selectNodeSpeakersUI = GetPanel().transform.Find("SelectNodeSpeakersUI").gameObject;
     charOverrideList     = selectNodeSpeakersUI.transform.Find("Panel").GetComponentInChildren <VerticalLayoutGroup>().gameObject;
 }
示例#4
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);
        }