update ui

This commit is contained in:
2026-06-15 22:55:04 +02:00
parent 1d8346d294
commit 93219377b1
17 changed files with 271 additions and 156 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dde30f2ngoj53"
path="res://.godot/imported/checkbox.png-999e5910ae6271ca60b788aac7231b32.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://core/game_menu/assets/page_3/checkbox.png"
dest_files=["res://.godot/imported/checkbox.png-999e5910ae6271ca60b788aac7231b32.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djllofh10hgk6"
path="res://.godot/imported/resolution.png-e7791d7c551852aff68481a068a9d7ef.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://core/game_menu/assets/page_3/resolution.png"
dest_files=["res://.godot/imported/resolution.png-e7791d7c551852aff68481a068a9d7ef.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -3,31 +3,5 @@ extends Button
class_name CustomCheckbox
@export var color: Color = Color(1,1,1,1):
set(value):
color = value
if is_inside_tree() and has_node("%ToggleTexture"):
$%ToggleTexture.modulate = color
@export var image: Texture:
set(value):
image = value
if is_inside_tree() and has_node("%Texture"):
$%Texture.texture = image
@export var image_toggle: Texture:
set(value):
image_toggle = value
if is_inside_tree() and has_node("%ToggleTexture"):
$%ToggleTexture.texture = image_toggle
func _ready():
if image != null and has_node("%Texture"):
$%Texture.texture = image
if image_toggle != null and has_node("%ToggleTexture"):
$%ToggleTexture.texture = image_toggle
$%ToggleTexture.modulate = color
$%ToggleTexture.visible = button_pressed
func _on_toggled(toggled_on: bool) -> void:
$%ToggleTexture.visible = toggled_on

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://bf28djpewxwai" path="res://core/game_menu/checkbox.gd" id="2_ma3ho"]
[ext_resource type="Texture2D" uid="uid://hw1j3ii4eer" path="res://core/game_menu/assets/page_3/buttonsquare_empty.png" id="2_p1o3r"]
[ext_resource type="Texture2D" uid="uid://cq51kdp4p1jfk" path="res://core/game_menu/assets/page_3/buttonsquare_fill.png" id="3_6138f"]
[ext_resource type="Texture2D" uid="uid://dde30f2ngoj53" path="res://core/game_menu/assets/page_3/checkbox.png" id="4_p1o3r"]
[node name="Checkbox" type="Button" unique_id=1346986972]
custom_minimum_size = Vector2(60, 60)
@@ -13,8 +13,6 @@ pivot_offset_ratio = Vector2(0.5, 0.5)
toggle_mode = true
flat = true
script = ExtResource("2_ma3ho")
image = ExtResource("2_p1o3r")
image_toggle = ExtResource("3_6138f")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="." unique_id=1951376393]
@@ -31,6 +29,7 @@ expand_mode = 1
[node name="ToggleTexture" type="TextureRect" parent="." unique_id=1931011536]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(50, 50)
layout_mode = 1
anchors_preset = 8
@@ -45,7 +44,7 @@ offset_bottom = 23.5
grow_horizontal = 2
grow_vertical = 2
pivot_offset_ratio = Vector2(0.5, 0.5)
texture = ExtResource("3_6138f")
texture = ExtResource("4_p1o3r")
expand_mode = 1
[connection signal="toggled" from="." to="." method="_on_toggled"]

View File

@@ -49,8 +49,8 @@ anchor_right = -0.0328125
anchor_bottom = -0.0129629625
offset_left = 238.0
offset_top = 328.0
offset_right = 1117.0
offset_bottom = 883.0
offset_right = 987.0
offset_bottom = 853.0
size_flags_horizontal = 6
[editable path="OptionMenu"]

View File

@@ -40,6 +40,7 @@ bus_name = &"SFX"
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1034452799]
layout_mode = 2
size_flags_vertical = 0
[node name="AliasingOption" type="Control" parent="VBoxContainer" unique_id=960976098]
custom_minimum_size = Vector2(305, 115)
@@ -68,7 +69,6 @@ offset_top = -20.0
offset_bottom = 20.0
grow_horizontal = 0
grow_vertical = 2
color = Color(1, 0.8156863, 0.7176471, 1)
[node name="WindowOptionMenu" parent="VBoxContainer" unique_id=1829826194 instance=ExtResource("6_ocbt2")]
custom_minimum_size = Vector2(418, 342)

View File

