onboarding mouse filter changes

This commit is contained in:
Nordup 2025-08-13 12:43:25 +07:00
parent 3131b731e0
commit ad3fddb4eb
6 changed files with 14 additions and 7 deletions

View file

@ -34,8 +34,9 @@ offset_bottom = 350.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
pivot_offset = Vector2(300, 350) pivot_offset = Vector2(300, 350)
mouse_filter = 1
script = ExtResource("1_dxxs8") script = ExtResource("1_dxxs8")
focus_button = NodePath("TextureButton") focus_button = NodePath("Button")
unfocus_color = Color(0.9, 0.9, 0.9, 0.5) unfocus_color = Color(0.9, 0.9, 0.9, 0.5)
unfocus_scale = Vector2(0.8, 0.8) unfocus_scale = Vector2(0.8, 0.8)
@ -46,6 +47,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
mouse_filter = 1
theme_override_styles/panel = SubResource("StyleBoxFlat_r2yvw") theme_override_styles/panel = SubResource("StyleBoxFlat_r2yvw")
[node name="MarginContainer" type="MarginContainer" parent="."] [node name="MarginContainer" type="MarginContainer" parent="."]
@ -111,10 +113,13 @@ theme_override_font_sizes/font_size = 20
text = "Wait" text = "Wait"
icon = null icon = null
[node name="TextureButton" type="TextureButton" parent="."] [node name="Button" type="Button" parent="."]
layout_mode = 1 layout_mode = 1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
focus_mode = 0
mouse_filter = 1
flat = true

View file

@ -101,6 +101,7 @@ offset_right = 756.0
offset_bottom = 350.0 offset_bottom = 350.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
mouse_filter = 2
[node name="Board" parent="Root/Carousel/Line" instance=ExtResource("3_04ofy")] [node name="Board" parent="Root/Carousel/Line" instance=ExtResource("3_04ofy")]
layout_mode = 2 layout_mode = 2
@ -154,6 +155,7 @@ grow_vertical = 2
scale = Vector2(0.8, 0.8) scale = Vector2(0.8, 0.8)
pivot_offset = Vector2(300, 350) pivot_offset = Vector2(300, 350)
focus_mode = 0 focus_mode = 0
mouse_filter = 1
mouse_default_cursor_shape = 2 mouse_default_cursor_shape = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_vy2ch") theme_override_styles/focus = SubResource("StyleBoxEmpty_vy2ch")
theme_override_styles/hover = SubResource("StyleBoxEmpty_gh5x7") theme_override_styles/hover = SubResource("StyleBoxEmpty_gh5x7")
@ -163,7 +165,7 @@ flat = true
script = ExtResource("6_lcfru") script = ExtResource("6_lcfru")
content = NodePath("Centered") content = NodePath("Centered")
tween_duration = 0.2 tween_duration = 0.2
base_modulate = Color(1, 1, 1, 0.5) normal_modulate = Color(1, 1, 1, 0.5)
hover_scale = 1.2 hover_scale = 1.2
[node name="Centered" type="Control" parent="Root/Carousel/Line/Close"] [node name="Centered" type="Control" parent="Root/Carousel/Line/Close"]

View file

@ -252,4 +252,5 @@ script = ExtResource("10_ant0e")
url = "https://forms.gle/1NmJeCQnQh7Yc1KP8" url = "https://forms.gle/1NmJeCQnQh7Yc1KP8"
[node name="Onboarding" parent="." instance=ExtResource("11_kyh0m")] [node name="Onboarding" parent="." instance=ExtResource("11_kyh0m")]
visible = false
layout_mode = 1 layout_mode = 1

View file

@ -3,7 +3,7 @@ class_name OnboardingBoard
signal request_focus signal request_focus
@export var focus_button: TextureButton @export var focus_button: Button
@export var unfocus_color: Color @export var unfocus_color: Color
@export var unfocus_scale: Vector2 @export var unfocus_scale: Vector2

View file

@ -2,7 +2,7 @@ extends Button
@export var content: Control @export var content: Control
@export var tween_duration: float @export var tween_duration: float
@export var base_modulate: Color @export var normal_modulate: Color
@export var hover_scale: float @export var hover_scale: float
var tween: Tween var tween: Tween
@ -31,4 +31,4 @@ func on_mouse_exited() -> void:
tween.set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_OUT) tween.set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_OUT)
tween.tween_property(content, "scale", Vector2.ONE, tween_duration) tween.tween_property(content, "scale", Vector2.ONE, tween_duration)
tween.tween_property(content, "modulate", base_modulate, tween_duration) tween.tween_property(content, "modulate", normal_modulate, tween_duration)

View file

@ -143,7 +143,6 @@ void fragment() {
} }
" "
graph_offset = Vector2(-478.86, -398.352)
mode = 1 mode = 1
modes/blend = 5 modes/blend = 5
flags/light_only = false flags/light_only = false