almanach button
This commit is contained in:
parent
473421eb32
commit
c8956dc38b
7 changed files with 102 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
[gd_scene load_steps=19 format=3 uid="uid://dpxxjfd5lv5sv"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://e8n88g31w7x7" path="res://resources/themes/ChooseYourSeeds.tres" id="1_bfo8i"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="2_so2bw"]
|
||||
|
|
@ -7,8 +7,10 @@
|
|||
[ext_resource type="Script" uid="uid://eq3ecja30mlj" path="res://scripts/components/gui/choose_your_seeds/GridLoader.cs" id="4_i7sou"]
|
||||
[ext_resource type="PackedScene" uid="uid://10b1egek6upx" path="res://scenes/gui/level_run_button.tscn" id="5_n80ic"]
|
||||
[ext_resource type="Script" uid="uid://d26waisd3v488" path="res://scripts/components/gui/choose_your_seeds/LevelRunButton.cs" id="7_k6b6g"]
|
||||
[ext_resource type="Texture2D" uid="uid://drydueofrb448" path="res://assets/sprites/gui/almanach/book.tres" id="8_hmdmm"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="8_v7xff"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="9_v7xff"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvpt0q4j6nx18" path="res://scenes/gui/almanach.tscn" id="11_nlh6x"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0rps3"]
|
||||
resource_name = "Hide"
|
||||
|
|
@ -106,6 +108,16 @@ viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Fram
|
|||
font_size = 24
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_hmdmm"]
|
||||
resource_name = "Almanach"
|
||||
script/source = "extends Button
|
||||
|
||||
|
||||
func _pressed() -> void:
|
||||
$\"../../Independer/Almanach\".visible = true
|
||||
$\"../../ChannelPlayer\".call(\"Play\")
|
||||
"
|
||||
|
||||
[node name="ChooseYourSeeds" type="Control"]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
|
|
@ -222,10 +234,27 @@ offset_bottom = -16.016
|
|||
script = ExtResource("7_k6b6g")
|
||||
_player = NodePath("../../AnimationPlayer")
|
||||
|
||||
[node name="AlmanachButton" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.883929
|
||||
anchor_right = 1.14167
|
||||
anchor_bottom = 1.0
|
||||
offset_bottom = -3.05176e-05
|
||||
icon = ExtResource("8_hmdmm")
|
||||
icon_alignment = 1
|
||||
script = SubResource("GDScript_hmdmm")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="."]
|
||||
script = ExtResource("8_v7xff")
|
||||
audioStream = ExtResource("9_v7xff")
|
||||
channel = "button"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="Independer" type="Node" parent="."]
|
||||
|
||||
[node name="Almanach" parent="Independer" instance=ExtResource("11_nlh6x")]
|
||||
visible = false
|
||||
|
||||
[connection signal="pressed" from="Panel/LevelRunButton" to="ChannelPlayer" method="Play"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue