It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
13
UI/Trumpet/SoundButton.gd
Normal file
13
UI/Trumpet/SoundButton.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Button
|
||||
|
||||
@export var sound:AudioStream
|
||||
@export var message:String
|
||||
|
||||
func _on_button_down():
|
||||
$AudioStreamPlayer.stream = sound
|
||||
$AudioStreamPlayer.play()
|
||||
|
||||
GameVariables.globalMessage.emit(message)
|
||||
|
||||
func _on_button_up():
|
||||
$AudioStreamPlayer.stop()
|
||||
14
UI/Trumpet/SoundButton.tscn
Normal file
14
UI/Trumpet/SoundButton.tscn
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://3arm185orw25"]
|
||||
|
||||
[ext_resource type="Script" path="res://UI/Trumpet/SoundButton.gd" id="1_j8l5s"]
|
||||
|
||||
[node name="SoundButton" type="Button"]
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 41
|
||||
text = "1"
|
||||
script = ExtResource("1_j8l5s")
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
bus = &"SFX"
|
||||
|
||||
[connection signal="button_down" from="." to="." method="_on_button_down"]
|
||||
4
UI/Trumpet/TrumpetMenu.gd
Normal file
4
UI/Trumpet/TrumpetMenu.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extends PopupPanel
|
||||
|
||||
func _on_popup_hide():
|
||||
queue_free()
|
||||
51
UI/Trumpet/TrumpetMenu.tres
Normal file
51
UI/Trumpet/TrumpetMenu.tres
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://dvfpql21vtumx"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_es0ds"]
|
||||
bg_color = Color(0.866667, 0.792157, 0, 1)
|
||||
corner_radius_top_left = 45
|
||||
corner_radius_top_right = 45
|
||||
corner_radius_bottom_right = 45
|
||||
corner_radius_bottom_left = 45
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kt1oy"]
|
||||
bg_color = Color(0.690196, 0.631373, 0, 1)
|
||||
corner_radius_top_left = 45
|
||||
corner_radius_top_right = 45
|
||||
corner_radius_bottom_right = 45
|
||||
corner_radius_bottom_left = 45
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qmf2t"]
|
||||
bg_color = Color(0.835294, 0.8, 0.403922, 1)
|
||||
corner_radius_top_left = 45
|
||||
corner_radius_top_right = 45
|
||||
corner_radius_bottom_right = 45
|
||||
corner_radius_bottom_left = 45
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qdfbf"]
|
||||
bg_color = Color(0.866667, 0.792157, 0, 1)
|
||||
corner_radius_top_left = 45
|
||||
corner_radius_top_right = 45
|
||||
corner_radius_bottom_right = 45
|
||||
corner_radius_bottom_left = 45
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2eiy5"]
|
||||
bg_color = Color(0.435294, 0.396078, 0, 1)
|
||||
corner_radius_top_left = 45
|
||||
corner_radius_top_right = 45
|
||||
corner_radius_bottom_right = 45
|
||||
corner_radius_bottom_left = 45
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nihn1"]
|
||||
bg_color = Color(0.345098, 0.258824, 0.0901961, 1)
|
||||
|
||||
[resource]
|
||||
Button/colors/font_color = Color(0, 0, 0, 1)
|
||||
Button/colors/font_focus_color = Color(0.109804, 0.109804, 0.109804, 1)
|
||||
Button/colors/font_hover_color = Color(0.266667, 0.266667, 0.266667, 1)
|
||||
Button/colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
Button/styles/disabled = SubResource("StyleBoxFlat_es0ds")
|
||||
Button/styles/focus = SubResource("StyleBoxFlat_kt1oy")
|
||||
Button/styles/hover = SubResource("StyleBoxFlat_qmf2t")
|
||||
Button/styles/normal = SubResource("StyleBoxFlat_qdfbf")
|
||||
Button/styles/pressed = SubResource("StyleBoxFlat_2eiy5")
|
||||
PopupPanel/styles/panel = SubResource("StyleBoxFlat_nihn1")
|
||||
82
UI/Trumpet/TrumpetMenu.tscn
Normal file
82
UI/Trumpet/TrumpetMenu.tscn
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://fnlpvfvt66h6"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dvfpql21vtumx" path="res://UI/Trumpet/TrumpetMenu.tres" id="1_smqk3"]
|
||||
[ext_resource type="Script" path="res://UI/Trumpet/TrumpetMenu.gd" id="2_gpggl"]
|
||||
[ext_resource type="PackedScene" uid="uid://3arm185orw25" path="res://UI/Trumpet/SoundButton.tscn" id="2_jkf6x"]
|
||||
[ext_resource type="AudioStream" uid="uid://dgv3csq5f4xxk" path="res://Sounds/SFX/Instruments/Trumpets/doot1.wav" id="3_odnkj"]
|
||||
[ext_resource type="AudioStream" uid="uid://bf5njfgon3n0i" path="res://Sounds/SFX/Instruments/Trumpets/doot2.wav" id="4_f5sjp"]
|
||||
[ext_resource type="AudioStream" uid="uid://6eol3acx4rhq" path="res://Sounds/SFX/Instruments/Trumpets/doot3.wav" id="5_d0fwr"]
|
||||
[ext_resource type="AudioStream" uid="uid://clf4eud6tobo5" path="res://Sounds/SFX/Instruments/Trumpets/doot4.wav" id="6_b0fma"]
|
||||
[ext_resource type="AudioStream" uid="uid://cblsrb6hjx0ex" path="res://Sounds/SFX/Instruments/Trumpets/doot5.wav" id="7_2828b"]
|
||||
[ext_resource type="AudioStream" uid="uid://dbynd7bfdvufi" path="res://Sounds/SFX/Instruments/Trumpets/doot6.wav" id="8_26dby"]
|
||||
[ext_resource type="AudioStream" uid="uid://ca8e1feyt6hkr" path="res://Sounds/SFX/Instruments/Trumpets/doot7.wav" id="9_7m70o"]
|
||||
[ext_resource type="AudioStream" uid="uid://dn65fm7nctc20" path="res://Sounds/SFX/Instruments/Trumpets/doot8.wav" id="10_uuqeu"]
|
||||
|
||||
[node name="Trumpet Menu" type="PopupPanel"]
|
||||
title = "Trumpet"
|
||||
size = Vector2i(600, 80)
|
||||
visible = true
|
||||
borderless = false
|
||||
theme = ExtResource("1_smqk3")
|
||||
script = ExtResource("2_gpggl")
|
||||
|
||||
[node name="Buttons" type="HBoxContainer" parent="."]
|
||||
offset_right = 600.0
|
||||
offset_bottom = 80.0
|
||||
|
||||
[node name="Button" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
sound = ExtResource("3_odnkj")
|
||||
message = "doot1"
|
||||
|
||||
[node name="Button2" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "2"
|
||||
sound = ExtResource("4_f5sjp")
|
||||
message = "doot2"
|
||||
|
||||
[node name="Button3" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "3"
|
||||
sound = ExtResource("5_d0fwr")
|
||||
message = "doot3"
|
||||
|
||||
[node name="Button4" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "4"
|
||||
sound = ExtResource("6_b0fma")
|
||||
message = "doot4"
|
||||
|
||||
[node name="Button5" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "5"
|
||||
sound = ExtResource("7_2828b")
|
||||
message = "doot5"
|
||||
|
||||
[node name="Button6" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "6"
|
||||
sound = ExtResource("8_26dby")
|
||||
message = "doot6"
|
||||
|
||||
[node name="Button7" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "7"
|
||||
sound = ExtResource("9_7m70o")
|
||||
message = "doot7"
|
||||
|
||||
[node name="Button8" parent="Buttons" instance=ExtResource("2_jkf6x")]
|
||||
layout_mode = 2
|
||||
text = "8"
|
||||
sound = ExtResource("10_uuqeu")
|
||||
message = "doot8"
|
||||
|
||||
[connection signal="popup_hide" from="." to="." method="_on_popup_hide"]
|
||||
[connection signal="button_up" from="Buttons/Button" to="Buttons/Button" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button2" to="Buttons/Button2" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button3" to="Buttons/Button3" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button4" to="Buttons/Button4" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button5" to="Buttons/Button5" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button6" to="Buttons/Button6" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button7" to="Buttons/Button7" method="_on_button_up"]
|
||||
[connection signal="button_up" from="Buttons/Button8" to="Buttons/Button8" method="_on_button_up"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue