Menu stuff
This commit is contained in:
parent
69ad100698
commit
48b08c26c2
@ -4,7 +4,7 @@ using System;
|
||||
public partial class start_game_menu : Control
|
||||
{
|
||||
private const string _path = "/root/StartGameMenu/";
|
||||
private Button _localMulti, _single, _LANMulti, _join, _host;
|
||||
private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no;
|
||||
private Label _error;
|
||||
|
||||
private string Error {
|
||||
@ -17,6 +17,7 @@ public partial class start_game_menu : Control
|
||||
_single = GetNode<Button>(_path + "Btn_Single");
|
||||
_localMulti = GetNode<Button>(_path + "Btn_LocalMulti");
|
||||
_LANMulti = GetNode<Button>(_path + "Btn_LANMulti");
|
||||
|
||||
_error = GetNode<Label>(_path + "lbl_err");
|
||||
_single.Pressed += () => startSingleGame();
|
||||
_localMulti.Pressed += () => startLocalMultiGame();
|
||||
|
@ -27,74 +27,112 @@ script = ExtResource("1_0k2xm")
|
||||
|
||||
[node name="Lbl_Title" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 159.0
|
||||
offset_top = -1.0
|
||||
offset_right = 1072.0
|
||||
offset_bottom = 397.0
|
||||
offset_left = 547.0
|
||||
offset_top = 224.0
|
||||
offset_right = 1460.0
|
||||
offset_bottom = 622.0
|
||||
text = "M.A.D"
|
||||
label_settings = SubResource("LabelSettings_n38oc")
|
||||
|
||||
[node name="Btn_LocalMulti" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 490.0
|
||||
offset_top = 406.0
|
||||
offset_right = 673.0
|
||||
offset_bottom = 439.0
|
||||
offset_left = 863.0
|
||||
offset_top = 672.0
|
||||
offset_right = 1046.0
|
||||
offset_bottom = 703.0
|
||||
text = "Local Multiplayer"
|
||||
|
||||
[node name="Btn_Single" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 244.0
|
||||
offset_top = 406.0
|
||||
offset_right = 427.0
|
||||
offset_bottom = 441.0
|
||||
offset_left = 617.0
|
||||
offset_top = 674.0
|
||||
offset_right = 800.0
|
||||
offset_bottom = 705.0
|
||||
shortcut = SubResource("Shortcut_pweny")
|
||||
text = "Single Player
|
||||
"
|
||||
|
||||
[node name="Btn_LANMulti" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 724.0
|
||||
offset_top = 399.0
|
||||
offset_right = 906.0
|
||||
offset_bottom = 437.0
|
||||
offset_left = 1097.0
|
||||
offset_top = 670.0
|
||||
offset_right = 1279.0
|
||||
offset_bottom = 701.0
|
||||
text = "LAN Multiplayer"
|
||||
|
||||
[node name="Btn_Host" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 241.0
|
||||
offset_top = 446.0
|
||||
offset_right = 912.0
|
||||
offset_bottom = 477.0
|
||||
offset_left = 614.0
|
||||
offset_top = 710.0
|
||||
offset_right = 1285.0
|
||||
offset_bottom = 741.0
|
||||
text = "Host"
|
||||
|
||||
[node name="Btn_Join" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 240.0
|
||||
offset_top = 484.0
|
||||
offset_right = 452.0
|
||||
offset_bottom = 515.0
|
||||
offset_left = 613.0
|
||||
offset_top = 748.0
|
||||
offset_right = 825.0
|
||||
offset_bottom = 779.0
|
||||
text = "Join
|
||||
"
|
||||
|
||||
[node name="Btn_Cancel" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 615.0
|
||||
offset_top = 787.0
|
||||
offset_right = 939.0
|
||||
offset_bottom = 818.0
|
||||
text = "Cancel"
|
||||
|
||||
[node name="Btn_Quit" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 949.0
|
||||
offset_top = 786.0
|
||||
offset_right = 1283.0
|
||||
offset_bottom = 817.0
|
||||
text = "Quit Game"
|
||||
|
||||
[node name="Btn_Yes" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 614.0
|
||||
offset_top = 635.0
|
||||
offset_right = 939.0
|
||||
offset_bottom = 666.0
|
||||
text = "Yes"
|
||||
|
||||
[node name="Btn_No" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 949.0
|
||||
offset_top = 634.0
|
||||
offset_right = 1283.0
|
||||
offset_bottom = 665.0
|
||||
text = "No"
|
||||
|
||||
[node name="txt_IP" type="TextEdit" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 661.0
|
||||
offset_top = 485.0
|
||||
offset_right = 913.0
|
||||
offset_bottom = 515.0
|
||||
offset_left = 1034.0
|
||||
offset_top = 749.0
|
||||
offset_right = 1286.0
|
||||
offset_bottom = 779.0
|
||||
|
||||
[node name="lbl_IP" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 462.0
|
||||
offset_top = 486.0
|
||||
offset_right = 652.0
|
||||
offset_bottom = 512.0
|
||||
offset_left = 835.0
|
||||
offset_top = 750.0
|
||||
offset_right = 1025.0
|
||||
offset_bottom = 776.0
|
||||
text = "Remote Host IP Address:"
|
||||
|
||||
[node name="lbl_err" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 242.0
|
||||
offset_top = 524.0
|
||||
offset_right = 908.0
|
||||
offset_bottom = 547.0
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 627.0
|
||||
offset_top = 580.0
|
||||
offset_right = -644.0
|
||||
offset_bottom = -461.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
horizontal_alignment = 1
|
||||
|
@ -14,6 +14,12 @@ config/name="Mad"
|
||||
config/features=PackedStringArray("4.0", "C#", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=1920
|
||||
window/size/viewport_height=1080
|
||||
window/size/mode=3
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="Mad"
|
||||
|
Loading…
x
Reference in New Issue
Block a user