Exemplo n.º 1
0
    public void InitialzeCampaignPanel()
    {
        gameObject.SetActive(true);

        manager.SetCurrentActiveObject(this.gameObject);

        PopulateCampaignText();
    }
Exemplo n.º 2
0
    public void InitBuffPanel()
    {
        creationManager.SetCurrentActiveObject(this.gameObject);

        buffDB = creationManager.currentCampaign.contentLibrary.buffDatabase;

        PrintList();
    }
Exemplo n.º 3
0
    public void InitEditingPanel(Campaign campaign)
    {
        currCampaign = campaign;

        manager.SetCurrentActiveObject(this.gameObject);

        gameObject.SetActive(true);
        tileSelectionPanel.InitTilePanel(currCampaign);

        PrintMapList();
    }
Exemplo n.º 4
0
    public void PopulateSkillList()
    {
        manager.SetCurrentActiveObject(this.gameObject);

        foreach (string item in manager.currentCampaign.contentLibrary.skillDatabase.DbKeys())
        {
            TextButton t = Instantiate <TextButton>(prefab, list.contentTransform);
            list.AddToList(t);

            t.ChangeText(item);

            t.button.onClick.AddListener(delegate { DisplaySkillInfo(item); });
        }
    }
Exemplo n.º 5
0
    public void InitEditTileTypePanel()
    {
        creationManager.SetCurrentActiveObject(this.gameObject);
        gameObject.SetActive(true);
        container = creationManager.currentCampaign.GetTileDatabaseContainer();


        if (creationManager.currentCampaign != null)
        {
            ClearButtons();
            PrintTileTypeBUttons();
            PrintNewTileButton();
        }
    }
Exemplo n.º 6
0
    public void InitLoadCampaignPanel()
    {
        ClearButtons();

        List <string> files = Globals.ParseFileNames(FilePath.CampaignFolder, FilePath.CampExt);

        foreach (string item in files)
        {
            Button t = Instantiate <Button>(prefab, container);
            t.transform.GetChild(0).GetComponent <Text>().text = item;
            t.onClick.AddListener(delegate { CampaignButtonClicked(item); });
            campaignButtons.Add(t);
        }



        gameObject.SetActive(true);
        manager.SetCurrentActiveObject(this.gameObject);
    }