basic slide setup and theme

Update presentation_theme.tres, standard.tscn, footer.gd, and 1 more file
This commit is contained in:
Clevertop 2024-09-25 15:14:44 +10:00
parent 8653ab0d2b
commit b3e72f9e0b
4 changed files with 102 additions and 1 deletions

18
widgets/footer.gd Normal file
View file

@ -0,0 +1,18 @@
@tool
extends PanelContainer
@export var text : String :
set(value):
text = value
text_label.text = text
@export_group("Node References")
@export var text_label : Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass

32
widgets/footer.tscn Normal file
View file

@ -0,0 +1,32 @@
[gd_scene load_steps=5 format=3 uid="uid://cmlxbj2fr6ivw"]
[ext_resource type="Script" path="res://widgets/footer.gd" id="1_nwsk1"]
[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)
[sub_resource type="LabelSettings" id="LabelSettings_2kr3f"]
font_size = 36
[node name="Footer" type="PanelContainer" node_paths=PackedStringArray("text_label")]
custom_minimum_size = Vector2(0, 150)
script = ExtResource("1_nwsk1")
text_label = NodePath("VBoxContainer/Text")
[node name="Gradient" type="TextureRect" parent="."]
layout_mode = 2
texture = SubResource("GradientTexture2D_vfh7v")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
alignment = 1
[node name="Text" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "Title"
label_settings = SubResource("LabelSettings_2kr3f")
horizontal_alignment = 1