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); } }
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; }
public void RemoveRow(NodeRemoveEvent e, UserNode user, [JoinByUser, Combine] UserRowNode row, [JoinByScoreTable, Mandatory] ScoreTableNode scoreTable) { scoreTable.scoreTable.RemoveRow(row.scoreTableRow); }
public void ColorizeSelfUserRow(NodeAddedEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableColorNode scoreTableColor, UserRowNode userRow1, [JoinByUser] SelfUserNode selfUser) { userRow.scoreTableRow.Color = scoreTableColor.scoreTableRowColor.selfRowColor; }
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; }