示例#1
0
        public void OnScreenLoaded()
        {
            this.chapterActionButtonLabel = this.screen.GetElement <UXLabel>("LabelBtnChapterAction");
            this.pveMeshTexture           = this.screen.GetElement <UXMeshRenderer>("MeshPVEImage");
            this.chapterJewel             = this.screen.GetElement <UXElement>("ContainerJewelChapter");
            this.chapterButtonBackground  = this.screen.GetElement <UXSprite>("SpriteBkgBtnChapterAction");
            this.chapterStarsSprite       = this.screen.GetElement <UXSprite>("SpriteChapterSelectionStar");
            this.chapterLabel             = this.screen.GetElement <UXLabel>("LabelChapterNumber");
            this.nameLabel                         = this.screen.GetElement <UXLabel>("LabelChapterTitle");
            this.nameLabel.Visible                 = false;
            this.nameLabelOperationsLocked         = this.screen.GetElement <UXLabel>("LabelOperationsLocked");
            this.nameLabelOperationsLocked.Visible = false;
            this.progressLabel                     = this.screen.GetElement <UXLabel>("LabelChapterSelectionProgress");
            this.starsLabel                        = this.screen.GetElement <UXLabel>("LabelChapterSelectionStars");
            this.progressSlider                    = this.screen.GetElement <UXSlider>("ChapterSelectionPbar");
            this.pveContinueButton                 = this.screen.GetElement <UXButton>("BtnChapterAction");
            this.pveContinueButton.Enabled         = true;
            CampaignVO highestUnlockedCampaign = GameUtils.GetHighestUnlockedCampaign();

            this.alternateBackground = this.screen.GetElement <UXTexture>("TextureChapterBg");
            this.alternateBackground.LoadTexture("chap_btn_" + highestUnlockedCampaign.Uid);
            this.alternateButton           = this.screen.GetElement <UXButton>("BtnChapterActionTop");
            this.alternateButton.Enabled   = true;
            this.alternateButton.OnClicked = new UXButtonClickedDelegate(this.OnPveButtonClicked);
            this.screen.GetElement <UXLabel>("LabelBtnChapterActionTop").Text = Service.Get <Lang>().Get("LABEL_CAMPAIGNS", new object[0]);
            this.alternateGroup = this.screen.GetElement <UXElement>("ChapterButtonTop");
            UXElement element = this.screen.GetElement <UXElement>("ContainerJewelChapterTop");

            element.Visible = false;
            this.RefreshScreenForPlanetChange();
        }
示例#2
0
        private UXMeshRenderer CreateMeshRenderer(GameObject gameObject, MeshRenderer meshRenderer)
        {
            UXMeshRenderer uXMeshRenderer = new UXMeshRenderer(this.uxCamera, meshRenderer);

            this.AddElement(gameObject.name, uXMeshRenderer);
            return(uXMeshRenderer);
        }
示例#3
0
        private void InitPvpPanel()
        {
            this.screen.GetElement <UXLabel>("LabelBattleCost").Text = base.LangController.Get("s_Cost", new object[0]);
            this.battleActionButtonLabel      = this.screen.GetElement <UXLabel>("LabelBtnBattleAction");
            this.battleActionButtonLabel.Text = base.LangController.Get("s_FindMatch", new object[0]);
            int     pvpMatchCost = Service.Get <PvpManager>().GetPvpMatchCost();
            UXLabel element      = this.screen.GetElement <UXLabel>("LabelBattleCostAmount");

            element.Text           = base.LangController.ThousandsSeparated(pvpMatchCost);
            this.pveContinueButton = this.screen.GetElement <UXButton>("BtnChapterAction");
            this.pvpAttackButton   = this.screen.GetElement <UXButton>("BtnBattleAction");
            this.battleCost        = this.screen.GetElement <UXElement>("BattleCost");
            this.labelBattleLocked = this.screen.GetElement <UXLabel>("LabelBattleLocked");
            this.labelBattleTitle  = this.screen.GetElement <UXLabel>("LabelBattleTitle");
            this.pvpMeshTexture    = this.screen.GetElement <UXMeshRenderer>("MeshPVPImage");
            int playerMedals = base.Player.PlayerMedals;

            this.screen.GetElement <UXLabel>("LabelMedalCount").Text = playerMedals.ToString();
            this.tournamentMedalsGroup  = this.screen.GetElement <UXElement>("TournamentMedalCount");
            this.tournamentMedalsLabel  = this.screen.GetElement <UXLabel>("LabelTournamentMedalCount");
            this.tournamentMedalsSprite = this.screen.GetElement <UXSprite>("SpriteTournamentMedalCount");
        }