mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-08 06:14:48 -04:00
WIP settings window
This commit is contained in:
parent
602e6b0a45
commit
8a501d50b3
7 changed files with 77 additions and 66 deletions
|
@ -17,7 +17,7 @@
|
|||
[ext_resource path="res://assets/camera.png" type="Texture" id=15]
|
||||
[ext_resource path="res://assets/owo censor.png" type="Texture" id=16]
|
||||
|
||||
[node name="Clothes" type="Node2D" index="0"]
|
||||
[node name="Clothes" type="Node"]
|
||||
|
||||
[node name="Wordrobe" type="ReferenceRect" parent="." index="0"]
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
[ext_resource path="res://Shell.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Interface.tscn" type="PackedScene" id=7]
|
||||
|
||||
[node name="GameScreen" type="Node" index="0"]
|
||||
[node name="GameScreen" type="Node"]
|
||||
|
||||
script = ExtResource( 1 )
|
||||
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://src/Interface.gd" type="Script" id=1]
|
||||
[ext_resource path="res://music/piano.ogg" type="AudioStream" id=2]
|
||||
|
||||
[sub_resource type="ButtonGroup" id=1]
|
||||
|
||||
resource_local_to_scene = true
|
||||
|
||||
[node name="Interface" type="Control"]
|
||||
[node name="Interface" type="Control" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -29,7 +25,7 @@ script = ExtResource( 1 )
|
|||
stream = ExtResource( 2 )
|
||||
volume_db = 0.0
|
||||
pitch_scale = 1.0
|
||||
autoplay = true
|
||||
autoplay = false
|
||||
mix_target = 0
|
||||
bus = "Master"
|
||||
|
||||
|
@ -68,44 +64,14 @@ size_flags_horizontal = 1
|
|||
size_flags_vertical = 1
|
||||
alignment = 0
|
||||
|
||||
[node name="MusicBtn" type="CheckBox" parent="RefRect/VertContainer" index="0"]
|
||||
[node name="SettingsBtn" type="Button" parent="RefRect/VertContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 147.0
|
||||
margin_bottom = 24.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
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
||||
toggle_mode = true
|
||||
pressed = true
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "KMUS"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "custom_colors" ]
|
||||
|
||||
[node name="SettingsBtn" type="Button" parent="RefRect/VertContainer" index="1"]
|
||||
|
||||
visible = false
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 28.0
|
||||
margin_right = 147.0
|
||||
margin_bottom = 48.0
|
||||
margin_bottom = 20.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
|
@ -121,15 +87,15 @@ text = "KSET"
|
|||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="CreditsBtn" type="Button" parent="RefRect/VertContainer" index="2"]
|
||||
[node name="CreditsBtn" type="Button" parent="RefRect/VertContainer" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 28.0
|
||||
margin_top = 24.0
|
||||
margin_right = 147.0
|
||||
margin_bottom = 48.0
|
||||
margin_bottom = 44.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
|
@ -145,15 +111,15 @@ text = "KCRE"
|
|||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="AboutBtn" type="Button" parent="RefRect/VertContainer" index="3"]
|
||||
[node name="AboutBtn" type="Button" parent="RefRect/VertContainer" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 52.0
|
||||
margin_top = 48.0
|
||||
margin_right = 147.0
|
||||
margin_bottom = 72.0
|
||||
margin_bottom = 68.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
|
@ -192,7 +158,7 @@ window_title = "KABO"
|
|||
resizable = false
|
||||
dialog_hide_on_ok = true
|
||||
|
||||
[node name="AboutTxt" type="RichTextLabel" parent="AboutWin" index="4"]
|
||||
[node name="AboutTxt" type="RichTextLabel" parent="AboutWin" index="3"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -250,7 +216,7 @@ window_title = "KCRE"
|
|||
resizable = false
|
||||
dialog_hide_on_ok = true
|
||||
|
||||
[node name="CreditsTxt" type="RichTextLabel" parent="CreditsWin" index="4"]
|
||||
[node name="CreditsTxt" type="RichTextLabel" parent="CreditsWin" index="3"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -304,15 +270,14 @@ _sections_unfolded = [ "BBCode" ]
|
|||
|
||||
[node name="SettingsWin" type="AcceptDialog" parent="." index="4"]
|
||||
|
||||
visible = false
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 242.0
|
||||
margin_top = 69.0
|
||||
margin_right = 379.0
|
||||
margin_bottom = 140.0
|
||||
margin_left = 241.0
|
||||
margin_top = 186.0
|
||||
margin_right = 382.0
|
||||
margin_bottom = 254.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
|
@ -325,16 +290,33 @@ resizable = false
|
|||
dialog_hide_on_ok = true
|
||||
_sections_unfolded = [ "Dialog" ]
|
||||
|
||||
[node name="Languages" type="MenuButton" parent="SettingsWin" index="3"]
|
||||
[node name="Grid" type="GridContainer" parent="SettingsWin" index="3"]
|
||||
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -62.5
|
||||
margin_top = -26.0
|
||||
margin_right = 62.5
|
||||
margin_bottom = -2.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
|
||||
columns = 2
|
||||
|
||||
[node name="Languages" type="MenuButton" parent="SettingsWin/Grid" index="0"]
|
||||
|
||||
pause_mode = 1
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = 129.0
|
||||
margin_bottom = 35.0
|
||||
margin_right = 56.0
|
||||
margin_bottom = 24.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
|
@ -345,13 +327,36 @@ toggle_mode = false
|
|||
action_mode = 0
|
||||
enabled_focus_mode = 0
|
||||
shortcut = null
|
||||
group = SubResource( 1 )
|
||||
text = "Languages"
|
||||
flat = true
|
||||
group = null
|
||||
text = "KLANG"
|
||||
flat = false
|
||||
align = 1
|
||||
items = [ ]
|
||||
items = [ "KENG", null, 0, true, false, -1, 0, null, "", false, "KSWD", null, 0, false, false, -1, 0, null, "", false ]
|
||||
_sections_unfolded = [ "Pause" ]
|
||||
|
||||
[connection signal="toggled" from="RefRect/VertContainer/MusicBtn" to="." method="_on_MusicBtn_toggled"]
|
||||
[node name="MusicBtn" type="CheckBox" parent="SettingsWin/Grid" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 60.0
|
||||
margin_right = 125.0
|
||||
margin_bottom = 24.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 = true
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "KMUS"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[connection signal="pressed" from="RefRect/VertContainer/SettingsBtn" to="." method="_on_SettingsBtn_pressed"]
|
||||
|
||||
|
@ -359,4 +364,6 @@ items = [ ]
|
|||
|
||||
[connection signal="pressed" from="RefRect/VertContainer/AboutBtn" to="." method="_on_AboutBtn_pressed"]
|
||||
|
||||
[connection signal="toggled" from="SettingsWin/Grid/MusicBtn" to="." method="_on_MusicBtn_toggled"]
|
||||
|
||||
|
||||
|
|
|
@ -5,3 +5,6 @@ KABO,About,Handla om
|
|||
KSOO,Coming Soon,Kommer snart
|
||||
KHELP,Help,Hjälp
|
||||
KSET,Settings,Inställningar
|
||||
KLANG,Languages,Språk
|
||||
KENG,English,Engelsk
|
||||
KSWD,Swedish,Svenska
|
|
Binary file not shown.
Binary file not shown.
|
@ -7,6 +7,7 @@ onready var credits_win = $CreditsWin
|
|||
onready var settings_win = $SettingsWin
|
||||
|
||||
func _on_AboutBtn_pressed():
|
||||
|
||||
about_win.show()
|
||||
|
||||
func _on_CreditsBtn_pressed():
|
||||
|
|
Loading…
Add table
Reference in a new issue