mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
splash screen
This commit is contained in:
parent
da21bbda07
commit
c0e1dc8f2a
8 changed files with 31 additions and 20 deletions
|
@ -14,6 +14,8 @@ config/name="TheGates"
|
||||||
config/description="Building new Internet"
|
config/description="Building new Internet"
|
||||||
run/main_scene="res://the_gates/scenes/app.tscn"
|
run/main_scene="res://the_gates/scenes/app.tscn"
|
||||||
config/features=PackedStringArray("4.0")
|
config/features=PackedStringArray("4.0")
|
||||||
|
boot_splash/image="res://the_gates/textures/background.png"
|
||||||
|
boot_splash/fullsize=false
|
||||||
config/icon="res://the_gates/icons/icon_64.png"
|
config/icon="res://the_gates/icons/icon_64.png"
|
||||||
config/windows_native_icon="res://the_gates/icons/icon.ico"
|
config/windows_native_icon="res://the_gates/icons/icon.ico"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[gd_scene load_steps=7 format=3]
|
[gd_scene load_steps=7 format=3 uid="uid://82ca8so31njy"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bookmark_ui.gd" id="1_bpkqj"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bookmark_ui.gd" id="1_bpkqj"]
|
||||||
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://the_gates/resources/gate_events.res" id="2_7i5yr"]
|
[ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://the_gates/resources/gate_events.res" id="2_7i5yr"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bj8xlyxihfske" path="res://the_gates/textures/background.jpg" id="3_fljny"]
|
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://the_gates/textures/background.png" id="3_kgutt"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qq7cx"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qq7cx"]
|
||||||
corner_radius_top_left = 25
|
corner_radius_top_left = 25
|
||||||
|
@ -40,8 +40,8 @@ grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
size_flags_vertical = 4
|
size_flags_vertical = 4
|
||||||
texture = ExtResource("3_fljny")
|
texture = ExtResource("3_kgutt")
|
||||||
ignore_texture_size = true
|
expand_mode = 1
|
||||||
stretch_mode = 6
|
stretch_mode = 6
|
||||||
|
|
||||||
[node name="Gradient" type="TextureRect" parent="."]
|
[node name="Gradient" type="TextureRect" parent="."]
|
||||||
|
@ -55,7 +55,7 @@ offset_top = -50.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
texture = SubResource("GradientTexture2D_yd20y")
|
texture = SubResource("GradientTexture2D_yd20y")
|
||||||
ignore_texture_size = true
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="Title" type="Label" parent="."]
|
[node name="Title" type="Label" parent="."]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
|
@ -85,6 +85,9 @@ top_level = false
|
||||||
clip_children = 0
|
clip_children = 0
|
||||||
light_mask = 1
|
light_mask = 1
|
||||||
visibility_layer = 1
|
visibility_layer = 1
|
||||||
|
z_index = 0
|
||||||
|
z_as_relative = true
|
||||||
|
y_sort_enabled = false
|
||||||
texture_filter = 0
|
texture_filter = 0
|
||||||
texture_repeat = 0
|
texture_repeat = 0
|
||||||
material = null
|
material = null
|
||||||
|
@ -111,6 +114,7 @@ size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
size_flags_stretch_ratio = 1.0
|
size_flags_stretch_ratio = 1.0
|
||||||
auto_translate = true
|
auto_translate = true
|
||||||
|
localize_numeral_system = true
|
||||||
tooltip_text = ""
|
tooltip_text = ""
|
||||||
focus_neighbor_left = NodePath("")
|
focus_neighbor_left = NodePath("")
|
||||||
focus_neighbor_top = NodePath("")
|
focus_neighbor_top = NodePath("")
|
||||||
|
@ -126,14 +130,14 @@ theme = null
|
||||||
theme_type_variation = &""
|
theme_type_variation = &""
|
||||||
disabled = false
|
disabled = false
|
||||||
toggle_mode = false
|
toggle_mode = false
|
||||||
shortcut_in_tooltip = true
|
|
||||||
button_pressed = false
|
button_pressed = false
|
||||||
action_mode = 1
|
action_mode = 1
|
||||||
button_mask = 1
|
button_mask = 1
|
||||||
keep_pressed_outside = false
|
keep_pressed_outside = false
|
||||||
|
button_group = null
|
||||||
shortcut = null
|
shortcut = null
|
||||||
shortcut_feedback = true
|
shortcut_feedback = true
|
||||||
button_group = null
|
shortcut_in_tooltip = true
|
||||||
script = null
|
script = null
|
||||||
|
|
||||||
[connection signal="pressed" from="BaseButton" to="." method="_on_base_button_pressed"]
|
[connection signal="pressed" from="BaseButton" to="." method="_on_base_button_pressed"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=19 format=3 uid="uid://5btb7nvgmfhl"]
|
[gd_scene load_steps=19 format=3 uid="uid://5btb7nvgmfhl"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bj8xlyxihfske" path="res://the_gates/textures/background.jpg" id="3_6p5p0"]
|
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://the_gates/textures/background.png" id="1_uidjl"]
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/exit_app.gd" id="4_2065t"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/exit_app.gd" id="4_2065t"]
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bottom_animation.gd" id="4_c1cpy"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bottom_animation.gd" id="4_c1cpy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctam0fxigbefk" path="res://the_gates/scenes/components/search.tscn" id="5_li2do"]
|
[ext_resource type="PackedScene" uid="uid://ctam0fxigbefk" path="res://the_gates/scenes/components/search.tscn" id="5_li2do"]
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/menu_animation.gd" id="7_ljms6"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/menu_animation.gd" id="7_ljms6"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bpj05amcrq1cq" path="res://the_gates/textures/slide-up.png" id="7_qsgsx"]
|
[ext_resource type="Texture2D" uid="uid://bpj05amcrq1cq" path="res://the_gates/textures/slide-up.png" id="7_qsgsx"]
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bookmark_container.gd" id="7_wj13t"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/menu/bookmark_container.gd" id="7_wj13t"]
|
||||||
[ext_resource type="PackedScene" path="res://the_gates/scenes/components/bookmark.tscn" id="8_h7tks"]
|
[ext_resource type="PackedScene" uid="uid://82ca8so31njy" path="res://the_gates/scenes/components/bookmark.tscn" id="8_h7tks"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pveoh"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pveoh"]
|
||||||
|
|
||||||
|
@ -237,10 +237,9 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_pveoh")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_bottom = 120.0
|
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("3_6p5p0")
|
texture = ExtResource("1_uidjl")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
stretch_mode = 6
|
stretch_mode = 6
|
||||||
metadata/_edit_lock_ = true
|
metadata/_edit_lock_ = true
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://c5hu6cmvuipg7" path="res://the_gates/textures/star_filled.png" id="8_gho7k"]
|
[ext_resource type="Texture2D" uid="uid://c5hu6cmvuipg7" path="res://the_gates/textures/star_filled.png" id="8_gho7k"]
|
||||||
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://the_gates/resources/bookmarks.tres" id="8_wox3p"]
|
[ext_resource type="Resource" uid="uid://bewhdj6jugt6q" path="res://the_gates/resources/bookmarks.tres" id="8_wox3p"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c26q840lwxw8j" path="res://the_gates/textures/exit.png" id="9_63xhv"]
|
[ext_resource type="Texture2D" uid="uid://c26q840lwxw8j" path="res://the_gates/textures/exit.png" id="9_63xhv"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cykx425p6ylwr" path="res://the_gates/textures/background.png" id="9_req2b"]
|
||||||
[ext_resource type="Script" path="res://the_gates/scripts/ui/world/release_focus.gd" id="10_6a8ws"]
|
[ext_resource type="Script" path="res://the_gates/scripts/ui/world/release_focus.gd" id="10_6a8ws"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bj8xlyxihfske" path="res://the_gates/textures/background.jpg" id="10_v058a"]
|
|
||||||
[ext_resource type="PackedScene" path="res://the_gates/scenes/components/hint.tscn" id="11_cltj4"]
|
[ext_resource type="PackedScene" path="res://the_gates/scenes/components/hint.tscn" id="11_cltj4"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shmbc"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shmbc"]
|
||||||
|
@ -79,6 +79,7 @@ gate_events = ExtResource("2_ot8b0")
|
||||||
script = ExtResource("1_5swiq")
|
script = ExtResource("1_5swiq")
|
||||||
gate_events = ExtResource("2_ot8b0")
|
gate_events = ExtResource("2_ot8b0")
|
||||||
render_result = NodePath("../../WorldCanvas/RenderResult")
|
render_result = NodePath("../../WorldCanvas/RenderResult")
|
||||||
|
splash_screen = ExtResource("9_req2b")
|
||||||
|
|
||||||
[node name="UICanvas" type="CanvasLayer" parent="."]
|
[node name="UICanvas" type="CanvasLayer" parent="."]
|
||||||
follow_viewport_enabled = true
|
follow_viewport_enabled = true
|
||||||
|
@ -239,7 +240,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
texture = ExtResource("10_v058a")
|
texture = ExtResource("9_req2b")
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
stretch_mode = 6
|
stretch_mode = 6
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ class_name PackLoader
|
||||||
|
|
||||||
@export var gate_events: GateEvents
|
@export var gate_events: GateEvents
|
||||||
@export var render_result: TextureRect
|
@export var render_result: TextureRect
|
||||||
|
@export var splash_screen: Texture2D
|
||||||
|
|
||||||
var gate: Gate
|
var gate: Gate
|
||||||
var pid: int
|
var pid: int
|
||||||
|
@ -59,13 +60,17 @@ func create_process(_gate: Gate) -> void:
|
||||||
func create_external_texture() -> int:
|
func create_external_texture() -> int:
|
||||||
var t_format: RDTextureFormat = RDTextureFormat.new()
|
var t_format: RDTextureFormat = RDTextureFormat.new()
|
||||||
t_format.format = RenderingDevice.DATA_FORMAT_R8G8B8A8_UNORM
|
t_format.format = RenderingDevice.DATA_FORMAT_R8G8B8A8_UNORM
|
||||||
t_format.usage_bits = RenderingDevice.TEXTURE_USAGE_CAN_COPY_FROM_BIT
|
t_format.usage_bits = RenderingDevice.TEXTURE_USAGE_CAN_COPY_FROM_BIT | \
|
||||||
|
RenderingDevice.TEXTURE_USAGE_CAN_UPDATE_BIT
|
||||||
t_format.width = width
|
t_format.width = width
|
||||||
t_format.height = height
|
t_format.height = height
|
||||||
t_format.depth = 1
|
t_format.depth = 1
|
||||||
var t_view: RDTextureView = RDTextureView.new()
|
var t_view: RDTextureView = RDTextureView.new()
|
||||||
|
|
||||||
ext_texure_rid = rd.create_external_texture(t_format, t_view)
|
var image = splash_screen.get_image()
|
||||||
|
image.convert(Image.FORMAT_RGBA8)
|
||||||
|
image.clear_mipmaps()
|
||||||
|
ext_texure_rid = rd.create_external_texture(t_format, t_view, [image.get_data()])
|
||||||
return rd.get_external_texture_fd(ext_texure_rid)
|
return rd.get_external_texture_fd(ext_texure_rid)
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 362 KiB |
BIN
project/the_gates/textures/background.png
Normal file
BIN
project/the_gates/textures/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 MiB |
|
@ -2,23 +2,23 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://bj8xlyxihfske"
|
uid="uid://cykx425p6ylwr"
|
||||||
path="res://.godot/imported/background.jpg-a1ed70f136d4640d0867221bacee7cad.ctex"
|
path="res://.godot/imported/background.png-efe0ff795f34177e7f784c17fa119300.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://the_gates/textures/background.jpg"
|
source_file="res://the_gates/textures/background.png"
|
||||||
dest_files=["res://.godot/imported/background.jpg-a1ed70f136d4640d0867221bacee7cad.ctex"]
|
dest_files=["res://.godot/imported/background.png-efe0ff795f34177e7f784c17fa119300.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_compression=1
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
mipmaps/generate=true
|
mipmaps/generate=true
|
Loading…
Add table
Add a link
Reference in a new issue