MagicNStuff/game/src/ui/setup/rhythm/rhythm_setup_menu.tscn

127 lines
4.1 KiB
Plaintext

[gd_scene format=3 uid="uid://b41bjano4bw6s"]
[ext_resource type="Script" uid="uid://bvs4uvpewolwc" path="res://src/ui/setup/rhythm/rhythm_setup_menu.gd" id="1_la56f"]
[ext_resource type="Script" uid="uid://bfpr421kg4s" path="res://src/ui/settings_menu/slider_label.gd" id="2_0yond"]
[ext_resource type="Script" uid="uid://bdi06itcm6wfp" path="res://src/core/rhythm/rhythm_player.gd" id="2_jsobq"]
[ext_resource type="AudioStream" uid="uid://cwpx80o5yaauf" path="res://src/ui/setup/rhythm/120bpm_beat.ogg" id="2_uupbh"]
[ext_resource type="Script" uid="uid://c5mqtmsvgt4e8" path="res://src/core/rhythm/song_info.gd" id="4_7a0hf"]
[ext_resource type="Script" uid="uid://cx1nws4t8hs2u" path="res://src/core/rhythm/tempo_section_info.gd" id="5_cribi"]
[ext_resource type="Texture2D" uid="uid://t6ydwif1bo1c" path="res://godot_icon.svg" id="6_cribi"]
[ext_resource type="Script" uid="uid://bvmfdeypbeqsn" path="res://src/core/rhythm/rhythm_property_setter.gd" id="7_0yond"]
[sub_resource type="Resource" id="Resource_0yond"]
script = ExtResource("4_7a0hf")
audio_stream = ExtResource("2_uupbh")
metadata/_custom_type_script = "uid://c5mqtmsvgt4e8"
[node name="RhythmSetupMenu" type="Control" unique_id=552044082]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_la56f")
metadata/_custom_type_script = "uid://bvs4uvpewolwc"
[node name="UserOffsetSlider" type="HSlider" parent="." unique_id=1070556103]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.35
anchor_top = 0.5
anchor_right = 0.65
anchor_bottom = 0.5
offset_left = -4.0
offset_top = -8.0
offset_right = 4.0
offset_bottom = 8.0
grow_horizontal = 2
grow_vertical = 2
min_value = -1000.0
max_value = 1000.0
step = 50.0
tick_count = 5
[node name="SliderLabel" type="Label" parent="." unique_id=1415099418 node_paths=PackedStringArray("slider")]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.545
anchor_right = 0.5
anchor_bottom = 0.545
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "+0.0 ms"
horizontal_alignment = 1
script = ExtResource("2_0yond")
slider = NodePath("../UserOffsetSlider")
pad_decimals = 0
positive_prefix = "+"
suffix = " ms"
metadata/_custom_type_script = "uid://bfpr421kg4s"
[node name="Confirm" type="Button" parent="." unique_id=1584505137]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.75
anchor_right = 0.5
anchor_bottom = 0.75
offset_left = -35.5
offset_top = -31.0
offset_right = 35.5
grow_horizontal = 2
grow_vertical = 0
text = "Confirm"
[node name="RhythmPlayer" type="Node" parent="." unique_id=326589779]
script = ExtResource("2_jsobq")
song_info = SubResource("Resource_0yond")
audio_player = NodePath("RhythmBeat")
metadata/_custom_type_script = "uid://bdi06itcm6wfp"
[node name="RhythmBeat" type="AudioStreamPlayer" parent="RhythmPlayer" unique_id=763640763]
unique_name_in_owner = true
stream = ExtResource("2_uupbh")
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=1857329940]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.15
anchor_right = 0.5
anchor_bottom = 0.15
offset_left = -130.0
offset_right = 130.0
offset_bottom = 128.0
grow_horizontal = 2
[node name="RhythmPropertySetter" type="Node" parent="HBoxContainer" unique_id=402296027 node_paths=PackedStringArray("beat_nodes", "bar_nodes")]
script = ExtResource("7_0yond")
beat_nodes = [NodePath("../BeatTexture")]
bar_nodes = [NodePath("../BarTexture")]
beat_property = &"modulate:a"
bar_property = &"modulate:a"
beat_range_min = 1.0
beat_range_max = 0.0
beat_exponent = 3.0
bar_range_min = 1.0
bar_range_max = 0.0
bar_exponent = 1.5
metadata/_custom_type_script = "uid://bvmfdeypbeqsn"
[node name="BeatTexture" type="TextureRect" parent="HBoxContainer" unique_id=778284471]
layout_mode = 2
texture = ExtResource("6_cribi")
[node name="BarTexture" type="TextureRect" parent="HBoxContainer" unique_id=1873889480]
layout_mode = 2
texture = ExtResource("6_cribi")