button things

This commit is contained in:
tess 2021-12-07 02:54:08 +01:00
parent c95d545a94
commit 3f28da0d8b
14 changed files with 112 additions and 31 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=26 format=2]
[gd_scene load_steps=28 format=2]
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
@ -18,6 +18,8 @@
[ext_resource path="res://Aseprite/Background.png" type="Texture" id=16]
[ext_resource path="res://Aseprite/Mountains.png" type="Texture" id=17]
[ext_resource path="res://World/Clouds.gd" type="Script" id=18]
[ext_resource path="res://Aseprite/sfx.png" type="Texture" id=19]
[ext_resource path="res://Aseprite/sfx-hover.png" type="Texture" id=20]
[sub_resource type="Theme" id=7]
@ -57,6 +59,26 @@ color = Color( 0.341176, 0.337255, 0.756863, 1 )
[node name="Plant" parent="." instance=ExtResource( 1 )]
[node name="PlantBackground" type="Node2D" parent="."]
[node name="Mountains" type="Sprite" parent="PlantBackground"]
position = Vector2( 64, 74 )
texture = ExtResource( 17 )
[node name="Clouds" type="Node2D" parent="PlantBackground"]
script = ExtResource( 18 )
[node name="Timer" type="Timer" parent="PlantBackground/Clouds"]
[node name="Background" type="Sprite" parent="PlantBackground"]
texture = ExtResource( 16 )
centered = false
[node name="Pot" type="Sprite" parent="PlantBackground"]
position = Vector2( 64, 135 )
texture = ExtResource( 9 )
script = ExtResource( 15 )
[node name="Blue" type="ColorRect" parent="."]
margin_left = 128.0
margin_right = 237.0
@ -114,10 +136,10 @@ margin_top = 1.0
margin_right = 17.0
margin_bottom = 62.0
rect_scale = Vector2( 1, 0.99844 )
custom_icons/tick = ExtResource( 7 )
custom_icons/grabber_disabled = ExtResource( 7 )
custom_icons/grabber_highlight = ExtResource( 8 )
custom_icons/grabber = ExtResource( 7 )
custom_icons/tick = ExtResource( 19 )
custom_icons/grabber_disabled = ExtResource( 19 )
custom_icons/grabber_highlight = ExtResource( 20 )
custom_icons/grabber = ExtResource( 19 )
custom_styles/slider = SubResource( 2 )
max_value = 1.0
step = 0.1
@ -127,26 +149,6 @@ __meta__ = {
}
bus_channel = "SFX"
[node name="Node2D" type="Node2D" parent="."]
[node name="Mountains" type="Sprite" parent="Node2D"]
position = Vector2( 64, 74 )
texture = ExtResource( 17 )
[node name="Clouds" type="Node2D" parent="Node2D"]
script = ExtResource( 18 )
[node name="Timer" type="Timer" parent="Node2D/Clouds"]
[node name="Background" type="Sprite" parent="Node2D"]
texture = ExtResource( 16 )
centered = false
[node name="Pot" type="Sprite" parent="Node2D"]
position = Vector2( 64, 135 )
texture = ExtResource( 9 )
script = ExtResource( 15 )
[node name="RightPanel" type="Panel" parent="."]
margin_left = 129.0
margin_top = 1.0
@ -186,9 +188,11 @@ margin_left = 1.0
margin_top = 125.0
margin_right = 18.0
margin_bottom = 142.0
toggle_mode = true
action_mode = 0
texture_normal = ExtResource( 12 )
texture_pressed = ExtResource( 14 )
texture_hover = ExtResource( 14 )
texture_hover = ExtResource( 12 )
texture_disabled = ExtResource( 12 )
script = ExtResource( 13 )
__meta__ = {
@ -205,12 +209,12 @@ amount = 15
lifetime = 0.5
process_material = SubResource( 13 )
[connection signal="good_water" from="Plant" to="Node2D/Pot" method="_on_Plant_good_water"]
[connection signal="good_water" from="Plant" to="PlantBackground/Pot" method="_on_Plant_good_water"]
[connection signal="has_need" from="Plant" to="RightPanel/Terminal" method="_on_Plant_has_need"]
[connection signal="timeout" from="PlantBackground/Clouds/Timer" to="PlantBackground/Clouds" method="_on_Timer_timeout"]
[connection signal="pressed" from="Options/FullscreenButton" to="Options/FullscreenButton" method="_on_FullscreenButton_pressed"]
[connection signal="value_changed" from="Options/MusicVolume" to="Options/MusicVolume" method="_on_MusicVolume_value_changed"]
[connection signal="value_changed" from="Options/SFXVolume" to="Options/SFXVolume" method="_on_MusicVolume_value_changed"]
[connection signal="timeout" from="Node2D/Clouds/Timer" to="Node2D/Clouds" method="_on_Timer_timeout"]
[connection signal="was_social" from="RightPanel/Terminal" to="Plant" method="_on_Terminal_was_social"]
[connection signal="timeout" from="RightPanel/Terminal/Reveal" to="RightPanel/Terminal" method="_on_Reveal_timeout"]
[connection signal="timeout" from="RightPanel/Terminal/MessageTimer" to="RightPanel/Terminal" method="_on_MessageTimer_timeout"]

View file

@ -38,6 +38,7 @@ var social = [
"If i had to fight someone i would simply look up the weaknesses section on their wikipedia page.",
"Do you wanna watch anime together?",
"I hope you had a nice day today!",
"Do you have games on your phone",
]
func _ready() -> void: