thief-mission-viewer/project/scenes/asset_browser/asset_browser.tscn

309 lines
12 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=9 format=3 uid="uid://byknmqac1a5vn"]
2024-09-08 12:14:13 +00:00
[ext_resource type="Texture2D" uid="uid://b208ufsau5jhb" path="res://project/jorge.png" id="1_1vlw2"]
[ext_resource type="Script" path="res://project/code/TMV/UI/AssetBrowser.cs" id="1_5rr8c"]
[ext_resource type="Script" path="res://project/code/TMV/UI/TextureBrowser.cs" id="1_72xft"]
2024-09-08 12:14:13 +00:00
[ext_resource type="Texture2D" uid="uid://beb4tj06ivjae" path="res://project/assets/icons/Search.svg" id="1_ityvd"]
[ext_resource type="Texture2D" uid="uid://dx8paqeom7dtb" path="res://project/assets/icons/Sort.svg" id="3_0k1fm"]
[ext_resource type="Texture2D" uid="uid://dqefy830o4foj" path="res://project/assets/icons/Folder.svg" id="3_xdjfn"]
[ext_resource type="Texture2D" uid="uid://dm2jiwrvkjnaa" path="res://project/assets/icons/GuiTabMenuHl.svg" id="4_s4jwc"]
[ext_resource type="Texture2D" uid="uid://bfswg75r148mr" path="res://project/assets/icons/ActionCopy.svg" id="7_2pq2g"]
[node name="AssetBrowser" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_5rr8c")
2024-09-08 12:14:13 +00:00
[node name="TabContainer" type="TabContainer" parent="."]
2024-11-29 11:41:38 +00:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2024-09-08 12:14:13 +00:00
grow_horizontal = 2
grow_vertical = 2
current_tab = 0
[node name="Textures" type="MarginContainer" parent="TabContainer"]
layout_mode = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
script = ExtResource("1_72xft")
2024-09-08 12:14:13 +00:00
metadata/_tab_index = 0
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Textures"]
layout_mode = 2
[node name="HSplitContainer" type="HSplitContainer" parent="TabContainer/Textures/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="FolderTree" type="Tree" parent="TabContainer/Textures/VBoxContainer/HSplitContainer"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
custom_minimum_size = Vector2(256, 0)
layout_mode = 2
2024-09-08 18:59:54 +00:00
theme_override_constants/draw_guides = 0
theme_override_constants/draw_relationship_lines = 1
2024-09-08 16:53:52 +00:00
hide_root = true
2024-09-08 12:14:13 +00:00
[node name="HSplitContainer" type="HSplitContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Browser" type="VBoxContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Options" type="HBoxContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser"]
layout_mode = 2
[node name="SearchBar" type="LineEdit" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/Options"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Search..."
clear_button_enabled = true
right_icon = ExtResource("1_ityvd")
[node name="SortMenu" type="MenuButton" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/Options"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
tooltip_text = "Sort Mode"
icon = ExtResource("3_0k1fm")
icon_alignment = 1
item_count = 4
2024-09-08 16:53:52 +00:00
popup/item_0/text = "Name"
2024-09-08 12:14:13 +00:00
popup/item_0/checkable = 2
2024-09-08 16:53:52 +00:00
popup/item_0/checked = true
popup/item_1/text = "Family"
2024-09-08 12:14:13 +00:00
popup/item_1/checkable = 2
2024-09-08 16:53:52 +00:00
popup/item_1/id = 1
2024-09-08 12:14:13 +00:00
popup/item_2/text = "Index"
popup/item_2/checkable = 2
2024-09-08 16:53:52 +00:00
popup/item_2/id = 2
2024-09-08 12:14:13 +00:00
popup/item_2/disabled = true
popup/item_3/text = "Count"
popup/item_3/checkable = 2
popup/item_3/id = 3
popup/item_3/disabled = true
[node name="OpenTextureFolderButton" type="Button" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/Options"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
tooltip_text = "Open folder in File Explorer"
icon = ExtResource("3_xdjfn")
flat = true
icon_alignment = 1
[node name="BrowserOverflowMenu" type="MenuButton" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/Options"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
icon = ExtResource("4_s4jwc")
item_count = 9
popup/item_0/text = "Keep Aspect Ratio"
popup/item_0/checkable = 1
popup/item_0/checked = true
popup/item_0/id = 1
popup/item_1/text = "Show Custom"
popup/item_1/checkable = 1
popup/item_1/checked = true
2024-09-08 16:53:52 +00:00
popup/item_1/id = 1
2024-09-08 12:14:13 +00:00
popup/item_2/text = "Show Family Name"
popup/item_2/checkable = 1
popup/item_2/id = 2
popup/item_3/text = "Show File Name"
popup/item_3/checkable = 1
popup/item_3/checked = true
popup/item_3/id = 3
popup/item_4/text = "Show File Type"
popup/item_4/checkable = 1
popup/item_4/checked = true
popup/item_4/id = 4
popup/item_5/text = "Show Resolution"
popup/item_5/checkable = 1
popup/item_5/id = 5
popup/item_6/id = 8
popup/item_6/separator = true
popup/item_7/text = "Show Usage Count"
popup/item_7/checkable = 1
popup/item_7/id = 6
popup/item_7/disabled = true
popup/item_8/text = "Show Texture Index"
popup/item_8/checkable = 1
popup/item_8/id = 7
popup/item_8/disabled = true
[node name="PanelContainer" type="PanelContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser"]
layout_mode = 2
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
[node name="Scroll" type="ScrollContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/PanelContainer/MarginContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="TextureList" type="HFlowContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/PanelContainer/MarginContainer/Scroll"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Panel" type="Panel" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/PanelContainer/MarginContainer/Scroll/TextureList"]
2024-09-08 12:14:13 +00:00
custom_minimum_size = Vector2(128, 128)
layout_mode = 2
[node name="TextureRect2" type="TextureRect" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Browser/PanelContainer/MarginContainer/Scroll/TextureList/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2024-09-08 12:14:13 +00:00
texture = ExtResource("1_1vlw2")
expand_mode = 1
stretch_mode = 5
2024-09-08 12:14:13 +00:00
[node name="Preview" type="VBoxContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer"]
custom_minimum_size = Vector2(384, 0)
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_vertical = 3
[node name="Panel" type="Panel" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer"]
custom_minimum_size = Vector2(384, 0)
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_vertical = 3
[node name="PreviewTexture" type="TextureRect" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/Panel"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_1vlw2")
expand_mode = 1
2024-09-08 12:14:13 +00:00
stretch_mode = 5
[node name="PanelContainer" type="PanelContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8
[node name="Details" type="GridContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/h_separation = 16
columns = 2
[node name="FilterLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "Texture Filter"
[node name="FilterOptions" type="OptionButton" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 18:18:44 +00:00
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
selected = 0
item_count = 2
popup/item_0/text = "Linear"
popup/item_1/text = "Nearest"
popup/item_1/id = 1
[node name="Position" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "Position"
[node name="PositionOptions" type="OptionButton" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
selected = 0
item_count = 2
popup/item_0/text = "Scaled"
popup/item_1/text = "Tiled"
popup/item_1/id = 1
[node name="ZoomLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
visible = false
layout_mode = 2
text = "Zoom"
[node name="ZoomSlider" type="HSlider" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
visible = false
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
min_value = 0.5
max_value = 8.0
value = 0.5
[node name="PathLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "Path"
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
[node name="PathBox" type="LineEdit" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details/HBoxContainer"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
editable = false
[node name="PathCopyButton" type="Button" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details/HBoxContainer"]
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
icon = ExtResource("7_2pq2g")
flat = true
[node name="FileTypeLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "File Type"
[node name="FileTypeBox" type="LineEdit" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 18:24:21 +00:00
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
editable = false
[node name="ResolutionLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "Resolution"
[node name="ResolutionBox" type="LineEdit" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 18:27:51 +00:00
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
editable = false
[node name="FileSizeLabel" type="Label" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 12:14:13 +00:00
layout_mode = 2
text = "File Size"
[node name="FileSizeBox" type="LineEdit" parent="TabContainer/Textures/VBoxContainer/HSplitContainer/HSplitContainer/Preview/VBoxContainer/PanelContainer/MarginContainer/Details"]
2024-09-08 18:47:01 +00:00
unique_name_in_owner = true
2024-09-08 12:14:13 +00:00
layout_mode = 2
size_flags_horizontal = 3
editable = false