1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-12 08:43:08 +00:00
Pixelorama/src/UI/Dialogs/SplashDialog.tscn
Emmanouil Papadeas 94b3e75f30 Mark dialogs as popup_windows
So they can close when the user clicks outside the window on Godot 4.2
2023-11-11 03:12:49 +02:00

273 lines
9.5 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://bnpb1aip3wdvw"]
[ext_resource type="Script" path="res://src/UI/Dialogs/SplashDialog.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://b5adjms3vxj13" path="res://assets/graphics/splash_screen/artworks/wishdream.png" id="2"]
[ext_resource type="Texture2D" uid="uid://d1oxrkwndy5fi" path="res://assets/graphics/timeline/move_arrow.png" id="3"]
[ext_resource type="Texture2D" uid="uid://b47r0c6auaqk6" path="res://assets/graphics/icons/icon.png" id="4"]
[ext_resource type="Texture2D" uid="uid://dywk5yd41twch" path="res://assets/graphics/splash_screen/version.png" id="5"]
[ext_resource type="Texture2D" uid="uid://du0tqirgve32c" path="res://assets/graphics/splash_screen/discord.png" id="9"]
[ext_resource type="Texture2D" uid="uid://bnhuqq1ucdlw2" path="res://assets/graphics/splash_screen/github_32px.png" id="10"]
[ext_resource type="Texture2D" uid="uid://c587jfnyu84ro" path="res://assets/graphics/splash_screen/patreon_mark_white.png" id="11"]
[sub_resource type="StyleBoxFlat" id="2"]
bg_color = Color(1, 1, 1, 0)
[sub_resource type="StyleBoxFlat" id="4"]
bg_color = Color(0.6, 0.6, 0.6, 0)
[sub_resource type="StyleBoxFlat" id="5"]
bg_color = Color(0.6, 0.6, 0.6, 0)
[sub_resource type="StyleBoxFlat" id="3"]
bg_color = Color(0.6, 0.6, 0.6, 0)
[sub_resource type="LabelSettings" id="LabelSettings_32icc"]
font_size = 12
[node name="SplashDialog" type="AcceptDialog"]
canvas_item_default_texture_filter = 0
position = Vector2i(0, 36)
size = Vector2i(602, 650)
exclusive = false
popup_window = true
script = ExtResource("1")
[node name="Contents" 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 = -49.0
theme_override_constants/separation = 8
[node name="SplashArt" type="TextureRect" parent="Contents"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
texture = ExtResource("2")
expand_mode = 1
stretch_mode = 5
[node name="ChangeArtBtnLeft" type="Button" parent="Contents/SplashArt" groups=["UIButtons"]]
layout_mode = 0
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 5.0
offset_top = -10.0
offset_right = 30.0
offset_bottom = 10.0
mouse_default_cursor_shape = 2
theme_override_styles/normal = SubResource("2")
theme_override_styles/hover = SubResource("4")
theme_override_styles/pressed = SubResource("5")
theme_override_styles/focus = SubResource("5")
[node name="TextureRect" type="TextureRect" parent="Contents/SplashArt/ChangeArtBtnLeft"]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -10.0
offset_top = -7.0
offset_right = 10.0
offset_bottom = 7.0
texture = ExtResource("3")
expand_mode = 1
flip_h = true
[node name="ChangeArtBtnRight" type="Button" parent="Contents/SplashArt" groups=["UIButtons"]]
layout_mode = 0
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -30.0
offset_top = -10.0
offset_right = -5.0
offset_bottom = 10.0
mouse_default_cursor_shape = 2
theme_override_styles/normal = SubResource("3")
theme_override_styles/hover = SubResource("5")
theme_override_styles/pressed = SubResource("5")
theme_override_styles/focus = SubResource("5")
[node name="TextureRect" type="TextureRect" parent="Contents/SplashArt/ChangeArtBtnRight"]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -10.0
offset_top = -7.0
offset_right = 10.0
offset_bottom = 7.0
texture = ExtResource("3")
expand_mode = 1
[node name="Overlay" type="HBoxContainer" parent="Contents/SplashArt"]
layout_mode = 0
offset_left = 16.0
offset_top = 16.0
offset_right = 128.0
offset_bottom = 40.0
[node name="PixeloramaIcon" type="TextureRect" parent="Contents/SplashArt/Overlay"]
custom_minimum_size = Vector2(24, 24)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
texture = ExtResource("4")
expand_mode = 1
[node name="VersionText" type="TextureRect" parent="Contents/SplashArt/Overlay"]
unique_name_in_owner = true
custom_minimum_size = Vector2(84, 12)
layout_mode = 2
size_flags_vertical = 4
texture = ExtResource("5")
expand_mode = 1
[node name="ArtBy" type="HBoxContainer" parent="Contents"]
layout_mode = 2
theme_override_constants/separation = 0
[node name="SpacerControl" type="Control" parent="Contents/ArtBy"]
custom_minimum_size = Vector2(4, 0)
layout_mode = 2
[node name="ArtistName" type="Button" parent="Contents/ArtBy"]
unique_name_in_owner = true
layout_mode = 2
tooltip_text = "https://twitter.com/WishdreamStar"
mouse_default_cursor_shape = 2
text = "Art by: %s"
flat = true
[node name="ButtonsPatronsLogos" type="HBoxContainer" parent="Contents"]
layout_mode = 2
[node name="SpacerControl" type="Control" parent="Contents/ButtonsPatronsLogos"]
custom_minimum_size = Vector2(4, 0)
layout_mode = 2
[node name="Buttons" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos"]
custom_minimum_size = Vector2(290, 0)
layout_mode = 2
size_flags_vertical = 0
theme_override_constants/separation = 10
[node name="NewBtn" type="Button" parent="Contents/ButtonsPatronsLogos/Buttons"]
layout_mode = 2
mouse_default_cursor_shape = 2
text = "New"
[node name="OpenBtn" type="Button" parent="Contents/ButtonsPatronsLogos/Buttons"]
layout_mode = 2
mouse_default_cursor_shape = 2
text = "Open"
[node name="OpenLastBtn" type="Button" parent="Contents/ButtonsPatronsLogos/Buttons"]
layout_mode = 2
mouse_default_cursor_shape = 2
text = "Open Last Project"
[node name="Info" type="HBoxContainer" parent="Contents/ButtonsPatronsLogos"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SpacerControl" type="Control" parent="Contents/ButtonsPatronsLogos/Info"]
custom_minimum_size = Vector2(6, 0)
layout_mode = 2
[node name="PatronContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PatronsLabel" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
custom_minimum_size = Vector2(230, 0)
layout_mode = 2
size_flags_vertical = 8
text = "Patrons:"
[node name="PatronsLabel2" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
custom_minimum_size = Vector2(230, 0)
layout_mode = 2
size_flags_vertical = 8
text = "ShikadiGum
Hugo Locurcio
Sean Allen
Tassos Kyriakopoulos
David Snopek"
[node name="VBoxContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/separation = 5
alignment = 2
[node name="Branding" type="HBoxContainer" parent="Contents/ButtonsPatronsLogos/Info/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
alignment = 2
[node name="Links" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding"]
layout_mode = 2
[node name="GithubButton" type="TextureButton" parent="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links"]
layout_mode = 2
mouse_default_cursor_shape = 2
texture_normal = ExtResource("10")
[node name="DiscordButton" type="TextureButton" parent="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links"]
layout_mode = 2
mouse_default_cursor_shape = 2
texture_normal = ExtResource("9")
[node name="PatreonButton" type="TextureButton" parent="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links"]
layout_mode = 2
mouse_default_cursor_shape = 2
texture_normal = ExtResource("11")
[node name="EmptySpacer" type="Control" parent="Contents/ButtonsPatronsLogos/Info"]
custom_minimum_size = Vector2(4, 0)
layout_mode = 2
[node name="CopyrightLabel" type="Label" parent="Contents"]
layout_mode = 2
size_flags_horizontal = 3
text = "©2019-present by Orama Interactive and contributors"
label_settings = SubResource("LabelSettings_32icc")
[node name="HBoxContainer" type="HBoxContainer" parent="Contents/CopyrightLabel"]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -6.0
offset_right = -2.0
offset_bottom = 5.0
size_flags_vertical = 0
theme_override_constants/separation = 0
alignment = 2
[node name="ShowOnStartup" type="CheckBox" parent="Contents/CopyrightLabel/HBoxContainer"]
layout_mode = 2
size_flags_vertical = 0
mouse_default_cursor_shape = 2
text = "Don't show again"
[connection signal="about_to_popup" from="." to="." method="_on_SplashDialog_about_to_show"]
[connection signal="pressed" from="Contents/SplashArt/ChangeArtBtnLeft" to="." method="_on_ChangeArtBtnLeft_pressed"]
[connection signal="pressed" from="Contents/SplashArt/ChangeArtBtnRight" to="." method="_on_ChangeArtBtnRight_pressed"]
[connection signal="pressed" from="Contents/ArtBy/ArtistName" to="." method="_on_ArtCredits_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/NewBtn" to="." method="_on_NewBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenBtn" to="." method="_on_OpenBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn" to="." method="_on_OpenLastBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/GithubButton" to="." method="_on_GithubButton_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/DiscordButton" to="." method="_on_DiscordButton_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/PatreonButton" to="." method="_on_PatreonButton_pressed"]
[connection signal="toggled" from="Contents/CopyrightLabel/HBoxContainer/ShowOnStartup" to="." method="_on_ShowOnStartup_toggled"]