예제 #1
0
 public void SetSelfUserTeamColor(NodeAddedEvent e, SelfBattleLobbyUser selfUserNode, [JoinByBattleLobby] LobbyNode lobby, [JoinAll, Context] LobbyUINode ui)
 {
     ui.matchLobbyGUI.UserTeamColor = !lobby.Entity.HasComponent <CustomBattleLobbyComponent>() ? TeamColor.NONE : selfUserNode.teamColor.TeamColor;
 }
예제 #2
0
 public void SelfUserInLobby(NodeAddedEvent e, SelfBattleLobbyUser selfBattleLobbyUser, [JoinAll] ProfileScreenWithUserGroupNode profileScreen)
 {
     this.HideSpectatorButton(profileScreen);
 }
예제 #3
0
        public void MatchLobbyGUIAdded(NodeAddedEvent e, LobbyUINode matchLobbyGUI, [Combine, JoinByBattleLobby, Context] UserNode userNode, [JoinByBattleLobby] Optional <CustomLobbyNode> customLobby, [JoinAll] SelfBattleLobbyUser selfBattleLobbyUser)
        {
            bool selfUser = userNode.userGroup.Key == selfBattleLobbyUser.userGroup.Key;

            matchLobbyGUI.matchLobbyGUI.AddUser(userNode.Entity, selfUser, ((userNode.Entity.HasComponent <SquadGroupComponent>() && selfBattleLobbyUser.Entity.HasComponent <SquadGroupComponent>()) && (userNode.Entity.GetComponent <SquadGroupComponent>().Key == selfBattleLobbyUser.Entity.GetComponent <SquadGroupComponent>().Key)) || customLobby.IsPresent());
        }