Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions belmont/init.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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)

Expand Down Expand Up @@ -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


Expand Down
16 changes: 9 additions & 7 deletions belmont/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand All @@ -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()
2 changes: 1 addition & 1 deletion belmont/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Loading