public void Awake()
    {
        DialogBoxGO = GameObject.Find("Dialog Boxes");

        GameObject tempGoObj;

        tempGoObj         = CreateDialogGO("DB_SaveFile", "Save File");
        dialogBoxSaveGame = tempGoObj.GetComponent <DialogBoxSaveGame>();

        tempGoObj         = CreateDialogGO("DB_LoadFile", "Load File");
        dialogBoxLoadGame = tempGoObj.GetComponent <DialogBoxLoadGame>();

        tempGoObj        = CreateDialogGO("DB_Options", "Options");
        dialogBoxOptions = tempGoObj.GetComponent <DialogBoxOptions>();

        tempGoObj         = CreateDialogGO("DB_Settings", "Settings");
        dialogBoxSettings = tempGoObj.GetComponent <DialogBoxSettings>();

        tempGoObj      = CreateDialogGO("DB_Trade", "Trade");
        dialogBoxTrade = tempGoObj.GetComponent <DialogBoxTrade>();

        tempGoObj           = CreateDialogGO("DB_AreYouSure", "Are You Sure");
        dialogBoxAreYouSure = tempGoObj.GetComponent <DialogBoxAreYouSure>();

        tempGoObj        = CreateDialogGO("DB_JobList", "Job List");
        dialogBoxJobList = tempGoObj.GetComponent <DialogBoxJobList>();

        tempGoObj       = CreateDialogGO("DB_Quests", "Quests");
        dialogBoxQuests = tempGoObj.GetComponent <DialogBoxQuests>();
        AddQuestList();
    }
Пример #2
0
    public void Awake()
    {
        DialogBoxGO = GameObject.Find("Dialog Boxes");

        GameObject tempGoObj;

        tempGoObj         = CreateDialogGO("DB_SaveFile", "Save File");
        dialogBoxSaveGame = tempGoObj.GetComponent <DialogBoxSaveGame>();

        tempGoObj         = CreateDialogGO("DB_LoadFile", "Load File");
        dialogBoxLoadGame = tempGoObj.GetComponent <DialogBoxLoadGame>();

        tempGoObj        = CreateDialogGO("DB_Options", "Options");
        dialogBoxOptions = tempGoObj.GetComponent <DialogBoxOptions>();

        tempGoObj         = CreateDialogGO("DB_Settings", "Settings");
        dialogBoxSettings = tempGoObj.GetComponent <DialogBoxSettings>();

        tempGoObj      = CreateDialogGO("DB_Trade", "Trade");
        dialogBoxTrade = tempGoObj.GetComponent <DialogBoxTrade>();

        tempGoObj             = CreateDialogGO("DB_PromptOrInfo", "Prompt or Info");
        dialogBoxPromptOrInfo = tempGoObj.GetComponent <DialogBoxPromptOrInfo>();

        tempGoObj        = CreateDialogGO("DB_JobList", "Job List");
        dialogBoxJobList = tempGoObj.GetComponent <DialogBoxJobList>();

        tempGoObj       = CreateDialogGO("DB_Quests", "Quests");
        dialogBoxQuests = tempGoObj.GetComponent <DialogBoxQuests>();
        AddQuestList();

        AddMainMenuItems();
    }
