diff options
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() | 
