diff --git a/godot/export_presets.cfg b/godot/export_presets.cfg index 57c68b0..cb14a5d 100644 --- a/godot/export_presets.cfg +++ b/godot/export_presets.cfg @@ -165,7 +165,7 @@ permissions/set_alarm=false permissions/set_always_finish=false permissions/set_animation_scale=false permissions/set_debug_app=false -permissions/set_orientation=false +permissions/set_orientation=true permissions/set_pointer_speed=false permissions/set_preferred_applications=false permissions/set_process_limit=false diff --git a/godot/main.gd b/godot/main.gd index 159bd4a..7fc10e9 100644 --- a/godot/main.gd +++ b/godot/main.gd @@ -2,6 +2,12 @@ extends Control # Called when the node enters the scene tree for the first time. func _ready(): + const margin_value = 25 + $MarginContainer.add_theme_constant_override("margin_top", margin_value) + $MarginContainer.add_theme_constant_override("margin_left", margin_value) + $MarginContainer.add_theme_constant_override("margin_bottom", margin_value) + $MarginContainer.add_theme_constant_override("margin_right", margin_value) + Global.state_changed.connect(_update_state) if Global.current_state == Global.State.UNLOADED: pass diff --git a/godot/project.godot b/godot/project.godot index 2c0efd8..d914bcb 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -23,6 +23,7 @@ Global="*res://global.gd" window/size/viewport_width=600 window/size/viewport_height=900 +window/handheld/orientation=1 [editor_plugins]