187 lines
4.7 KiB
Text
187 lines
4.7 KiB
Text
|
[gd_scene load_steps=4 format=2]
|
||
|
|
||
|
[ext_resource path="res://scenes/GUI/MusicControls/Music.gd" type="Script" id=1]
|
||
|
[ext_resource path="res://assets/test/musiques/pre-mix_khanat_main_theme_2018-07-23.ogg" type="AudioStream" id=2]
|
||
|
[ext_resource path="res://assets/test/musiques/Sangakanat (short instrumental theme).ogg" type="AudioStream" id=3]
|
||
|
|
||
|
|
||
|
[node name="Music" type="VBoxContainer"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_top = 316.0
|
||
|
margin_right = 256.0
|
||
|
margin_bottom = 402.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
alignment = 0
|
||
|
script = ExtResource( 1 )
|
||
|
|
||
|
[node name="Songs" type="Container" parent="." index="0"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_right = 256.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
|
||
|
[node name="pre-mix_khanat_main_theme" type="AudioStreamPlayer" parent="Songs" index="0"]
|
||
|
|
||
|
pause_mode = 1
|
||
|
stream = ExtResource( 2 )
|
||
|
volume_db = 0.0
|
||
|
autoplay = false
|
||
|
mix_target = 0
|
||
|
bus = "Master"
|
||
|
_sections_unfolded = [ "Pause" ]
|
||
|
|
||
|
[node name="Sangakanat" type="AudioStreamPlayer" parent="Songs" index="1"]
|
||
|
|
||
|
pause_mode = 1
|
||
|
stream = ExtResource( 3 )
|
||
|
volume_db = 0.0
|
||
|
autoplay = false
|
||
|
mix_target = 0
|
||
|
bus = "Master"
|
||
|
_sections_unfolded = [ "Pause" ]
|
||
|
|
||
|
[node name="Title" type="Label" parent="." index="1"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_top = 4.0
|
||
|
margin_right = 256.0
|
||
|
margin_bottom = 18.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
mouse_filter = 2
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 4
|
||
|
text = "Musique:"
|
||
|
percent_visible = 1.0
|
||
|
lines_skipped = 0
|
||
|
max_lines_visible = -1
|
||
|
|
||
|
[node name="SongsSelector" type="OptionButton" parent="." index="2"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_top = 22.0
|
||
|
margin_right = 256.0
|
||
|
margin_bottom = 42.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
focus_mode = 2
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
toggle_mode = false
|
||
|
action_mode = 0
|
||
|
enabled_focus_mode = 2
|
||
|
shortcut = null
|
||
|
group = null
|
||
|
flat = false
|
||
|
align = 0
|
||
|
items = [ ]
|
||
|
selected = -1
|
||
|
|
||
|
[node name="Buttons" type="HBoxContainer" parent="." index="3"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_top = 46.0
|
||
|
margin_right = 256.0
|
||
|
margin_bottom = 66.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
mouse_filter = 1
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 1
|
||
|
size_flags_vertical = 1
|
||
|
alignment = 0
|
||
|
|
||
|
[node name="Pause" type="Button" parent="Buttons" index="0"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_right = 126.0
|
||
|
margin_bottom = 20.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
focus_mode = 2
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 1
|
||
|
custom_colors/font_color_disabled = Color( 0.496055, 0.413039, 0.660156, 1 )
|
||
|
custom_colors/font_color = Color( 0.494118, 0.411765, 0.658824, 1 )
|
||
|
custom_colors/font_color_hover = Color( 0.863051, 0.203209, 1, 1 )
|
||
|
custom_colors/font_color_pressed = Color( 0.673295, 0.508021, 1, 1 )
|
||
|
toggle_mode = true
|
||
|
enabled_focus_mode = 2
|
||
|
shortcut = null
|
||
|
group = null
|
||
|
text = "Play"
|
||
|
flat = false
|
||
|
align = 1
|
||
|
_sections_unfolded = [ "Size Flags", "custom_colors", "custom_constants", "custom_fonts", "custom_styles" ]
|
||
|
|
||
|
[node name="Stop" type="Button" parent="Buttons" index="1"]
|
||
|
|
||
|
anchor_left = 0.0
|
||
|
anchor_top = 0.0
|
||
|
anchor_right = 0.0
|
||
|
anchor_bottom = 0.0
|
||
|
margin_left = 130.0
|
||
|
margin_right = 256.0
|
||
|
margin_bottom = 20.0
|
||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||
|
rect_clip_content = false
|
||
|
focus_mode = 2
|
||
|
mouse_filter = 0
|
||
|
mouse_default_cursor_shape = 0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 1
|
||
|
custom_colors/font_color_disabled = Color( 0.496055, 0.413039, 0.660156, 1 )
|
||
|
custom_colors/font_color = Color( 0.494118, 0.411765, 0.658824, 1 )
|
||
|
custom_colors/font_color_hover = Color( 0.863051, 0.203209, 1, 1 )
|
||
|
custom_colors/font_color_pressed = Color( 0.673295, 0.508021, 1, 1 )
|
||
|
toggle_mode = false
|
||
|
enabled_focus_mode = 2
|
||
|
shortcut = null
|
||
|
group = null
|
||
|
text = "Stop"
|
||
|
flat = false
|
||
|
align = 1
|
||
|
_sections_unfolded = [ "Size Flags", "custom_colors", "custom_constants", "custom_fonts", "custom_styles" ]
|
||
|
|
||
|
[connection signal="item_selected" from="SongsSelector" to="." method="_on_SongsSelector_item_selected"]
|
||
|
|
||
|
[connection signal="toggled" from="Buttons/Pause" to="." method="_on_Pause_toggled"]
|
||
|
|
||
|
[connection signal="pressed" from="Buttons/Stop" to="." method="_on_Stop_pressed"]
|
||
|
|
||
|
|