OverviewFilesCommitsIssuesDocsReleasesPeers

godot-keet / scenes / image_lightbox.tscn

125 lines · tscn ref:
[gd_scene load_steps=3 format=3 uid="uid://dkeet_image_lightbox"]

[ext_resource type="Script" path="res://scripts/image_lightbox.gd" id="1_script"]
[ext_resource type="Script" path="res://addons/gde_gozen/video_playback.gd" id="2_video"]

[node name="ImageLightbox" type="Window"]
title = "Media"
initial_position = 2
size = Vector2i(800, 600)
visible = false
wrap_controls = true
script = ExtResource("1_script")

[node name="VBox" type="VBoxContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 0

[node name="ImageDisplay" type="TextureRect" parent="VBox"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
expand_mode = 3
stretch_mode = 5

[node name="VideoContainer" type="Control" parent="VBox"]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3

[node name="VideoPlayer" type="Control" parent="VBox/VideoContainer"]
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
script = ExtResource("2_video")

[node name="PlayerBar" type="PanelContainer" parent="VBox"]
unique_name_in_owner = true
visible = false
layout_mode = 2
theme_override_styles/panel = null

[node name="BarHBox" type="HBoxContainer" parent="VBox/PlayerBar"]
layout_mode = 2
theme_override_constants/separation = 8

[node name="PlayPauseBtn" type="Button" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(36, 0)
text = "▶"

[node name="CurrentTime" type="Label" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(48, 0)
text = "0:00"
horizontal_alignment = 2

[node name="SeekSlider" type="HSlider" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
min_value = 0.0
max_value = 100.0
step = 0.1
value = 0.0

[node name="DurationLabel" type="Label" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(48, 0)
text = "0:00"

[node name="MuteBtn" type="Button" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(32, 0)
text = "🔊"

[node name="VolumeSlider" type="HSlider" parent="VBox/PlayerBar/BarHBox"]
unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(80, 0)
size_flags_vertical = 1
min_value = 0.0
max_value = 100.0
step = 1.0
value = 80.0

[node name="NavBar" type="HBoxContainer" parent="VBox"]
layout_mode = 2
alignment = 1
theme_override_constants/separation = 8

[node name="PrevBtn" type="Button" parent="VBox/NavBar"]
unique_name_in_owner = true
layout_mode = 2
text = "<"

[node name="CountLabel" type="Label" parent="VBox/NavBar"]
unique_name_in_owner = true
layout_mode = 2
text = "1 / 1"

[node name="NextBtn" type="Button" parent="VBox/NavBar"]
unique_name_in_owner = true
layout_mode = 2
text = ">"

[node name="StatusLabel" type="Label" parent="VBox"]
unique_name_in_owner = true
layout_mode = 2
horizontal_alignment = 1
text = ""