Доработка. Добавление новой помехи ЕПРЛС

This commit is contained in:
MaD_CaT
2025-09-26 10:55:24 +03:00
parent 50a7f46dc8
commit cc5c74071a
8 changed files with 50 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ offset_right = 20.0
offset_bottom = 20.0
theme_override_styles/panel = SubResource("1")
script = ExtResource("1_ui6sg")
font_size = null
[node name="back" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_hhdyc")
@@ -79,6 +80,7 @@ axis_stretch_vertical = 2
layout_mode = 2
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
theme_override_font_sizes/font_size = 15
theme_override_styles/focus = SubResource("4")
theme_override_styles/disabled = SubResource("5")
theme_override_styles/hover = SubResource("2")

View File

@@ -59,6 +59,11 @@ var _pressed: = false
$button.set_toggle_mode(val)
@export var font_size: int = true:
set(val):
$button.add_theme_font_size_override('theme_override_font_sizes/font_size', val)
func set_pressed(val: bool):
pressed = val