From df75283c9938f40d529d5922952c561621fb015e Mon Sep 17 00:00:00 2001 From: Clevertop Date: Wed, 25 Sep 2024 15:30:02 +1000 Subject: [PATCH] title slide and very basic presentation --- gradient.tres | 8 ++++++++ slides/title.tscn | 30 ++++++++++++++++++++++++++++++ tools/presentation.tscn | 40 ++++++++++++++++++++-------------------- widgets/header.tscn | 12 +++--------- 4 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 gradient.tres create mode 100644 slides/title.tscn diff --git a/gradient.tres b/gradient.tres new file mode 100644 index 0000000..073c4d9 --- /dev/null +++ b/gradient.tres @@ -0,0 +1,8 @@ +[gd_resource type="GradientTexture2D" load_steps=2 format=3 uid="uid://5girh8nk4p3f"] + +[sub_resource type="Gradient" id="Gradient_o7xwa"] +colors = PackedColorArray(0.46429, 0.00206019, 0.726487, 1, 0.305082, 0.490299, 1, 1) + +[resource] +gradient = SubResource("Gradient_o7xwa") +fill_from = Vector2(0, 1) diff --git a/slides/title.tscn b/slides/title.tscn new file mode 100644 index 0000000..8348501 --- /dev/null +++ b/slides/title.tscn @@ -0,0 +1,30 @@ +[gd_scene load_steps=3 format=3 uid="uid://cjnkbtvmbn8nf"] + +[ext_resource type="Theme" uid="uid://bswj4s1sfy137" path="res://presentation_theme.tres" id="1_w4q3u"] +[ext_resource type="Texture2D" uid="uid://5girh8nk4p3f" path="res://gradient.tres" id="5_684v5"] + +[node name="BaseSlide" type="VBoxContainer"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_w4q3u") + +[node name="PanelContainer" type="PanelContainer" parent="."] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="TextureRect" type="TextureRect" parent="PanelContainer"] +layout_mode = 2 +texture = ExtResource("5_684v5") + +[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"] +layout_mode = 2 +alignment = 1 + +[node name="RichTextLabel" type="RichTextLabel" parent="PanelContainer/VBoxContainer"] +layout_mode = 2 +bbcode_enabled = true +text = "[wave amp=50.0 freq=5.0 connected=1][center][font_size=160][color=#FFFFFF]The Awesome Godot Presentation!!![/color][/font_size][/center][/wave]" +fit_content = true diff --git a/tools/presentation.tscn b/tools/presentation.tscn index e9d7caa..f7958aa 100644 --- a/tools/presentation.tscn +++ b/tools/presentation.tscn @@ -1,27 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://c7f5wae7pdjt2"] +[gd_scene load_steps=4 format=3 uid="uid://c7f5wae7pdjt2"] [ext_resource type="Script" path="res://tools/Presentation.gd" id="1_qta7b"] -[ext_resource type="PackedScene" uid="uid://xxqqqjgt1vmc" path="res://tools/base_slide.tscn" id="2_aqnf4"] - -[sub_resource type="Gradient" id="Gradient_7sx77"] -colors = PackedColorArray(0.15482, 0.358303, 0.295465, 1, 0, 0.391486, 0.564688, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_dod57"] -gradient = SubResource("Gradient_7sx77") -fill_from = Vector2(0, 1) +[ext_resource type="PackedScene" uid="uid://cjnkbtvmbn8nf" path="res://slides/title.tscn" id="2_t5os2"] +[ext_resource type="PackedScene" uid="uid://ccokwij05tg74" path="res://slides/standard.tscn" id="3_o6pbq"] [node name="Presentation" type="Node" node_paths=PackedStringArray("slides_node")] script = ExtResource("1_qta7b") slides_node = NodePath("Slides") -[node name="PresentationBackground" type="TextureRect" parent="."] -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = SubResource("GradientTexture2D_dod57") - [node name="Slides" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 @@ -32,6 +18,20 @@ grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="BaseSlide" parent="Slides" instance=ExtResource("2_aqnf4")] -layout_mode = 0 -anchors_preset = 0 +[node name="BaseSlide" parent="Slides" instance=ExtResource("2_t5os2")] +layout_mode = 1 + +[node name="BaseSlide2" parent="Slides" instance=ExtResource("3_o6pbq")] +layout_mode = 1 + +[node name="BaseSlide3" parent="Slides" instance=ExtResource("3_o6pbq")] +layout_mode = 1 + +[node name="Header" parent="Slides/BaseSlide3" index="0"] +title = "Meowww!!!" +subtitle = "This is the third slide" + +[node name="Footer" parent="Slides/BaseSlide3" index="2"] +text = "Things are coming along well~" + +[editable path="Slides/BaseSlide3"] diff --git a/widgets/header.tscn b/widgets/header.tscn index 4a7f8ed..21a3485 100644 --- a/widgets/header.tscn +++ b/widgets/header.tscn @@ -1,13 +1,7 @@ -[gd_scene load_steps=6 format=3 uid="uid://b3hn5sbsngqud"] +[gd_scene load_steps=5 format=3 uid="uid://b3hn5sbsngqud"] [ext_resource type="Script" path="res://widgets/header.gd" id="1_h4khk"] - -[sub_resource type="Gradient" id="Gradient_o7xwa"] -colors = PackedColorArray(0.46429, 0.00206019, 0.726487, 1, 0.305082, 0.490299, 1, 1) - -[sub_resource type="GradientTexture2D" id="GradientTexture2D_vfh7v"] -gradient = SubResource("Gradient_o7xwa") -fill_from = Vector2(0, 1) +[ext_resource type="Texture2D" uid="uid://5girh8nk4p3f" path="res://gradient.tres" id="2_nq52j"] [sub_resource type="LabelSettings" id="LabelSettings_mjry0"] font_size = 66 @@ -22,7 +16,7 @@ subtitle_node = NodePath("VBoxContainer/Subtitle") [node name="Gradient" type="TextureRect" parent="."] layout_mode = 2 -texture = SubResource("GradientTexture2D_vfh7v") +texture = ExtResource("2_nq52j") [node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 2