first lobby draft made, you can move a charcter around
This commit is contained in:
@@ -89,6 +89,7 @@ func start_game() -> void:
|
||||
if !gamemode.multiplayer:
|
||||
singleplayer_game_requested.emit()
|
||||
else:
|
||||
level_selected($PanelContainer.levels[0], 0)
|
||||
multiplayer_game_requested.emit()
|
||||
|
||||
|
||||
@@ -97,9 +98,28 @@ func _on_play_button_pressed() -> void:
|
||||
open_game_menu()
|
||||
|
||||
|
||||
|
||||
#TODO: Clearn this part up
|
||||
#TODO: new lobby system >>
|
||||
|
||||
#var lobby_panel: PanelContainer
|
||||
func _on_multiplayer_button_pressed() -> void:
|
||||
gamemode.multiplayer = true
|
||||
open_game_menu()
|
||||
start_game()
|
||||
#if !lobby_panel:
|
||||
#lobby_panel = PanelContainer.new()
|
||||
#add_child(lobby_panel)
|
||||
#lobby_panel.visible = true
|
||||
#lobby_panel.anchor_top = 0.1
|
||||
#lobby_panel.anchor_left = 0.3
|
||||
#lobby_panel.anchor_right = 0.7
|
||||
#lobby_panel.anchor_bottom = 0.9
|
||||
#gamemode.multiplayer = true
|
||||
#open_game_menu()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func open_game_menu() -> void:
|
||||
@@ -140,7 +160,7 @@ func level_selected(level: LevelConfig, side: int) -> void:
|
||||
level.allowed_cards = level.hero_class.deck
|
||||
level.waves = []
|
||||
game.level_config = level
|
||||
start_game()
|
||||
#start_game()
|
||||
|
||||
|
||||
func _on_standard_button_pressed() -> void:
|
||||
|
||||
@@ -81,6 +81,10 @@ alignment = 2
|
||||
layout_mode = 2
|
||||
text = "BUTTON_PLAY"
|
||||
|
||||
[node name="MulitplayerButton" type="Button" parent="MainControls" unique_id=1241426994]
|
||||
layout_mode = 2
|
||||
text = "BUTTON_MULTIPLAYER"
|
||||
|
||||
[node name="ModsButton" type="Button" parent="MainControls" unique_id=868836389]
|
||||
layout_mode = 2
|
||||
text = "BUTTON_MODS"
|
||||
@@ -481,6 +485,8 @@ vertical_alignment = 1
|
||||
|
||||
[connection signal="mouse_entered" from="MainControls/PlayButton" to="." method="_on_button_mouse_entered"]
|
||||
[connection signal="pressed" from="MainControls/PlayButton" to="." method="_on_play_button_pressed"]
|
||||
[connection signal="mouse_entered" from="MainControls/MulitplayerButton" to="." method="_on_button_mouse_entered"]
|
||||
[connection signal="pressed" from="MainControls/MulitplayerButton" to="." method="_on_multiplayer_button_pressed"]
|
||||
[connection signal="mouse_entered" from="MainControls/ModsButton" to="." method="_on_button_mouse_entered"]
|
||||
[connection signal="pressed" from="MainControls/ModsButton" to="." method="_on_mods_button_pressed"]
|
||||
[connection signal="pressed" from="MainControls/StatsButton" to="." method="_on_stats_button_pressed"]
|
||||
|
||||
@@ -203,6 +203,7 @@ size_flags_horizontal = 3
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="AlwaysShowShield/CenterContainer" unique_id=263220323]
|
||||
layout_mode = 2
|
||||
flat = true
|
||||
|
||||
[connection signal="item_selected" from="Resolution/HBoxContainer/OptionButton" to="." method="_on_option_button_item_selected"]
|
||||
[connection signal="value_changed" from="MouseSens/HBoxContainer/SpinBox" to="." method="_on_mouse_sens_spin_box_value_changed"]
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://dpt3kpixawyby"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://k0jvsnqw4766" path="res://Scripts/scoreboard.gd" id="1_b5vdp"]
|
||||
[ext_resource type="PackedScene" uid="uid://bhri8mqjbme2t" path="res://UI/scoreboard_entry.tscn" id="2_uer0b"]
|
||||
|
||||
[node name="Scoreboard" type="PanelContainer" unique_id=1183254729]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -157.5
|
||||
offset_top = -125.0
|
||||
offset_right = 157.5
|
||||
offset_bottom = 125.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_b5vdp")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1349293636]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="DummyEntry1" parent="VBoxContainer" unique_id=556447686 instance=ExtResource("2_uer0b")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DummyEntry2" parent="VBoxContainer" unique_id=1104539259 instance=ExtResource("2_uer0b")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DummyEntry3" parent="VBoxContainer" unique_id=1741907975 instance=ExtResource("2_uer0b")]
|
||||
layout_mode = 2
|
||||
@@ -1,35 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://bhri8mqjbme2t"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bmcym1lkp0j8f" path="res://Scripts/scoreboard_entry.gd" id="1_5xryr"]
|
||||
[ext_resource type="Texture2D" uid="uid://m4ehy5bahsup" path="res://Assets/Textures/ready.png" id="2_yxtr2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qhkn8"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("2_yxtr2")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[node name="PlayerListEntry" type="HBoxContainer" unique_id=1099716284]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_5xryr")
|
||||
|
||||
[node name="DisplayName" type="Label" parent="." unique_id=651150806]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Dummy Player"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CharacterName" type="Label" parent="." unique_id=1148611618]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Character"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="." unique_id=33110875]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
texture = SubResource("AtlasTexture_qhkn8")
|
||||
stretch_mode = 3
|
||||
Reference in New Issue
Block a user