mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
print app info
This commit is contained in:
parent
42a170687d
commit
262f14caeb
1 changed files with 11 additions and 0 deletions
|
@ -1,10 +1,15 @@
|
|||
extends RichTextLabel
|
||||
|
||||
const APP_NAME: String = "TheGates"
|
||||
const WEB_SITE: String = "https://thegates.io"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
Debug.logged.connect(add_log)
|
||||
meta_clicked.connect(on_meta_clicked)
|
||||
|
||||
print_app_info()
|
||||
|
||||
|
||||
func add_log(msg: String) -> void:
|
||||
append_text(msg + "\n")
|
||||
|
@ -12,3 +17,9 @@ func add_log(msg: String) -> void:
|
|||
|
||||
func on_meta_clicked(meta) -> void:
|
||||
OS.shell_open(str(meta))
|
||||
|
||||
|
||||
func print_app_info() -> void:
|
||||
var version: String = ProjectSettings.get_setting("application/config/version")
|
||||
var platform: String = OS.get_name()
|
||||
Debug.logr("%s %s v%s - [url]%s[/url]" % [APP_NAME, platform, version, WEB_SITE])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue