Skip to content

Commit

Permalink
Added timestamp to phase switch time when appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Restitution-Dip committed Mar 24, 2020
1 parent 42ec7a5 commit 312c82c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions css/gamepanel.css
Expand Up @@ -110,6 +110,10 @@
.gamePotType {
font-style:italic;
}

.timestampGames {
font-weight:bold;
}
div.memberBoardHeader {
padding:0 !important;
border:0;
Expand Down
15 changes: 5 additions & 10 deletions gamepanel/game.php
Expand Up @@ -204,22 +204,17 @@ function phaseSwitchInfo()
}


if ($this->startTime > 0)
{

if ($this->startTime > 0) {

$timeWhenSwitch = (($this->phaseSwitchPeriod * 60) + $this->startTime);

if ($this->processTime >= $timeWhenSwitch){
if ($this->processTime >= $timeWhenSwitch) {
$buf .= l_t('<div>Phase switch: <strong>End Of Phase</strong></div>', $timeWhenSwitch);
}

else {
} else {
$timeWhenSwitch = libTime::remainingText($timeWhenSwitch);
$buf .= l_t('<div>Phase switch: <strong>%s</strong></div>', $timeWhenSwitch);
$buf .= l_t('<div>Phase switch: <strong>%s</strong>', $timeWhenSwitch) . ' (' . libTime::detailedText($timeWhenSwitch) . ')</div>';
}

}

else {
$timeTillNextPhase = libTime::timeLengthText($this->phaseSwitchPeriod * 60);

Expand Down

0 comments on commit 312c82c

Please sign in to comment.