bookmarks

This commit is contained in:
Nordup 2023-06-14 01:16:41 +03:00
parent 1249fa186b
commit e29f185a40
2 changed files with 62 additions and 45 deletions

View file

@ -1,37 +1,68 @@
[gd_scene load_steps=7 format=3 uid="uid://82ca8so31njy"]
[gd_scene load_steps=6 format=3 uid="uid://82ca8so31njy"]
[ext_resource type="Script" path="res://scripts/ui/menu/bookmark_ui.gd" id="1_bpkqj"]
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_7i5yr"]
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://textures/background.png" id="3_kgutt"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qq7cx"]
corner_radius_top_left = 25
corner_radius_top_right = 25
corner_radius_bottom_right = 25
corner_radius_bottom_left = 25
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_40hft"]
bg_color = Color(0.25098, 0.25098, 0.25098, 1)
corner_radius_top_left = 16
corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
[sub_resource type="Gradient" id="Gradient_ssj7g"]
interpolation_mode = 2
offsets = PackedFloat32Array(0.132143, 0.503571, 0.714286, 0.860714, 1)
colors = PackedColorArray(0.176471, 0.176471, 0.176471, 1, 0.14, 0.14, 0.14, 0.75, 0.0901961, 0.0901961, 0.0901961, 0.501961, 0.0901961, 0.0901961, 0.0901961, 0.196078, 1, 1, 1, 0)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_od0ga"]
corner_radius_top_left = 16
corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
[sub_resource type="GradientTexture2D" id="GradientTexture2D_yd20y"]
gradient = SubResource("Gradient_ssj7g")
fill_from = Vector2(0, 1)
fill_to = Vector2(0, 0)
[node name="Favorite" type="Panel" node_paths=PackedStringArray("image", "title")]
[node name="Bookmark" type="Control" node_paths=PackedStringArray("image", "title")]
clip_children = 1
custom_minimum_size = Vector2(250, 160)
offset_right = 250.0
custom_minimum_size = Vector2(130, 166)
layout_mode = 3
anchors_preset = 0
offset_right = 130.0
offset_bottom = 160.0
theme_override_styles/panel = SubResource("StyleBoxFlat_qq7cx")
script = ExtResource("1_bpkqj")
gate_events = ExtResource("2_7i5yr")
image = NodePath("Image")
title = NodePath("Title")
image = NodePath("VBoxContainer/Panel/Mask/Image")
title = NodePath("VBoxContainer/Title")
[node name="Image" type="TextureRect" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 5
[node name="Panel" type="Panel" parent="VBoxContainer"]
custom_minimum_size = Vector2(130, 130)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_40hft")
[node name="Mask" type="Panel" parent="VBoxContainer/Panel"]
clip_children = 1
custom_minimum_size = Vector2(87, 87)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -43.5
offset_top = -43.5
offset_right = 43.5
offset_bottom = 43.5
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1
theme_override_styles/panel = SubResource("StyleBoxFlat_od0ga")
[node name="Image" type="TextureRect" parent="VBoxContainer/Panel/Mask"]
custom_minimum_size = Vector2(87, 87)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -44,32 +75,14 @@ texture = ExtResource("3_kgutt")
expand_mode = 1
stretch_mode = 6
[node name="Gradient" type="TextureRect" parent="."]
custom_minimum_size = Vector2(250, 50)
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -50.0
grow_horizontal = 2
grow_vertical = 0
texture = SubResource("GradientTexture2D_yd20y")
expand_mode = 1
[node name="Title" type="Label" parent="."]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -50.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 15
[node name="Title" type="Label" parent="VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 0.8)
theme_override_font_sizes/font_size = 20
text = "Unnamed"
horizontal_alignment = 1
vertical_alignment = 1
text_overrun_behavior = 3
[node name="BaseButton" type="BaseButton" parent="."]
_import_path = NodePath("")

View file

@ -158,6 +158,10 @@ horizontal_scroll_mode = 0
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/Body/Bookmarks"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/h_separation = 70
theme_override_constants/v_separation = 40
columns = 6
script = ExtResource("7_wj13t")
bookmarks = ExtResource("7_ern1s")