Skip to content

Commit

Permalink
Add overtime notification near the clock
Browse files Browse the repository at this point in the history
  • Loading branch information
adem4ik committed Dec 21, 2016
1 parent 3b0e497 commit 9fba12d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
7 changes: 5 additions & 2 deletions inc/adem/clock.hud
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ moveCursor +0.5, +0.5
moveCursor 0 -30
setFontFamily "Droid Sans"
setFontSize %VIDHEIGHT / 42
setColor 0.4 1 0.4 0.5
if %MATCH_STATE == #MATCH_STATE_WARMUP && %RACE == 0
setColor 0.4 1 0.4 0.5
drawString "Warmup"
endif
endif
if %OVERTIME
drawString "Overtime"
endif
7 changes: 5 additions & 2 deletions inc/clock.hud
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ moveCursor -2, -2 //colored clock position
setSize 32 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 32
drawClock

//draws Warmup
// MATCH STATES
setFontFamily con_fontSystem
setFontSize %VIDHEIGHT / 48
setAlign 2 1
setCursor #WIDTH / 2, 50
setColor 0.4 1 0.4 0.5
if %MATCH_STATE == #MATCH_STATE_WARMUP
setColor 0.4 1 0.4 0.5
drawString "Warmup"
endif
if %OVERTIME
drawString "Overtime"
endif
15 changes: 9 additions & 6 deletions inc/default/clock.hud
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ drawClock
setSize 120 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 40
touchScores

// Warmup
// MATCH STATES
setFontFamily con_fontSystem
setFontSize %VIDHEIGHT / 48
setAlign 2 1
setCursor #WIDTH / 2, 40
setColor 0.4 1 0.4 0.5
if %MATCH_STATE == #MATCH_STATE_WARMUP
setFontFamily con_fontSystem
setFontSize %VIDHEIGHT / 48
setAlign 2 1
setCursor #WIDTH / 2, 40
setColor 0.4 1 0.4 0.5
drawString "Warmup"
endif
if %OVERTIME
drawString "Overtime"
endif
13 changes: 8 additions & 5 deletions inc/spec/clock.hud
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ setColor 1 1 1 0.95
drawClock
setFontStyle "normal"

// draws Warmup
// MATCH STATES
moveCursor 0, 27
setFontFamily con_fontSystem
setFontSize %VIDHEIGHT / 43
setColor 0.4 1 0.4 0.5
if %MATCH_STATE == #MATCH_STATE_WARMUP
moveCursor 0, 27
setFontFamily con_fontSystem
setFontSize %VIDHEIGHT / 43
setColor 0.4 1 0.4 0.5
drawString "Warmup"
endif
if %OVERTIME
drawString "Overtime"
endif

0 comments on commit 9fba12d

Please sign in to comment.