mirror of
https://github.com/CrispyPin/ovr-utils.git
synced 2024-11-22 15:40:25 +01:00
add zero padding to clock
This commit is contained in:
parent
2f1bc9d9c1
commit
553a5c65b8
2 changed files with 32 additions and 1 deletions
24
ovr-utils/export_presets.cfg
Normal file
24
ovr-utils/export_presets.cfg
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[preset.0]
|
||||||
|
|
||||||
|
name="Linux/X11"
|
||||||
|
platform="Linux/X11"
|
||||||
|
runnable=true
|
||||||
|
custom_features=""
|
||||||
|
export_filter="all_resources"
|
||||||
|
include_filter=""
|
||||||
|
exclude_filter=""
|
||||||
|
export_path="../builds/ovr-utils.x86_64"
|
||||||
|
script_export_mode=1
|
||||||
|
script_encryption_key=""
|
||||||
|
|
||||||
|
[preset.0.options]
|
||||||
|
|
||||||
|
custom_template/debug=""
|
||||||
|
custom_template/release=""
|
||||||
|
binary_format/64_bits=true
|
||||||
|
binary_format/embed_pck=true
|
||||||
|
texture_format/bptc=false
|
||||||
|
texture_format/s3tc=true
|
||||||
|
texture_format/etc=false
|
||||||
|
texture_format/etc2=false
|
||||||
|
texture_format/no_bptc_fallbacks=true
|
|
@ -5,4 +5,11 @@ func _ready() -> void:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
text = "%s:%s" % [OS.get_time().hour, OS.get_time().minute]
|
_update_time()
|
||||||
|
|
||||||
|
func _update_time():
|
||||||
|
var h = str(OS.get_time().hour)
|
||||||
|
var m = str(OS.get_time().minute)
|
||||||
|
h = h if len(h) == 2 else "0" + h
|
||||||
|
m = m if len(m) == 2 else "0" + m
|
||||||
|
text = "%s:%s" % [h, m]
|
||||||
|
|
Loading…
Reference in a new issue