Added UI for #12
This commit is contained in:
parent
dfa803d503
commit
32725e5f26
4 changed files with 94 additions and 1 deletions
BIN
2DArt/host/mapIcons/toyland.png
Normal file
BIN
2DArt/host/mapIcons/toyland.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 167 KiB |
34
2DArt/host/mapIcons/toyland.png.import
Normal file
34
2DArt/host/mapIcons/toyland.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bmyat8a6alp2y"
|
||||
path="res://.godot/imported/toyland.png-084ce3f3340978e89b76fb4d29acd524.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://2DArt/host/mapIcons/toyland.png"
|
||||
dest_files=["res://.godot/imported/toyland.png-084ce3f3340978e89b76fb4d29acd524.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cv5bctupikqe7"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cv5bctupikqe7"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/host.gd" id="1_r5rkm"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8hvwlbkrib4k" path="res://2DArt/Main Menu/PlayScreenHOST.png" id="2_s15iu"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmyat8a6alp2y" path="res://2DArt/host/mapIcons/toyland.png" id="3_rgmyq"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xhmtq"]
|
||||
|
||||
|
@ -146,8 +147,50 @@ offset_right = 377.0
|
|||
offset_bottom = 562.0
|
||||
text = "Player Name: "
|
||||
|
||||
[node name="shortRespawn" type="CheckBox" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 594.0
|
||||
offset_top = 448.0
|
||||
offset_right = 664.0
|
||||
offset_bottom = 479.0
|
||||
text = "Short"
|
||||
|
||||
[node name="normalRespawn" type="CheckBox" parent="."]
|
||||
offset_left = 673.0
|
||||
offset_top = 447.0
|
||||
offset_right = 760.0
|
||||
offset_bottom = 478.0
|
||||
button_pressed = true
|
||||
text = "Normal"
|
||||
|
||||
[node name="longRespawn" type="CheckBox" parent="."]
|
||||
offset_left = 763.0
|
||||
offset_top = 447.0
|
||||
offset_right = 830.0
|
||||
offset_bottom = 478.0
|
||||
text = "Long"
|
||||
|
||||
[node name="respawnLabel" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 681.0
|
||||
offset_top = 387.0
|
||||
offset_right = 751.0
|
||||
offset_bottom = 439.0
|
||||
text = "Respawn
|
||||
Time"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Toyland" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(407.781, 329.219)
|
||||
scale = Vector2(0.364432, 0.364432)
|
||||
texture = ExtResource("3_rgmyq")
|
||||
|
||||
[connection signal="pressed" from="close" to="." method="_on_close_pressed"]
|
||||
[connection signal="pressed" from="playground" to="." method="_on_playground_pressed"]
|
||||
[connection signal="pressed" from="startButton" to="." method="_on_start_button_pressed"]
|
||||
[connection signal="pressed" from="joinButton" to="." method="_on_join_button_pressed"]
|
||||
[connection signal="text_changed" from="playerNameBox" to="." method="_on_player_name_box_text_changed"]
|
||||
[connection signal="button_down" from="shortRespawn" to="." method="_on_short_respawn_button_down"]
|
||||
[connection signal="button_down" from="normalRespawn" to="." method="_on_normal_respawn_button_down"]
|
||||
[connection signal="button_down" from="longRespawn" to="." method="_on_long_respawn_button_down"]
|
||||
|
|
|
@ -17,6 +17,7 @@ func _on_close_pressed():
|
|||
func _on_playground_pressed():
|
||||
$mapSelected.text = "Toyland"
|
||||
SCENE = "res://scenes/toyland.tscn"
|
||||
$Toyland.visible = true
|
||||
|
||||
|
||||
func _on_start_button_pressed():
|
||||
|
@ -60,3 +61,18 @@ func _on_join_button_pressed():
|
|||
func _on_player_name_box_text_changed(new_text):
|
||||
Global.playerName = $playerNameBox.text
|
||||
SettingsFile.save_data(Global.mouseSensitivity, Global.playerName)
|
||||
|
||||
|
||||
func _on_short_respawn_button_down():
|
||||
$normalRespawn.button_pressed = false
|
||||
$longRespawn.button_pressed = false
|
||||
|
||||
|
||||
func _on_normal_respawn_button_down():
|
||||
$shortRespawn.button_pressed = false
|
||||
$longRespawn.button_pressed = false
|
||||
|
||||
|
||||
func _on_long_respawn_button_down():
|
||||
$shortRespawn.button_pressed = false
|
||||
$normalRespawn.button_pressed = false
|
||||
|
|
Loading…
Reference in a new issue