Пример #3
0
    public void Awake()
    {
        DialogBoxes = new Dictionary <string, DialogBox>();
        DialogBoxGO = GameObject.Find("Dialog Boxes");

        GameObject tempGoObj;

        tempGoObj                = CreateDialogGO("DB_LoadFile", "Load File");
        dialogBoxLoadGame        = tempGoObj.GetComponent <DialogBoxLoadGame>();
        DialogBoxes["Load File"] = dialogBoxLoadGame;

        tempGoObj               = CreateDialogGO("DB_Settings", "Settings");
        dialogBoxSettings       = tempGoObj.GetComponent <DialogBoxSettings>();
        DialogBoxes["Settings"] = dialogBoxSettings;

        // Added for more dev options
        tempGoObj = CreateDialogGO("DB_Settings-Developer", "Developer Settings");
        dialogBoxSettings.devOptions = tempGoObj.GetComponent <DialogBoxSettingsDeveloper>();

        tempGoObj                     = CreateDialogGO("DB_PromptOrInfo", "Prompt or Info");
        dialogBoxPromptOrInfo         = tempGoObj.GetComponent <DialogBoxPromptOrInfo>();
        DialogBoxes["Prompt or Info"] = dialogBoxPromptOrInfo;

        if (SceneController.Instance.IsAtMainScene())
        {
            tempGoObj                = CreateDialogGO("DB_SaveFile", "Save File");
            dialogBoxSaveGame        = tempGoObj.GetComponent <DialogBoxSaveGame>();
            DialogBoxes["Save File"] = dialogBoxSaveGame;

            tempGoObj              = CreateDialogGO("DB_Options", "Options");
            dialogBoxOptions       = tempGoObj.GetComponent <DialogBoxOptions>();
            DialogBoxes["Options"] = dialogBoxOptions;

            tempGoObj            = CreateDialogGO("DB_Trade", "Trade");
            dialogBoxTrade       = tempGoObj.GetComponent <DialogBoxTrade>();
            DialogBoxes["Trade"] = dialogBoxTrade;

            tempGoObj               = CreateDialogGO("DB_JobList", "Job List");
            dialogBoxJobList        = tempGoObj.GetComponent <DialogBoxJobList>();
            DialogBoxes["Job List"] = dialogBoxJobList;

            tempGoObj             = CreateDialogGO("DB_Quests", "Quests");
            dialogBoxQuests       = tempGoObj.GetComponent <DialogBoxQuests>();
            DialogBoxes["Quests"] = dialogBoxQuests;
            AddQuestList();
            LoadModdedDialogBoxes();
            AddMainMenuItems();
        }
    }
Пример #4
0
    public void Awake()
    {
        GameObject controllers = GameObject.Find("Dialog Boxes");
        GameObject tempGoObj;

        mc = GameObject.Find("Dialog Boxes").GetComponent <MenuController>();

        tempGoObj         = (GameObject)Instantiate(Resources.Load("UI/DB_SaveFile"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name    = "Save File";
        dialogBoxSaveGame = tempGoObj.GetComponent <DialogBoxSaveGame>();

        tempGoObj         = (GameObject)Instantiate(Resources.Load("UI/DB_LoadFile"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name    = "Load File";
        dialogBoxLoadGame = tempGoObj.GetComponent <DialogBoxLoadGame>();

        tempGoObj        = (GameObject)Instantiate(Resources.Load("UI/DB_Options"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name   = "Options";
        dialogBoxOptions = tempGoObj.GetComponent <DialogBoxOptions>();

        tempGoObj         = (GameObject)Instantiate(Resources.Load("UI/DB_Settings"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name    = "Settings";
        dialogBoxSettings = tempGoObj.GetComponent <DialogBoxSettings>();

        tempGoObj      = (GameObject)Instantiate(Resources.Load("UI/DB_Trade"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name = "Trade";
        dialogBoxTrade = tempGoObj.GetComponent <DialogBoxTrade>();

        tempGoObj           = (GameObject)Instantiate(Resources.Load("UI/DB_AreYouSure"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name      = "Are You Sure";
        dialogBoxAreYouSure = tempGoObj.GetComponent <DialogBoxAreYouSure>();

        tempGoObj       = (GameObject)Instantiate(Resources.Load("UI/DB_Quests"), controllers.transform.position, controllers.transform.rotation, controllers.transform);
        tempGoObj.name  = "Quests";
        dialogBoxQuests = tempGoObj.GetComponent <DialogBoxQuests>();
        AddQuestList();
    }
 public void SetupQuest(DialogBoxQuests parent, Quest item)
 {
     parentDialogBoxQuests = parent;
     SetupQuest(item);
 }