Fix stupid shit
This commit is contained in:
parent
34caa75e83
commit
7bcf440eea
4 changed files with 6 additions and 6 deletions
|
@ -76,7 +76,7 @@ custom_minimum_size = Vector2(40, 40)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
size_flags_vertical = 4
|
size_flags_vertical = 4
|
||||||
tooltip_text = "Save and exit."
|
tooltip_text = "Reset your configuration."
|
||||||
theme_override_fonts/font = ExtResource("2_pm82g")
|
theme_override_fonts/font = ExtResource("2_pm82g")
|
||||||
theme_override_font_sizes/font_size = 24
|
theme_override_font_sizes/font_size = 24
|
||||||
text = "reset_settings"
|
text = "reset_settings"
|
||||||
|
|
|
@ -85,8 +85,8 @@ var bpm_increase:Array[Key] = [ KEY_R ]
|
||||||
var bpm_decrease:Array[Key] = [ KEY_F ]
|
var bpm_decrease:Array[Key] = [ KEY_F ]
|
||||||
var bpm_tsincrease:Array[Key] = [ KEY_T ]
|
var bpm_tsincrease:Array[Key] = [ KEY_T ]
|
||||||
var bpm_tsdecrease:Array[Key] = [ KEY_G ]
|
var bpm_tsdecrease:Array[Key] = [ KEY_G ]
|
||||||
var bpm_opaincrease:Array[Key] = [ KEY_BRACELEFT ]
|
var bpm_opaincrease:Array[Key] = [ KEY_Y ]
|
||||||
var bpm_opadecrease:Array[Key] = [ KEY_BRACERIGHT ]
|
var bpm_opadecrease:Array[Key] = [ KEY_H ]
|
||||||
var bpm_reset:Array[Key] = [ KEY_V ]
|
var bpm_reset:Array[Key] = [ KEY_V ]
|
||||||
|
|
||||||
# Bind modifiers
|
# Bind modifiers
|
||||||
|
|
|
@ -4,6 +4,8 @@ extends Config
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
load_from_file()
|
load_from_file()
|
||||||
|
bind_keys()
|
||||||
|
print(InputMap.get_actions())
|
||||||
|
|
||||||
func bind_keys() -> void:
|
func bind_keys() -> void:
|
||||||
bind_all_keys(self.bpm_increase, "bpm_increase")
|
bind_all_keys(self.bpm_increase, "bpm_increase")
|
||||||
|
@ -58,5 +60,3 @@ func load_from_file() -> void:
|
||||||
var value = config.get_value("FunkPanion", key)
|
var value = config.get_value("FunkPanion", key)
|
||||||
if value != null:
|
if value != null:
|
||||||
self[key] = value
|
self[key] = value
|
||||||
|
|
||||||
bind_keys()
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ func _ready() -> void:
|
||||||
upload_file.pressed.connect(func():
|
upload_file.pressed.connect(func():
|
||||||
if path.text.length() > 0:
|
if path.text.length() > 0:
|
||||||
print("path text yes", path.text)
|
print("path text yes", path.text)
|
||||||
if FileAccess.file_exists(path.text) and path.text.findn("user://") != 0 and ProjectSettings.localize_path(path.text).findn("user://") != 0:
|
if FileAccess.file_exists(path.text) and path.text.findn("user://") != 0 and path.text.findn("res://") != 0 and ProjectSettings.localize_path(path.text).findn("user://") != 0:
|
||||||
print("path exists")
|
print("path exists")
|
||||||
if not DirAccess.dir_exists_absolute("user://uploads/"):
|
if not DirAccess.dir_exists_absolute("user://uploads/"):
|
||||||
DirAccess.make_dir_absolute("user://uploads/")
|
DirAccess.make_dir_absolute("user://uploads/")
|
||||||
|
|
Loading…
Reference in a new issue