diff options
| author | tpart <tpart120@proton.me> | 2024-06-26 22:46:41 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-06-26 22:46:41 +0200 | 
| commit | c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c (patch) | |
| tree | b93bba8b0ae653174e9a68b76137573e47c74bb5 /client/global.gd | |
| parent | b4b104991b755e334eeee81ed8ede66e0e2a90eb (diff) | |
| download | hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.bz2 hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.zst | |
Fix colors on OpenGL
Diffstat (limited to 'client/global.gd')
| -rw-r--r-- | client/global.gd | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/client/global.gd b/client/global.gd index ee1e3e96..42a5eac2 100644 --- a/client/global.gd +++ b/client/global.gd @@ -72,6 +72,16 @@ func load_dict(path: String, default: Dictionary) -> Dictionary:  	print("Loaded dict: ", res)  	return res +func on_vulkan() -> bool: +	if OS.has_feature("web"): +		return false +	elif OS.has_feature("pc"): +		return true +	elif OS.has_feature("mobile"): +		return false +	push_error("Unknown platform, assuming vulkan") +	return true +  func focus_first_button(node: Node) -> bool:  	if node is Button:  		node.grab_focus() | 
