Feature #283

Add local time (cg_drawTime)

Added by Spyhawk about 6 years ago. Updated about 6 years ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:Jacker
Category:Mod CGAME
Target version:2.71rc2
OS: Arch:

Description

Add cg_drawTime, cg_drawTimeSeconds, to draw local time.

  • cg_drawTime can be 0 (not displayed), 1 (24 hr clock) or 2 (12 hour clock with am/pm).
  • cg_drawTimeSeconds will display seconds

This is a crucial feature in order not to miss an appointment or not to forget to go to bed before dawn.

Associated revisions

Revision 1b27c74e
Added by Jacker about 6 years ago

cgame: added cg_drawTime cvar and functionality, refs #283

Revision e4303ae5
Added by Jacker about 6 years ago

cgame: added cg_drawTimeSeconds, refs #283

Revision 70ca9c4f
Added by Spyhawk about 6 years ago

cgame: fixed cg_drawTimeSeconds and added leading zero, refs #283

cg_drawTimeSeconds 1 displays seconds, 0 is disabled. Also use ':' instead
of '.' for second delimiter, and always use double digit for sec, min. Use
double digit for hours unless the 12 hours format is selected.

Revision 5db7feb6
Added by Jacker about 6 years ago

Merge pull request #50 from Spyhawk/clock

cgame: fixed cg_drawTimeSeconds and added leading zero, refs #283

History

#1 Updated by Jacker about 6 years ago

  • Assignee set to Jacker

#2 Updated by Jacker about 6 years ago

  • % Done changed from 0 to 90

cg_drawTime is now functional (0/1/2) cg_drawTimeSeconds is not yet implemented and i aint sure if I even bother with it.

#3 Updated by Jacker about 6 years ago

  • Status changed from New to Fixed
  • Target version changed from 2.78 to 2.71rc2
  • % Done changed from 90 to 100

Implemented cg_drawTimeSeconds anyway so this is now done and finished.

#4 Updated by IR4T4 about 6 years ago

Errrm ... why you don’t do bitflags? ... 2 cvars are just a waste

#5 Updated by Jacker about 6 years ago

Thats what i thought initially, but then again if people are used to this then let them have it.. You can change it if you wish

#6 Updated by IR4T4 about 6 years ago

Yes please. I mean it’s such a rarely used feature - most players don’t want an additional permanent 'blinky’ area anyway. We have the wiki and finally a menu entry (RaFal?) so players will find a way to set the seconds in the clock.

Also available in: Atom PDF