Compare commits

..

No commits in common. "28b067cee1dcddbf71fbeda22318d5ac0b291d30" and "548e93e861aecfc3c682369552677afe29bc5a7b" have entirely different histories.

2 changed files with 11 additions and 19 deletions

View File

@ -8,6 +8,16 @@
config_version=4 config_version=4
_global_script_classes=[ {
"base": "EditorVCSInterface",
"class": "GitAPI",
"language": "NativeScript",
"path": "res://addons/godot-git-plugin/git_api.gdns"
} ]
_global_script_class_icons={
"GitAPI": ""
}
[application] [application]
config/name="LD54" config/name="LD54"
@ -19,15 +29,11 @@ config/icon="res://icon.png"
[autoload] [autoload]
Global="*res://src/global.gd" Global="*res://src/global.gd"
Window="*res://src/window.gd"
[display] [display]
window/size/width=320 window/size/width=320
window/size/height=180 window/size/height=180
window/size/test_width=1280
window/size/test_height=720
window/handheld/orientation="sensor_landscape"
window/stretch/mode="viewport" window/stretch/mode="viewport"
window/stretch/aspect="keep" window/stretch/aspect="keep"
@ -38,7 +44,7 @@ version_control_plugin_name="GitAPI"
[gdnative] [gdnative]
singletons=[ ] singletons=[ "res://addons/godot-git-plugin/git_api.gdnlib" ]
[global] [global]

View File

@ -1,22 +1,8 @@
extends Node extends Node
func _ready(): func _ready():
set_process_input(true)
_change_window_title("Hello World!") _change_window_title("Hello World!")
OS.min_window_size = Vector2(320, 180) OS.min_window_size = Vector2(320, 180)
func _change_window_title(_title): func _change_window_title(_title):
OS.set_window_title(ProjectSettings.get_setting("application/config/name") + " - " + _title) OS.set_window_title(ProjectSettings.get_setting("application/config/name") + " - " + _title)
func _input(event):
if event is InputEventKey and event.scancode == 16777254 and event.pressed: #scancode 16777254 == KEY_F11
if OS.window_fullscreen == true:
OS.window_fullscreen = false
else:
OS.window_fullscreen = true
#if event is InputEventMouseButton and event.button_index == 1:
# Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
#if event is InputEventKey and event.scancode == 16777240 and event.pressed: #scancode 16777240 == KEY_ALT
# Input.mouse_mode = Input.MOUSE_MODE_VISIBLE