exchanger-themes/tools/preview/interactive_pet_preview.tscn
Danil Iarosh ca52efbedc Initial commit: Exchanger Theme DLC Builder
Godot 4.7 project for authoring, previewing, validating, and building Exchanger PCK themes. Includes the example and space-pixel themes, binding contracts, editor tooling, validation/build scripts, and project documentation.
2026-09-22 11:43:13 +03:00

285 lines
10 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[gd_scene load_steps=5 format=3]
[ext_resource type="Script" path="res://tools/preview/InteractivePetPreview.gd" id="1_preview_script"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_stage"]
content_margin_left = 8.0
content_margin_top = 8.0
content_margin_right = 8.0
content_margin_bottom = 8.0
bg_color = Color(0.00392157, 0.027451, 0.0745098, 0.94)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.419608, 0.858824, 0.309804, 1)
corner_radius_top_left = 16
corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_normal"]
content_margin_left = 8.0
content_margin_top = 6.0
content_margin_right = 8.0
content_margin_bottom = 6.0
bg_color = Color(0.0156863, 0.0862745, 0.184314, 0.96)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.419608, 0.858824, 0.309804, 0.7)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_hover"]
content_margin_left = 8.0
content_margin_top = 6.0
content_margin_right = 8.0
content_margin_bottom = 6.0
bg_color = Color(0.027451, 0.184314, 0.317647, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.580392, 1, 0.45098, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_pressed"]
content_margin_left = 8.0
content_margin_top = 6.0
content_margin_right = 8.0
content_margin_bottom = 6.0
bg_color = Color(0.419608, 0.858824, 0.309804, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.776471, 1, 0.694118, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="InteractivePetPreview" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture_filter = 1
script = ExtResource("1_preview_script")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0, 0.0313725, 0.101961, 1)
[node name="SafeMargin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 24.0
offset_top = 20.0
offset_right = -24.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 2
[node name="Content" type="VBoxContainer" parent="SafeMargin"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="Header" type="HBoxContainer" parent="SafeMargin/Content"]
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
theme_override_constants/separation = 10
[node name="GalleryButton" type="Button" parent="SafeMargin/Content/Header"]
unique_name_in_owner = true
custom_minimum_size = Vector2(140, 44)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "← ГАЛЕРЕЯ"
[node name="Title" type="Label" parent="SafeMargin/Content/Header"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 28
text = "АНИМАЦИИ ПИТОМЦА"
horizontal_alignment = 1
vertical_alignment = 1
[node name="StagePanel" type="PanelContainer" parent="SafeMargin/Content"]
custom_minimum_size = Vector2(0, 530)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_stage")
[node name="Stage" type="Control" parent="SafeMargin/Content/StagePanel"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 512)
layout_mode = 2
mouse_filter = 2
[node name="Status" type="HBoxContainer" parent="SafeMargin/Content"]
custom_minimum_size = Vector2(0, 34)
layout_mode = 2
theme_override_constants/separation = 8
[node name="AnimationName" type="Label" parent="SafeMargin/Content/Status"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 15
text = "АНИМАЦИЯ: —"
vertical_alignment = 1
[node name="FrameCounter" type="Label" parent="SafeMargin/Content/Status"]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 0)
layout_mode = 2
theme_override_colors/font_color = Color(0.580392, 1, 0.45098, 1)
theme_override_font_sizes/font_size = 15
text = "КАДР: —"
horizontal_alignment = 2
vertical_alignment = 1
[node name="Transport" type="HBoxContainer" parent="SafeMargin/Content"]
custom_minimum_size = Vector2(0, 48)
layout_mode = 2
theme_override_constants/separation = 8
[node name="PreviousButton" type="Button" parent="SafeMargin/Content/Transport"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "НАЗАД"
[node name="PauseButton" type="Button" parent="SafeMargin/Content/Transport"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "ПАУЗА"
[node name="ReplayButton" type="Button" parent="SafeMargin/Content/Transport"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "ПОВТОР"
[node name="NextButton" type="Button" parent="SafeMargin/Content/Transport"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "ДАЛЕЕ"
[node name="AutoButton" type="Button" parent="SafeMargin/Content/Transport"]
unique_name_in_owner = true
custom_minimum_size = Vector2(164, 0)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 13
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_button_pressed")
toggle_mode = true
text = "АВТОПОКАЗ: ВЫКЛ"
[node name="CompositeButton" type="Button" parent="SafeMargin/Content"]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 15
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
text = "СОСТАВНОЕ ДЕЙСТВИЕ: INTERACT"
[node name="AnimationScroll" type="ScrollContainer" parent="SafeMargin/Content"]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="AnimationButtons" type="GridContainer" parent="SafeMargin/Content/AnimationScroll"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/h_separation = 8
theme_override_constants/v_separation = 8
columns = 2
[node name="AnimationButtonTemplate" type="Button" parent="SafeMargin/Content/AnimationScroll/AnimationButtons"]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(0, 42)
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0.00392157, 0.0470588, 0.145098, 1)
theme_override_font_sizes/font_size = 14
theme_override_styles/normal = SubResource("StyleBoxFlat_button_normal")
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_button_pressed")
toggle_mode = true
text = "animation"
[node name="Help" type="Label" parent="SafeMargin/Content"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
theme_override_colors/font_color = Color(0.8, 0.878431, 1, 1)
theme_override_font_sizes/font_size = 13
text = "←/→ — выбрать • ПРОБЕЛ — пауза • R — повтор • ESC — галерея"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AutoTimer" type="Timer" parent="."]
unique_name_in_owner = true
one_shot = true