Exemplo n.º 1
0
        public void RefreshItemSelectUI(UpdateRankEvent evt, Node node, [JoinAll] SingleNode <MainScreenComponent> screen)
        {
            ItemSelectUI tui = Object.FindObjectOfType <ItemSelectUI>();

            if (tui)
            {
                tui.RefreshSelection();
            }
        }
        public void ShowUserRankRestrictionIndicator(UpdateRankEvent e, SelfUserNode selfUser, [JoinAll, Combine] MarketItemWithUserRankRestrictionNode item)
        {
            CheckMarketItemRestrictionsEvent eventInstance = new CheckMarketItemRestrictionsEvent();

            base.ScheduleEvent(eventInstance, item);
            if (!eventInstance.RestrictedByRank)
            {
                item.userRankRestrictionBadgeGUI.SendMessageUpwards("OnItemEnabled", SendMessageOptions.DontRequireReceiver);
                item.userRankRestrictionBadgeGUI.gameObject.SetActive(false);
            }
        }
Exemplo n.º 3
0
 public void UpdateRankName(UpdateRankEvent e, UserNode user, [JoinByUser, Combine] RankNameNode rankName, [JoinAll] SingleNode <RanksNamesComponent> ranksNames)
 {
     rankName.rankName.RankName = ranksNames.component.Names[user.userRank.Rank];
 }
Exemplo n.º 4
0
 public void UpdateRank(UpdateRankEvent e, UserRankNode userRank, [JoinByUser, Combine] RankIconNode rankIcon)
 {
     rankIcon.rankIcon.SetRank(userRank.userRank.Rank);
 }
Exemplo n.º 5
0
 public void UpdateRank(UpdateRankEvent e, [Combine] SelfUserRankNode userRank, [Combine, JoinAll] SingleNode <SelfUserAvatarComponent> selfUserAvatar)
 {
     selfUserAvatar.component.SetRank(userRank.userRank.Rank);
 }
Exemplo n.º 6
0
 public void PlayUpdateUserRankEffect(UpdateRankEvent e, UserRankNode user, [JoinByUser] NotReadyTankNode tank)
 {
     tank.Entity.AddComponent <UpdateUserRankEffectReadyComponent>();
 }
Exemplo n.º 7
0
 public void UpdateRank(UpdateRankEvent e, Rank rank, [JoinAll] SingleNode <AvatarUIComponent> avatarUi)
 {
     avatarUi.component.UpdateRank(rank.userRank.Rank);
 }