mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-08 11:29:47 +00:00
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://bcdt0pa7rojy5"]
|
|||
|
|||
[ext_resource type="Script" path="res://src/UI/Dialogs/WindowOpacityDialog.gd" id="1"]
|
|||
[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="2"]
|
|||
|
|||
[node name="WindowOpacityDialog" type="AcceptDialog"]
|
|||
title = "Window Opacity"
|
|||
exclusive = false
|
|||
Mark dialogs as popup_windows
So they can close when the user clicks outside the window on Godot 4.2
|
popup_window = true
|
||
script = ExtResource("1")
|
|||
|
|||
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||
anchors_preset = 15
|
|||
|
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
|||
offset_left = 8.0
|
|||
offset_top = 8.0
|
|||
offset_right = -8.0
|
|||
offset_bottom = -36.0
|
|||
|
|||
[node name="ValueSlider" parent="VBoxContainer" instance=ExtResource("2")]
|
|||
layout_mode = 2
|
|||
value = 100.0
|
|||
|
|||
|
[node name="FullscreenWarning" type="Label" parent="VBoxContainer"]
|
||
layout_mode = 2
|
|||
theme_override_colors/font_color = Color(1, 0.364706, 0.364706, 1)
|
|||
|
text = "Window opacity does not work on fullscreen mode."
|
||
|
|||
[connection signal="about_to_popup" from="." to="." method="_on_WindowOpacityDialog_about_to_show"]
|
|||
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
|
|||
|
[connection signal="value_changed" from="VBoxContainer/ValueSlider" to="." method="set_window_opacity"]
|