Presencode/ui/Welcome.tscn
JeremyStarTM b5acd36479 Partial source code rewrite
- [src/*] Update comments
- [src/*] Improve code quality
- [export_presets.cfg] All exports use a console wrapper now
- [src/console.gd] Add highlighting for "arbitrary" command
- [src/console.gd] Add special message if nothing has been typed in
- [src/misc.gd, src/console.gd] Move BooleanState, get_last() (now called get_shortened_array), get_boolean(), get_int() and get_int_direct() into misc
- [src/console_info.gd] Remove useless _init() function
- [src/console_info.gd] Make get_error_string() function more compact
- [Loader.tscn, src/loader.gd] Remove window size support and slow initialization functionality
- [src/loader.gd] Remove warning on startup (will be reimplemented at some point, most likely graphically)
- [src/loader.gd] Replaced append_log() function with a lambda
- [src/loader.gd] Implement argument parser with configuration support
- [src/loader.gd] Add Presencode version information as constants and format_version() function
- [src/misc.gd] Reorganize functions
- [src/pmana.gd] Add checks to avoid slide change collisions
- [src/pmana.gd] Replace logger.warn() calls to "await logger.error()" calls
- [src/pmana.gd, src/misc.gd, src/console.gd] Remove pmana.shutdown() function in favour of misc.shutdown() which now does the same
- [src/preader.gd] Fix resource loading issues for presentation directories
- [src/preader.gd] Move resource loading workaround into seperate function _read_resource_workaround()
- [src/processor.gd, src/console.gd, src/loader.gd, src/pmana.gd, src/ui_engine.gd] Move all _process() functions into seperate file
- [src/processor.gd, src/console.gd, src/loader.gd, src/pmana.gd, src/ui_engine.gd, src/ui/welcome.gd] Move everything dragging related (except variables) into processor.gd
- [ui/Welcome.tscn, src/ui/welcome.gd] Add support for presentation directories
- [src/ui/welcome.gd] Update splash text
2024-01-19 20:45:37 +01:00

138 lines
4 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://b8byh8tp1kc6b"]
[ext_resource type="Texture2D" uid="uid://cj1twbwvogrn0" path="res://assets/images/Wallpaper.png" id="1_3cfcw"]
[ext_resource type="Script" path="res://src/ui/welcome.gd" id="1_rowat"]
[ext_resource type="Texture2D" uid="uid://b3n83ee4723bw" path="res://assets/images/IconTextInverted.png" id="2_2w5c0"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0l23a"]
bg_color = Color(0, 0, 0, 0.705882)
corner_radius_top_left = 32
corner_radius_top_right = 32
corner_radius_bottom_right = 32
corner_radius_bottom_left = 32
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sor5s"]
[node name="GUIWelcome" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_rowat")
[node name="Wallpaper" type="NinePatchRect" parent="."]
layout_mode = 0
offset_right = 960.0
offset_bottom = 540.0
texture = ExtResource("1_3cfcw")
[node name="Welcome" type="Button" parent="Wallpaper"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -432.0
offset_top = -243.0
offset_right = 432.0
offset_bottom = 243.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_0l23a")
theme_override_styles/hover = SubResource("StyleBoxFlat_0l23a")
theme_override_styles/pressed = SubResource("StyleBoxFlat_0l23a")
theme_override_styles/disabled = SubResource("StyleBoxFlat_0l23a")
theme_override_styles/focus = SubResource("StyleBoxEmpty_sor5s")
[node name="Icon" type="NinePatchRect" parent="Wallpaper/Welcome"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -320.0
offset_top = 24.3
offset_right = 320.0
offset_bottom = 144.3
grow_horizontal = 2
texture = ExtResource("2_2w5c0")
[node name="Splash" type="RichTextLabel" parent="Wallpaper/Welcome" groups=["font", "font_normal"]]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -320.0
offset_top = 152.975
offset_right = 320.0
offset_bottom = 186.975
grow_horizontal = 2
mouse_filter = 2
bbcode_enabled = true
text = "[center]splash text[/center]"
scroll_active = false
[node name="AboutText" type="RichTextLabel" parent="Wallpaper/Welcome" groups=["font", "font_small"]]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -320.0
offset_top = -92.0
offset_right = 320.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
bbcode_enabled = true
text = "[center][i]Copyright (c) 2024[/i] [b]JeremyStar™ & Contributors[/b]
Licensed under the [b]GNU General Public License version 3[/b].
Thank you for using Presencode <3[/center]"
scroll_active = false
[node name="OpenArchiveButton" type="Button" parent="Wallpaper/Welcome" groups=["font_one", "font_one_normal"]]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 60.0
offset_top = -19.0
offset_right = 278.0
offset_bottom = 19.0
grow_vertical = 2
text = "Open archive"
[node name="OpenDirButton" type="Button" parent="Wallpaper/Welcome" groups=["font_one", "font_one_normal"]]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 60.0
offset_top = 24.0
offset_right = 278.0
offset_bottom = 62.0
grow_vertical = 2
text = "Open directory"
[node name="EditorButton" type="Button" parent="Wallpaper/Welcome" groups=["font_one", "font_one_normal"]]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -278.0
offset_top = -19.0
offset_right = -60.0
offset_bottom = 19.0
grow_horizontal = 0
grow_vertical = 2
text = "Edit presentation"
[connection signal="pressed" from="Wallpaper/Welcome" to="." method="update_splash"]
[connection signal="pressed" from="Wallpaper/Welcome/OpenArchiveButton" to="." method="open_presentation_archive_picker"]
[connection signal="pressed" from="Wallpaper/Welcome/OpenDirButton" to="." method="open_presentation_dir_picker"]