diff --git a/ovr-utils/export_presets.cfg b/ovr-utils/export_presets.cfg new file mode 100644 index 0000000..13ae1b4 --- /dev/null +++ b/ovr-utils/export_presets.cfg @@ -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 diff --git a/ovr-utils/overlays/time.gd b/ovr-utils/overlays/time.gd index 8d93746..84c9598 100644 --- a/ovr-utils/overlays/time.gd +++ b/ovr-utils/overlays/time.gd @@ -5,4 +5,11 @@ func _ready() -> void: pass 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]