First commit

This commit is contained in:
Davide Di Staso committed 2025-10-05 18:13:56 +02:00
1 parent 3016a8f489
commit cc9e7b1c40
44 files changed
+1413 -2

No files matched your search

@@ -0,0 +1,17 @@
@tool
extends VBoxContainer
@export var texture : Texture2D
@export var locale: String
@export var path: String
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$Button.icon = texture
var resolution = Vector2i(texture.get_size())
$Label.text = path.get_file()
var globalized_path = ProjectSettings.globalize_path(path)
$Button.pressed.connect(func(): OS.shell_open(globalized_path))
for c : Control in get_children():
c.tooltip_text = "%s\n%sx%s\nLocale: %s" % [path.get_file(), resolution.x, resolution.y, locale]
@@ -0,0 +1 @@
uid://ch82dtfcsnlrg
@@ -0,0 +1,19 @@
[gd_scene load_steps=2 format=3 uid="uid://fpvnsu6fxqfe"]
[ext_resource type="Script" uid="uid://ch82dtfcsnlrg" path="res://addons/screenshots/debugger/bottom_panel/screenshot_preview/screenshot_preview.gd" id="1_lqc0r"]
[node name="ScreenshotPreview" type="VBoxContainer"]
script = ExtResource("1_lqc0r")
locale = null
[node name="Button" type="Button" parent="."]
custom_minimum_size = Vector2(300, 300)
layout_mode = 2
flat = true
icon_alignment = 1
expand_icon = true
[node name="Label" type="Label" parent="."]
layout_mode = 2
horizontal_alignment = 1
text_overrun_behavior = 5