예제 #1
0
 public SquadScreenConfirmPerkUpgradeView(PerkVO perkData, SquadSlidingScreen screen, PerkUpgradeConfirmState state, Action onCloseCB)
 {
     this.perkToInvestIn = perkData;
     this.squadScreen    = screen;
     this.viewState      = state;
     this.onCloseCB      = onCloseCB;
     this.InitUI();
 }
예제 #2
0
        private SquadAdvancementBaseTab CreateAndAddUpgradeTab(SquadSlidingScreen screen)
        {
            Lang   lang           = Service.Lang;
            string tabLabelString = lang.Get("PERK_CONTEXT_UPGRADE", new object[0]);
            SquadAdvancementBaseTab squadAdvancementBaseTab = new SquadAdvancementUpgradeTab(screen, "LabelTabUpPerks", tabLabelString);

            this.allAdvancementTabs.Add(squadAdvancementBaseTab);
            return(squadAdvancementBaseTab);
        }
        private SquadAdvancementBaseTab CreateAndAddActivateTab(SquadSlidingScreen screen)
        {
            Lang   lang           = Service.Get <Lang>();
            string tabLabelString = lang.Get("PERK_CONTEXT_ACTIVATE", new object[0]);
            SquadAdvancementBaseTab squadAdvancementBaseTab = new SquadAdvancementActivateTab(screen, "LabelTabActPerks", tabLabelString);

            this.allAdvancementTabs.Add(squadAdvancementBaseTab);
            return(squadAdvancementBaseTab);
        }
예제 #4
0
 public SquadScreenChatView(SquadSlidingScreen screen) : base(screen)
 {
     this.timestampUpdateTimerId = 0u;
     this.chatFilter             = new SquadScreenChatFilterView(screen);
     this.chatInput                = new SquadScreenChatInputView(screen);
     this.donationProgress         = new SquadScreenChatTroopDonationProgressView(screen);
     this.ChatDisplaySetup         = false;
     this.numExistingMsgsProcessed = 0;
     this.existingMsgsProcessed    = null;
 }
예제 #5
0
 public SquadAdvancementActivateTab(SquadSlidingScreen screen, string tabLabelName, string tabLabelString) : base(screen, "ActivateGroupPerks", tabLabelName, tabLabelString)
 {
     this.activePerkTimerLabels = new List <UXLabel>();
     this.cooldownTimerLabels   = new List <UXLabel>();
     this.cooldownCostLabels    = new List <UXLabel>();
     this.perksGrid             = screen.GetElement <UXGrid>("GridAvActPerks");
     this.perksGrid.SetTemplateItem("TemplateAvActCardPerks");
     base.InitFilterGrid("GridActFilterPerks", "TemplateActFilterPerks", "BtnActFilterPerks", "LabelActFilterPerks", this.perksGrid);
     this.InitLabels();
     this.RefreshPerkStates();
 }
예제 #6
0
 public SquadAdvancementBaseTab(SquadSlidingScreen screen, string baseViewName, string tabLabelName, string tabLabelString)
 {
     this.perkBadgeMap          = new Dictionary <string, JewelControl>();
     this.filterMap             = new Dictionary <string, List <UXElement> >();
     this.screen                = screen;
     this.baseView              = screen.GetElement <UXElement>(baseViewName);
     this.tabLabel              = screen.GetElement <UXLabel>(tabLabelName);
     this.tabLabel.Text         = tabLabelString;
     this.perkInfoBtn           = screen.GetElement <UXButton>("BtnInfoPerks");
     this.perkInfoBtn.OnClicked = new UXButtonClickedDelegate(this.OnPerkInfoButtonClicked);
     Service.Get <EventManager>().RegisterObserver(this, EventId.SquadScreenOpenedOrClosed);
 }
예제 #7
0
 public SquadScreenChatTroopDonationProgressView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #8
0
 public SquadScreenOverviewView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #9
0
 public SquadScreenWarLogView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #10
0
 public SquadScreenChatFilterView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #11
0
 public SquadScreenUpgradeCelebPerkInfoView(SquadSlidingScreen screen, PerkVO targetPerkVO) : base(screen, targetPerkVO)
 {
     this.InitUI();
 }
예제 #12
0
 public SquadAdvancementUpgradeTab(SquadSlidingScreen screen, string tabLabelName, string tabLabelString) : base(screen, "UpgradeMainGroupPerks", tabLabelName, tabLabelString)
 {
     this.InitUI();
 }
예제 #13
0
 public SquadScreenAdvancementView(SquadSlidingScreen screen) : base(screen)
 {
     this.allAdvancementTabs = new List <SquadAdvancementBaseTab>();
 }
예제 #14
0
 public SquadScreenChatInputView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #15
0
 public SquadScreenTroopDonationView(SquadSlidingScreen screen) : base(screen)
 {
     this.troopsToDonate   = new Dictionary <string, int>();
     this.hasTroops        = false;
     this.hasEligibleTroop = false;
 }
예제 #16
0
 public SquadScreenWarButtonView(SquadSlidingScreen screen) : base(screen)
 {
 }
예제 #17
0
 public SquadScreenBasePerkInfoView(SquadSlidingScreen screen, PerkVO targetPerkVO)
 {
     this.squadScreen  = screen;
     this.targetPerkVO = targetPerkVO;
 }
 protected AbstractSquadScreenViewModule(SquadSlidingScreen screen)
 {
     this.screen = screen;
     this.lang   = Service.Get <Lang>();
 }
 public SquadScreenChatInputView(SquadSlidingScreen screen)
 {
     this.grayOut = new Color(0.157f, 0.157f, 0.157f);
     base..ctor(screen);
 }
 public SquadScreenActivationInfoView(SquadSlidingScreen screen, PerkVO targetPerkVO, bool isActivation) : base(screen, targetPerkVO)
 {
     this.isActivation = isActivation;
     this.InitUI();
 }
예제 #21
0
 public SquadScreenMembersView(SquadSlidingScreen screen) : base(screen)
 {
 }