Differential D2391 Diff 10207 ps/trunk/binaries/data/mods/public/gui/common/OverlayCounterRealtime.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/common/OverlayCounterRealtime.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* Shows the current time to the player in their current timezone. | |||||
*/ | |||||
OverlayCounterTypes.prototype.Realtime = class extends OverlayCounter | |||||
{ | |||||
constructor(overlayCounterManager) | |||||
{ | |||||
super(overlayCounterManager); | |||||
this.date = new Date(); | |||||
} | |||||
get() | |||||
{ | |||||
this.date.setTime(Date.now()); | |||||
return this.date.toLocaleTimeString(); | |||||
} | |||||
}; | |||||
OverlayCounterTypes.prototype.Realtime.prototype.Config = "overlay.realtime"; | |||||
OverlayCounterTypes.prototype.Realtime.prototype.Hotkey = "realtime.toggle"; |
Wildfire Games · Phabricator