new startup options
This commit is contained in:
18
game/Scripts/StartupOptions.gd
Normal file
18
game/Scripts/StartupOptions.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends Node2D
|
||||
@export var UseNativeDisplaySize = false
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
if UseNativeDisplaySize:
|
||||
print("Using Native Display 0 Size : " + str(DisplayServer.screen_get_size(0)))
|
||||
get_viewport().size = DisplayServer.screen_get_size(0)
|
||||
|
||||
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
1
game/Scripts/StartupOptions.gd.uid
Normal file
1
game/Scripts/StartupOptions.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://chbq0wiah2mov
|
||||
Reference in New Issue
Block a user