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); } }
public void UpdateRankName(UpdateRankEvent e, UserNode user, [JoinByUser, Combine] RankNameNode rankName, [JoinAll] SingleNode <RanksNamesComponent> ranksNames) { rankName.rankName.RankName = ranksNames.component.Names[user.userRank.Rank]; }
public void UpdateRank(UpdateRankEvent e, UserRankNode userRank, [JoinByUser, Combine] RankIconNode rankIcon) { rankIcon.rankIcon.SetRank(userRank.userRank.Rank); }
public void UpdateRank(UpdateRankEvent e, [Combine] SelfUserRankNode userRank, [Combine, JoinAll] SingleNode <SelfUserAvatarComponent> selfUserAvatar) { selfUserAvatar.component.SetRank(userRank.userRank.Rank); }
public void PlayUpdateUserRankEffect(UpdateRankEvent e, UserRankNode user, [JoinByUser] NotReadyTankNode tank) { tank.Entity.AddComponent <UpdateUserRankEffectReadyComponent>(); }
public void UpdateRank(UpdateRankEvent e, Rank rank, [JoinAll] SingleNode <AvatarUIComponent> avatarUi) { avatarUi.component.UpdateRank(rank.userRank.Rank); }