commit 009b694b2234b7d435f360cda148d9d9921648f4 from: Riccardo Mazzurco date: Thu Oct 12 20:59:14 2023 UTC added the fucking sfondo! commit - f6d61b7b50739df40eccbfb32be7790192644284 commit + 009b694b2234b7d435f360cda148d9d9921648f4 blob - /dev/null blob + 96d5383d4cbbb93c972e2824bf1cdefdff850696 (mode 644) Binary files /dev/null and assets/bacground/bacground.png differ blob - d1fdf799b04abbcc9704a3331fd573a08dc2bd86 blob + a5e1422d7b9a0666f08252dca8dc02dd1bedeb1b --- src/menu/menu.gd +++ src/menu/menu.gd @@ -57,7 +57,7 @@ func _on_clientz_click() -> void: func goto_board() -> void: - var board := preload("res://src/board.tscn") + var board := preload("res://src/board/board.tscn") var err := get_tree().change_scene_to(board) if err != OK: print("WOOOPS, failed with err ", err) blob - fa35f7682fbcdac9005a4ad68ad98a10fdaed8c1 blob + 5807da49cbee86ef66597fecfc34728867518ccb --- src/menu/menu.tscn +++ src/menu/menu.tscn @@ -1,53 +1,95 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://src/menu/menu.gd" type="Script" id=1] +[ext_resource path="res://src/menu/background/background.tscn" type="PackedScene" id=2] +[ext_resource path="res://assets/fonts/kenpixel.ttf" type="DynamicFontData" id=3] +[sub_resource type="DynamicFont" id=6] +size = 32 +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=1] +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=2] +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=3] +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=4] +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=5] +font_data = ExtResource( 3 ) + [node name="menu" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 1 ) +[node name="Title" type="Label" parent="."] +anchor_left = 0.5 +anchor_right = 0.5 +margin_left = -108.0 +margin_top = 16.0 +margin_right = 108.0 +margin_bottom = 48.0 +custom_fonts/font = SubResource( 6 ) +text = "CIESS 2023" +align = 1 + [node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_left = 0.5 +anchor_top = 0.5 anchor_right = 0.5 -margin_left = -42.5 -margin_top = 50.0 -margin_right = 42.5 -margin_bottom = 40.0 +anchor_bottom = 0.5 +margin_left = -100.0 +margin_top = -171.0 +margin_right = 100.0 +margin_bottom = 171.0 custom_constants/separation = 50 [node name="serverz" type="Button" parent="VBoxContainer"] -margin_right = 124.0 -margin_bottom = 20.0 +margin_right = 200.0 +margin_bottom = 30.0 +custom_fonts/font = SubResource( 1 ) text = "start server" [node name="label francesco 2" type="Label" parent="VBoxContainer"] -margin_top = 70.0 -margin_right = 124.0 -margin_bottom = 84.0 +margin_top = 80.0 +margin_right = 200.0 +margin_bottom = 104.0 +custom_fonts/font = SubResource( 2 ) text = "--- oppure ---" align = 1 [node name="clientz" type="Button" parent="VBoxContainer"] -margin_top = 134.0 -margin_right = 124.0 -margin_bottom = 154.0 +margin_top = 154.0 +margin_right = 200.0 +margin_bottom = 184.0 +custom_fonts/font = SubResource( 3 ) text = "connect to server" [node name="label francesco" type="Label" parent="VBoxContainer"] -margin_top = 204.0 -margin_right = 124.0 -margin_bottom = 218.0 +margin_top = 234.0 +margin_right = 200.0 +margin_bottom = 258.0 +custom_fonts/font = SubResource( 4 ) text = "IP ADDRESS:" align = 1 [node name="ipaddr" type="LineEdit" parent="VBoxContainer"] -margin_top = 268.0 -margin_right = 124.0 -margin_bottom = 292.0 +margin_top = 308.0 +margin_right = 200.0 +margin_bottom = 342.0 +custom_fonts/font = SubResource( 5 ) text = "127.0.0.1" +align = 1 caret_blink = true caret_blink_speed = 0.5 +[node name="Background" parent="." instance=ExtResource( 2 )] + [connection signal="button_down" from="VBoxContainer/serverz" to="." method="_on_serverz_click"] [connection signal="button_down" from="VBoxContainer/clientz" to="." method="_on_clientz_click"]