multi-tabs

This commit is contained in:
Face
2025-08-29 16:24:53 +03:00
parent 5769982bbc
commit 9344c7818a
7 changed files with 380 additions and 97 deletions

View File

@@ -4,7 +4,6 @@
[ext_resource type="Texture2D" uid="uid://gq8g7t4s3ryg" path="res://Assets/Icons/x.svg" id="2_pisds"]
[ext_resource type="StyleBox" uid="uid://fd1nftmqox32" path="res://Scenes/Styles/TabHoverDefault.tres" id="3_kjcxk"]
[ext_resource type="Texture2D" uid="uid://c7u7a1u1v04bx" path="res://Scenes/Styles/TabGradientDefault.tres" id="3_q3baj"]
[ext_resource type="StyleBox" uid="uid://bx3sgro1ageff" path="res://Scenes/Styles/TabDefault.tres" id="4_ib6pj"]
[ext_resource type="Texture2D" uid="uid://dglkjumm1q4lo" path="res://Assets/Icons/23x23-empty.svg" id="5_ib6pj"]
[ext_resource type="Texture2D" uid="uid://bqpx2lgo0yecb" path="res://Assets/Icons/globe.svg" id="6_ib6pj"]
[ext_resource type="StyleBox" uid="uid://dn8exdnk8tjce" path="res://Scenes/Styles/CloseButtonHover.tres" id="6_pisds"]
@@ -12,6 +11,10 @@
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6bp64"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1ohlo"]
content_margin_left = 8.0
content_margin_right = 8.0
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_344ge"]
[sub_resource type="Animation" id="Animation_ib6pj"]
@@ -103,7 +106,7 @@ unique_name_in_owner = true
z_index = -2
clip_contents = true
layout_mode = 1
offset_right = 47.0
offset_right = 350.0
offset_bottom = 50.0
focus_mode = 0
mouse_default_cursor_shape = 2
@@ -113,7 +116,7 @@ theme_override_constants/icon_max_width = 23
theme_override_styles/focus = SubResource("StyleBoxEmpty_6bp64")
theme_override_styles/hover = ExtResource("3_kjcxk")
theme_override_styles/pressed = ExtResource("3_kjcxk")
theme_override_styles/normal = ExtResource("4_ib6pj")
theme_override_styles/normal = SubResource("StyleBoxEmpty_1ohlo")
action_mode = 0
text = "New Tab"
icon = ExtResource("5_ib6pj")
@@ -124,17 +127,18 @@ text_overrun_behavior = 3
unique_name_in_owner = true
z_index = 1
layout_mode = 0
offset_left = -64.0
offset_top = 2.0
offset_bottom = 50.0
offset_left = 252.25
offset_top = 0.995
offset_right = 316.25
offset_bottom = 48.995
texture = ExtResource("3_q3baj")
[node name="Icon" type="TextureRect" parent="Button"]
unique_name_in_owner = true
custom_minimum_size = Vector2(23, 23)
layout_mode = 0
offset_left = -23.0
offset_left = 10.03
offset_top = 13.0
offset_right = 33.03
offset_bottom = 36.0
texture = ExtResource("6_ib6pj")
expand_mode = 1
@@ -144,12 +148,12 @@ unique_name_in_owner = true
z_index = 2
custom_minimum_size = Vector2(34, 34)
layout_mode = 0
offset_left = -34.0
offset_left = 315.39
offset_top = 12.0
offset_right = 349.39
offset_bottom = 46.0
scale = Vector2(0.75, 0.75)
focus_mode = 0
mouse_filter = 2
mouse_default_cursor_shape = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_344ge")
theme_override_styles/hover = ExtResource("6_pisds")
@@ -167,3 +171,4 @@ speed_scale = 2.0
[connection signal="mouse_entered" from="Button" to="." method="_on_button_mouse_entered"]
[connection signal="mouse_exited" from="Button" to="." method="_on_button_mouse_exited"]
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button/CloseButton" to="." method="_on_close_button_pressed"]