basic slide setup and theme
Update presentation_theme.tres, standard.tscn, footer.gd, and 1 more file
This commit is contained in:
parent
8653ab0d2b
commit
b3e72f9e0b
4 changed files with 102 additions and 1 deletions
9
presentation_theme.tres
Normal file
9
presentation_theme.tres
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[gd_resource type="Theme" format=3 uid="uid://bswj4s1sfy137"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
RichTextLabel/colors/default_color = Color(0, 0, 0, 1)
|
||||||
|
RichTextLabel/font_sizes/bold_font_size = 30
|
||||||
|
RichTextLabel/font_sizes/bold_italics_font_size = 30
|
||||||
|
RichTextLabel/font_sizes/italics_font_size = 30
|
||||||
|
RichTextLabel/font_sizes/mono_font_size = 30
|
||||||
|
RichTextLabel/font_sizes/normal_font_size = 30
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
[gd_scene load_steps=2 format=3 uid="uid://ccokwij05tg74"]
|
[gd_scene load_steps=5 format=3 uid="uid://ccokwij05tg74"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://b3hn5sbsngqud" path="res://widgets/header.tscn" id="1_bhwne"]
|
[ext_resource type="PackedScene" uid="uid://b3hn5sbsngqud" path="res://widgets/header.tscn" id="1_bhwne"]
|
||||||
|
[ext_resource type="Theme" uid="uid://bswj4s1sfy137" path="res://presentation_theme.tres" id="1_glcb6"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cmlxbj2fr6ivw" path="res://widgets/footer.tscn" id="2_8pox0"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dweu560gyqjqy" path="res://icon.svg" id="3_ml57n"]
|
||||||
|
|
||||||
[node name="BaseSlide" type="VBoxContainer"]
|
[node name="BaseSlide" type="VBoxContainer"]
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
|
@ -8,8 +11,47 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
theme = ExtResource("1_glcb6")
|
||||||
|
|
||||||
[node name="Header" parent="." instance=ExtResource("1_bhwne")]
|
[node name="Header" parent="." instance=ExtResource("1_bhwne")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
title = "Welcome to Godot!"
|
title = "Welcome to Godot!"
|
||||||
subtitle = "It's a really cool engine!"
|
subtitle = "It's a really cool engine!"
|
||||||
|
|
||||||
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 3
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="ColorRect"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_constants/margin_left = 20
|
||||||
|
theme_override_constants/margin_top = 20
|
||||||
|
theme_override_constants/margin_right = 20
|
||||||
|
theme_override_constants/margin_bottom = 20
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect/MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="RichTextLabel" type="RichTextLabel" parent="ColorRect/MarginContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
bbcode_enabled = true
|
||||||
|
text = "[color=#E3266F]Game studios[/color] like Gamblify, GuaranApps, Kivano...
|
||||||
|
[color=#26BFE3]Schools[/color] including School4Games Berlin, KidsCanCode...
|
||||||
|
[color=#02E180]Content creators[/color] like Heartbeast, GamesFromScratch, [i]GDQuest[/i]...
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="ColorRect/MarginContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("3_ml57n")
|
||||||
|
expand_mode = 3
|
||||||
|
|
||||||
|
[node name="Footer" parent="." instance=ExtResource("2_8pox0")]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "This is a footer component"
|
||||||
|
|
|
||||||
18
widgets/footer.gd
Normal file
18
widgets/footer.gd
Normal 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
32
widgets/footer.tscn
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue