diff --git a/belmont/init.gd b/belmont/init.gd index 9de2601..15dc4f7 100644 --- a/belmont/init.gd +++ b/belmont/init.gd @@ -53,7 +53,7 @@ func finish_setup(): var custom_path = $Setup.path write_path_to_config(custom_path) var t = create_tween() - t.tween_property($Camera2D,"position",Vector2(0,0),1) + t.tween_property($Camera2D,"position",Vector2(0,0),1).set_trans(Tween.TRANS_QUINT).set_ease(Tween.EASE_OUT) await get_tree().create_timer(1).timeout init() @@ -65,7 +65,7 @@ func write_path_to_config(path): json = JSON.stringify({"default_install_path": path}) else: var config = JSON.parse_string(conf) - config["default_install_path"] = path + config["games"]["default_install_path"] = path json = JSON.stringify(config) set_config_file(json) @@ -118,7 +118,7 @@ func free_setup(): func transition_setup(): var t = get_tree().create_tween() - t.tween_property($Camera2D,"position",Vector2(0,-640),1) + t.tween_property($Camera2D,"position",Vector2(0,-640),1).set_trans(Tween.TRANS_QUINT).set_ease(Tween.EASE_OUT) await get_tree().create_timer(1).timeout diff --git a/belmont/main.gd b/belmont/main.gd index a56c1f2..dcc6d2d 100644 --- a/belmont/main.gd +++ b/belmont/main.gd @@ -95,8 +95,8 @@ func _on_error(error_detail): func _on_install_pressed(): if s.get_installed_version(current_game) == s.get_latest_version(current_game) and s.get_latest_version(current_game) != "" : - if config[current_game].has("launch_options"): - print(s.launch_game(current_game,config[current_game]["launch_options"])) + if config["games"][current_game].has("launch_options"): + print(s.launch_game(current_game,config["games"][current_game]["launch_options"])) else: print(s.launch_game(current_game,"")) return @@ -369,10 +369,12 @@ func apply_theme(theme_name): theme = base_theme current_game = theme_name if current_game != "adastral": - if not config.has(current_game): - config[current_game] = {} - elif config[current_game].has("launch_options"): - $AdvancedPanel/Panel/VBoxContainer/VBoxContainer2/HBoxContainer/LaunchOptions.text = config[current_game]["launch_options"] + if not config.has("games"): + config["games"] = {} + if not config["games"].has(current_game): + config["games"][current_game] = {} + elif config["games"][current_game].has("launch_options"): + $AdvancedPanel/Panel/VBoxContainer/VBoxContainer2/HBoxContainer/LaunchOptions.text = config["games"][current_game]["launch_options"] func _process(delta): @@ -399,5 +401,5 @@ func _on_file_dialog_dir_selected(dir: String) -> void: func _on_launch_options_button_pressed() -> void: var launch_opts = $AdvancedPanel/Panel/VBoxContainer/VBoxContainer2/HBoxContainer/LaunchOptions.text - config[current_game]["launch_options"] = launch_opts + config["games"][current_game]["launch_options"] = launch_opts save_config() diff --git a/belmont/main.tscn b/belmont/main.tscn index d16cc8b..652c27d 100644 --- a/belmont/main.tscn +++ b/belmont/main.tscn @@ -125,7 +125,7 @@ offset_bottom = 49.0 theme_type_variation = &"TopLabels" theme_override_fonts/font = ExtResource("3_qwbhy") theme_override_font_sizes/font_size = 25 -text = "Adastral (alpha 3)" +text = "Adastral (alpha 4)" [node name="AdastralLogo" type="TextureRect" parent="Main/TopPanel"] material = SubResource("ShaderMaterial_spum4")