Update splash array and move to different renderer

This commit is contained in:
JeremyStar™ 2024-01-18 19:59:01 +01:00
parent e78e6ea71b
commit 19d3e8a0d0
4 changed files with 36 additions and 10 deletions

View file

@ -1,9 +1,9 @@
[gd_scene load_steps=10 format=3 uid="uid://btyi16dkvbly1"]
[ext_resource type="Script" path="res://src/console.gd" id="1_viv5y"]
[ext_resource type="FontFile" uid="uid://fd61n825la2g" path="res://assets/fonts/FiraCode/Regular.ttf" id="2_ebuk0"]
[ext_resource type="FontFile" uid="uid://cqa0ee5go1p00" path="res://assets/fonts/FiraCode/Bold.ttf" id="3_102to"]
[ext_resource type="FontFile" uid="uid://ddjvx4n721qha" path="res://assets/fonts/FiraCode/Medium.ttf" id="4_jqfsc"]
[ext_resource type="FontFile" uid="uid://b325yyejgxcyt" path="res://assets/fonts/FiraCode/Regular.ttf" id="2_ebuk0"]
[ext_resource type="FontFile" uid="uid://bbo5ifp3raaog" path="res://assets/fonts/FiraCode/Bold.ttf" id="3_102to"]
[ext_resource type="FontFile" uid="uid://yvdh4nvjqmbk" path="res://assets/fonts/FiraCode/Medium.ttf" id="4_jqfsc"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_u40jo"]

View file

@ -86,4 +86,4 @@ editor_switchres={
[rendering]
renderer/rendering_method="mobile"
renderer/rendering_method="gl_compatibility"

View file

@ -60,10 +60,6 @@ func get_stylebox_blur(resolution_: Vector2i) -> StyleBoxFlat:
stylebox.corner_radius_bottom_right = resolution_.x/30
return stylebox
func update_splash() -> void:
logger.diag("Updating splash text")
get_node("Wallpaper/Welcome/Splash").text = "[center]" + ["The first native code-based presentation viewer.", "Presenting your presentations since 2023", "Made using Godot", "nice", "[b]your mom[/b]", "Also try LibreOffice!", "... exists.", "making unprofessional presentations"].pick_random() + "[/center]"
func open_presentation_picker() -> void:
logger.info("Opening presentation")
var fd: FileDialog = FileDialog.new()
@ -111,3 +107,33 @@ func open_presentation(path: String) -> void:
get_tree().root.add_child(preader.get_entrypoint())
# Uninitialize UI Engine
ui_engine.uninitialize()
func update_splash() -> void:
logger.diag("Updating splash text")
get_node("Wallpaper/Welcome/Splash").text = "[center]" + [
"The first native code-based presentation viewer.", # Tagline
"Presenting your presentations since 2023!", # Inspired by LulzSec's "Laughing at your security since 2011!"
"Made using Godot", # FACT
"nice", # nice :)
"[b]your mom[/b]", # idk why i put this in
"Also try LibreOffice!", # Inspired by Minecraft's "Also play Terraria" and Terraria's "Also play Minecraft"
"... exists.", # We finished the sentence.
"making unprofessional presentations", # Indicating that Presencode shouldn't be used for professional presentations
"hates you!", # why not lol
"tysm <3", # thank you for using
"I'd like to interject for a moment...", # Linux interjection
"cock", # no comment.
"sus ඞ", # Among Us reference
"Crashing in 3... 2... 1...", # Crashing
"Not by StarOpenSource!", # This software doesn't have any involvement with the StarOpenSource Project
"Extra spicy!", # Where did I leave my chilli?
"--- Debugging process stopped ---", # Godot message after stopping a debug build
"/effect @s 16 99999 255 true", # Infinite (or rather, veeeery long) night vision command for Minecraft 1.12.2
"This text was inspired by Minecraft", # It is!
"In this update we made the app much better for you.", # Parody of mobile game/application developers simply putting "We made the app better for you" into their changelog without mentioning any of the changes they've made.
"NVIDIA fuck you", # Reference to Linus Torvalds
"100% open source", # FACT
"is made by idiots.", # if you're working on Presencode or using it you're probably not the smartest person on earth
"'s icons were made with figlet", # FACT
"https://billgates.sex is real" # Reference to MattKC
].pick_random() + "[/center]"

View file

@ -1,8 +1,8 @@
[gd_scene load_steps=6 format=3 uid="uid://b8byh8tp1kc6b"]
[ext_resource type="Texture2D" uid="uid://s10lveujhhqs" path="res://assets/images/Wallpaper.png" id="1_3cfcw"]
[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://41uwq5qahj23" path="res://assets/images/IconTextInverted.png" id="2_2w5c0"]
[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)