@@ -7,6 +7,7 @@
[ext_resource type="Texture2D" uid="uid://m5llqtaj5kla" path="res://core/game_menu/assets/page_3/borderless.png" id="3_byg38"]
[ext_resource type="Texture2D" uid="uid://idvleok1gecb" path="res://core/game_menu/assets/page_3/base.png" id="3_lo8ks"]
[ext_resource type="Texture2D" uid="uid://dbcs6apfftxxw" path="res://core/game_menu/assets/page_3/windowed.png" id="4_c6wxr"]
[ext_resource type="Texture2D" uid="uid://djllofh10hgk6" path="res://core/game_menu/assets/page_3/resolution.png" id="8_p62vb"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_323rd"]
@@ -41,18 +42,23 @@ metadata/_edit_use_anchors_ = true
[node name="Base" type="TextureRect" parent="." unique_id=1093652090]
unique_name_in_owner = true
custom_minimum_size = Vector2(255.46, 330.8)
layout_mode = 1
anchors_preset = 5
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
offset_left = -109.64252
offset_right = 109.64252
offset_bottom = 238.0
anchor_bottom = 1.0
offset_left = -116.0
offset_top = -208.0
offset_right = 116.0
offset_bottom = 31.000183
grow_horizontal = 2
grow_vertical = 0
rotation = -0.20943952
pivot_offset_ratio = Vector2(0.5, 0.5)
size_flags_horizontal = 4
texture = ExtResource("3_lo8ks")
expand_mode = 1
stretch_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Base" unique_id=416233744]
layout_mode = 1
@@ -65,7 +71,7 @@ grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="Base/VBoxContainer" unique_id=2077693765]
layout_mode = 2
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 100
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 32
@@ -75,19 +81,144 @@ layout_mode = 2
size_flags_horizontal = 4
alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=255911279]
layout_mode = 0
offset_right = 418.0
offset_bottom = 100.0
alignment = 1
[node name="Control" type="Control" parent="." unique_id=1728565603]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -209.0
offset_top = 62.0
offset_right = 209.0
offset_bottom = 162.0
grow_horizontal = 2
[node name="LeftArrowButton" parent="HBoxContainer" unique_id=579258112 instance=ExtResource("2_c6wxr")]
[node name="FullScreenButton" type="Button" parent="Control" unique_id=658423473]
unique_name_in_owner = true
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.20095694
anchor_right = 0.79904306
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="Control/FullScreenButton" unique_id=1273084077]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("1_1oilv")
expand_mode = 1
stretch_mode = 5
[node name="BorderlessButton" type="Button" parent="Control" unique_id=1930001398]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.20095694
anchor_right = 0.79904306
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="Control/BorderlessButton" unique_id=2113335035]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("3_byg38")
expand_mode = 1
stretch_mode = 5
[node name="WindowedButton" type="Button" parent="Control" unique_id=210063143]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -125.0
offset_top = -50.0
offset_right = 125.0
offset_bottom = 50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
[node name="Texture" type="TextureRect" parent="Control/WindowedButton" unique_id=873436909]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("4_c6wxr")
expand_mode = 1
stretch_mode = 5
[node name="LeftArrowButton" parent="Control" unique_id=579258112 instance=ExtResource("2_c6wxr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(50.5, 62)
layout_mode = 2
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_right = 0.0
anchor_bottom = 0.5
offset_left = 70.0
offset_top = -50.0
offset_right = 120.50005
offset_bottom = 50.0
grow_vertical = 2
flip_h = true
[node name="Texture" parent="HBoxContainer/LeftArrowButton" index="0" unique_id=91599097]
[node name="Texture" parent="Control/LeftArrowButton" index="0" unique_id=91599097]
custom_minimum_size = Vector2(50, 62)
anchors_preset = -1
anchor_top = 0.19
@@ -102,101 +233,23 @@ stretch_mode = 5
flip_h = true
metadata/_edit_use_anchors_ = true
[node name="FullScreenButton" type="Button" parent="HBoxContainer" unique_id=658423473]
unique_name_in_owner = true
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/FullScreenButton" unique_id=1273084077]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("1_1oilv")
expand_mode = 1
stretch_mode = 5
[node name="BorderlessButton" type="Button" parent="HBoxContainer" unique_id=1930001398]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/BorderlessButton" unique_id=2113335035]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("3_byg38")
expand_mode = 1
stretch_mode = 5
[node name="WindowedButton" type="Button" parent="HBoxContainer" unique_id=210063143]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/WindowedButton" unique_id=873436909]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("4_c6wxr")
expand_mode = 1
stretch_mode = 5
[node name="RightArrowButton" parent="HBoxContainer" unique_id=1429974963 instance=ExtResource("2_c6wxr")]
[node name="RightArrowButton" parent="Control" unique_id=1429974963 instance=ExtResource("2_c6wxr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(50.5, 62)
layout_mode = 2
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -128.0
offset_top = -50.0
offset_right = -77.49994
offset_bottom = 50.0
grow_horizontal = 0
grow_vertical = 2
[node name="Texture" parent="HBoxContainer/RightArrowButton" index="0" unique_id=91599097]
[node name="Texture" parent="Control/RightArrowButton" index="0" unique_id=91599097]
custom_minimum_size = Vector2(50, 62)
anchors_preset = -1
anchor_left = 0.00990099
@@ -210,15 +263,29 @@ expand_mode = 1
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[connection signal="mouse_entered" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_pressed"]
[connection signal="mouse_entered" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_pressed"]
[connection signal="mouse_entered" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_pressed"]
[node name="ResolutionTexture" type="TextureRect" parent="." unique_id=12652005]
custom_minimum_size = Vector2(310, 100)
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -155.0
offset_right = 155.0
offset_bottom = 100.0
grow_horizontal = 2
texture = ExtResource("8_p62vb")
expand_mode = 1
stretch_mode = 5
[editable path="HBoxContainer/LeftArrowButton"]
[editable path="HBoxContainer/RightArrowButton"]
[connection signal="mouse_entered" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_pressed"]
[connection signal="mouse_entered" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_pressed"]
[connection signal="mouse_entered" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_pressed"]
[editable path="Control/LeftArrowButton"]
[editable path="Control/RightArrowButton"]

View File

@@ -18,13 +18,11 @@ func select() -> void:
if checkbox == null:
checkbox = $%Checkbox
checkbox.set_pressed(true)
#texture.modulate = Color(1,1,1,1)
func deselect() -> void:
if checkbox == null:
checkbox = $%Checkbox
checkbox.set_pressed(false)
#texture.modulate = Color(1,1,1,0)
func disable() -> void:
disabled = true

View File

@@ -27,11 +27,8 @@ custom_minimum_size = Vector2(30, 30)
layout_mode = 2
size_flags_vertical = 4
mouse_filter = 2
color = Color(1, 0.816975, 0.71932274, 1)
[node name="ToggleTexture" parent="HBoxContainer/Checkbox" index="1" unique_id=1931011536]
visible = false
modulate = Color(1, 0.816975, 0.71932274, 1)
custom_minimum_size = Vector2(25, 25)
offset_left = -14.0
offset_top = -14.0