Added slider textures
This commit is contained in:
@@ -111,7 +111,6 @@ text = "Menu Volume"
|
||||
|
||||
[node name="MasterSlider" type="HSlider" parent="ScrollContainer/OptionsGridContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_1tdpy")
|
||||
@@ -119,6 +118,9 @@ step = 10.0
|
||||
value = 100.0
|
||||
rounded = true
|
||||
scrollable = false
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
ticks_position = 3
|
||||
|
||||
[node name="UILabel" type="Label" parent="ScrollContainer/OptionsGridContainer"]
|
||||
layout_mode = 2
|
||||
@@ -127,7 +129,6 @@ text = "UI Volume"
|
||||
|
||||
[node name="UISlider" type="HSlider" parent="ScrollContainer/OptionsGridContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_1tdpy")
|
||||
@@ -135,6 +136,9 @@ step = 10.0
|
||||
value = 100.0
|
||||
rounded = true
|
||||
scrollable = false
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
ticks_position = 3
|
||||
|
||||
[node name="SFXLabel" type="Label" parent="ScrollContainer/OptionsGridContainer"]
|
||||
layout_mode = 2
|
||||
@@ -143,7 +147,6 @@ text = "SFX Volume"
|
||||
|
||||
[node name="SFXSlider" type="HSlider" parent="ScrollContainer/OptionsGridContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_1tdpy")
|
||||
@@ -151,6 +154,9 @@ step = 10.0
|
||||
value = 100.0
|
||||
rounded = true
|
||||
scrollable = false
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
ticks_position = 3
|
||||
|
||||
[node name="MusicLabel" type="Label" parent="ScrollContainer/OptionsGridContainer"]
|
||||
layout_mode = 2
|
||||
@@ -159,7 +165,6 @@ text = "Music Volume"
|
||||
|
||||
[node name="MusicSlider" type="HSlider" parent="ScrollContainer/OptionsGridContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_1tdpy")
|
||||
@@ -167,6 +172,9 @@ step = 10.0
|
||||
value = 100.0
|
||||
rounded = true
|
||||
scrollable = false
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
ticks_position = 3
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -26,14 +26,14 @@ layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_vy7sn")
|
||||
shortcut = SubResource("Shortcut_lgp46")
|
||||
text = "CONTINUE"
|
||||
text = "Continue"
|
||||
|
||||
[node name="OptionsButton" type="Button" parent="VBoxContainer"]
|
||||
z_index = 100
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_vy7sn")
|
||||
text = "OPTIONS"
|
||||
text = "Options"
|
||||
|
||||
[node name="MainMenuButton" type="Button" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
@@ -41,7 +41,7 @@ z_index = 100
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("2_vy7sn")
|
||||
text = "MAIN MENU"
|
||||
text = "Main Menu"
|
||||
|
||||
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
|
||||
[connection signal="pressed" from="VBoxContainer/ContinueButton" to="." method="_on_continue_button_pressed"]
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://1o3idp54lil2"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://1o3idp54lil2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://beiydi6w6gqqc" path="res://game/menu/ingame/weapon_selector.gd" id="1_4acia"]
|
||||
[ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://styles/menu_theme.tres" id="2_g83h6"]
|
||||
[ext_resource type="Theme" uid="uid://bqqtjq710luul" path="res://styles/label_theme.tres" id="3_dsio1"]
|
||||
|
||||
[node name="WeaponSelector" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -440.0
|
||||
offset_bottom = -240.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
@@ -15,32 +18,31 @@ theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
script = ExtResource("1_4acia")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme = ExtResource("2_g83h6")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="NameLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
[node name="NameLabel" type="Label" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme = ExtResource("2_g83h6")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="DescriptionLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
[node name="DescriptionLabel" type="Label" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(160, 0)
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_dsio1")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
horizontal_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
||||
[node name="Control" type="Control" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme = ExtResource("2_g83h6")
|
||||
text = "Select"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_button_pressed"]
|
||||
|
||||
@@ -31,6 +31,7 @@ offset_right = 107.5
|
||||
offset_bottom = 33.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/v_separation = 25
|
||||
columns = 2
|
||||
|
||||
[node name="RandomEdit" type="LineEdit" parent="GridContainer"]
|
||||
|
||||
Reference in New Issue
Block a user