parent
de08e993eb
commit
462c8050dd
@ -1,10 +1,22 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
|
||||
namespace CMSGame
|
||||
{
|
||||
public partial class PauseMenu : Popup
|
||||
public partial class PauseMenu : VBoxContainer
|
||||
{
|
||||
public void On_ExitButton_Pressed()
|
||||
public void On_ResumeBattleButton_Pressed()
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
public void On_SettingsMenuButton_Pressed()
|
||||
{
|
||||
GetNode<Popup>("%SettingsPopup").PopupCentered();
|
||||
}
|
||||
|
||||
public void On_EscapeFromBattleButton_Pressed()
|
||||
{
|
||||
ThrowHelper.ThrowNotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
namespace CMSGame
|
||||
{
|
||||
public partial class SettingsPopup : Popup
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
}
|
||||
|
||||
public void On_ConfirmButton_Pressed()
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dpd2tih2iudvb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://blk2uswpo2a7k" path="res://Components/SettingsMenu.tscn" id="1_573hy"]
|
||||
[ext_resource type="Script" path="res://Components/SettingsPopup.cs" id="1_ts6p7"]
|
||||
|
||||
[node name="SettingsPopup" type="Popup"]
|
||||
size = Vector2i(172, 101)
|
||||
visible = true
|
||||
script = ExtResource("1_ts6p7")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="SettingsMenu" parent="VBoxContainer" instance=ExtResource("1_573hy")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ConfirmButton" type="Button" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "保存并退出"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/ConfirmButton" to="." method="On_ConfirmButton_Pressed"]
|
@ -0,0 +1,66 @@
|
||||
[preset.0]
|
||||
|
||||
name="Windows Desktop"
|
||||
platform="Windows Desktop"
|
||||
runnable=true
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="Temp/Exports/CMSGame.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
script_encryption_key=""
|
||||
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_script=1
|
||||
binary_format/embed_pck=false
|
||||
texture_format/bptc=false
|
||||
texture_format/s3tc=true
|
||||
texture_format/etc=false
|
||||
texture_format/etc2=false
|
||||
texture_format/no_bptc_fallbacks=true
|
||||
binary_format/architecture="x86_64"
|
||||
codesign/enable=false
|
||||
codesign/identity_type=0
|
||||
codesign/identity=""
|
||||
codesign/password=""
|
||||
codesign/timestamp=true
|
||||
codesign/timestamp_server_url=""
|
||||
codesign/digest_algorithm=1
|
||||
codesign/description=""
|
||||
codesign/custom_options=PackedStringArray()
|
||||
application/modify_resources=true
|
||||
application/icon=""
|
||||
application/console_wrapper_icon=""
|
||||
application/icon_interpolation=4
|
||||
application/file_version="1.0.0.0"
|
||||
application/product_version="1.0.0.0"
|
||||
application/company_name="CMSGame Developers"
|
||||
application/product_name="CMSGame"
|
||||
application/file_description="The Country of Mountains and Seas"
|
||||
application/copyright="CMSGame Developers"
|
||||
application/trademarks="CMSGame"
|
||||
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="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
|
||||
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
|
||||
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
|
||||
$settings = New-ScheduledTaskSettingsSet
|
||||
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
|
||||
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
|
||||
Start-ScheduledTask -TaskName godot_remote_debug
|
||||
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
|
||||
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
|
||||
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}'"
|
Loading…
Reference in new issue