Skip to content

Commit

Permalink
Fix profile after intro, fix profile squish, add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
popcar2 committed Apr 3, 2024
1 parent 15b6476 commit ad23bed
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 41 deletions.
1 change: 1 addition & 0 deletions Scenes/MainScene/main_scene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func delete_profile(profile_name: String):

# Squish profile container's size back down after deletion of panel
await get_tree().process_frame
await get_tree().process_frame
%ProfilesContainer.size.y = 0

func _exit_tree() -> void:
Expand Down
4 changes: 3 additions & 1 deletion Scenes/MainScene/profile_select.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func _ready():
new_panel.get_node("%TrashButton").disabled = true

if profiles_container.get_node("VBoxContainer").get_child_count() == 0:
%SelectedProfileText.text = "Default"
%SelectedProfileText.text = "[center]Default"
add_profile_panel("Default")

profiles_vbox.add_child(load("res://Scenes/NewProfile/new_profile_button.tscn").instantiate())
Expand Down Expand Up @@ -77,6 +77,8 @@ func hide_profiles_container():
func add_profile_panel(profile_name: String):
var new_panel: ProfilePanel = profile_panel.instantiate()
new_panel.get_node("%ProfileName").text = "[center]%s" % profile_name
if profile_name == "Default":
new_panel.get_node("%TrashButton").disabled = true
profiles_vbox.add_child(new_panel)
await get_tree().process_frame
# Moves this above new profile button and separator
Expand Down
2 changes: 1 addition & 1 deletion Scenes/ProfilePanel/profile_panel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ func _ready():
%DeleteProfileText.text = "[center]Are you sure you want to delete\n[b]%s?" % %ProfileName.text

func delete_profile_panel():
queue_free()
$"/root/MainScene".delete_profile(%ProfileName.text.trim_prefix("[center]"))
queue_free()

func _gui_input(event: InputEvent):
if event is InputEventMouseButton and event.button_index == 1 and event.is_pressed():
Expand Down
42 changes: 41 additions & 1 deletion export_presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="D:/GodotEngine/CleanDoom Exports/CleanDoom.exe"
export_path="D:/GodotEngine/CleanDoom Exports/CleanDoom_v1.0.1_Windows/CleanDoom.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
Expand Down Expand Up @@ -60,3 +60,43 @@ Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorActi
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"

[preset.1]

name="Linux/X11"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="D:/GodotEngine/CleanDoom Exports/CleanDoom_v1.0.1_Linux/CleanDoom.x86_64"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false

[preset.1.options]

custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
1 change: 0 additions & 1 deletion icon.svg

This file was deleted.

37 changes: 0 additions & 37 deletions icon.svg.import

This file was deleted.

0 comments on commit ad23bed

Please sign in to comment.