Exemplo n.º 1
0
 public void InitPosition(NodeAddedEvent e, RoundUserNode roundUser, [Context, JoinByUser] UserRowNode userRow)
 {
     base.Log.DebugFormat("InitPosition roundUser={0} position={1}", roundUser.Entity.Id, roundUser.roundUserStatistics.Place);
     userRow.scoreTableRow.HidePosition();
     userRow.scoreTableRow.Position = roundUser.roundUserStatistics.Place;
     userRow.scoreTableRow.SetLayoutDirty();
 }
 public void RemoveEmptyRow(NodeAddedEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableNode scoreTable)
 {
     if (scoreTable.scoreTableEmptyRowIndicators.emptyRows.Count > 0)
     {
         ScoreTableRowComponent row = scoreTable.scoreTableEmptyRowIndicators.emptyRows.Pop();
         scoreTable.scoreTable.RemoveRow(row);
     }
 }
 public void AddEmptyRow(NodeRemoveEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableNode scoreTable)
 {
     if (scoreTable.scoreTable.gameObject.activeInHierarchy)
     {
         ScoreTableRowComponent t = scoreTable.scoreTable.AddRow();
         scoreTable.scoreTableEmptyRowIndicators.emptyRows.Push(t);
         this.InitRow(t, scoreTable.scoreTableEmptyRowIndicators);
     }
 }
Exemplo n.º 4
0
 public void SetPosition(SetScoreTablePositionEvent e, RoundUserNode roundUser, [JoinByUser] UserRowNode userRow)
 {
     base.Log.DebugFormat("SetPosition roundUser={0} position={1}", roundUser.Entity.Id, e.Position);
     userRow.scoreTableRow.Position = e.Position;
 }
Exemplo n.º 5
0
 public void RemoveRow(NodeRemoveEvent e, UserNode user, [JoinByUser, Combine] UserRowNode row, [JoinByScoreTable, Mandatory] ScoreTableNode scoreTable)
 {
     scoreTable.scoreTable.RemoveRow(row.scoreTableRow);
 }
Exemplo n.º 6
0
 public void ColorizeSelfUserRow(NodeAddedEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableColorNode scoreTableColor, UserRowNode userRow1, [JoinByUser] SelfUserNode selfUser)
 {
     userRow.scoreTableRow.Color = scoreTableColor.scoreTableRowColor.selfRowColor;
 }
Exemplo n.º 7
0
 public void ColorizeRemoteUserRow(NodeAddedEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableColorNode scoreTableColor, [Context] UserRowNode userRow1, [JoinByUser] RemoteUserNode remoteUser)
 {
     userRow.scoreTableRow.Color = !remoteUser.Entity.HasComponent <AcceptedFriendComponent>() ? scoreTableColor.scoreTableRowColor.rowColor : scoreTableColor.scoreTableRowColor.friendRowColor;
 }