mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-02 14:39:37 +01:00
Added a paged article and a paged articles demo.
This commit is contained in:
parent
c9bb63e742
commit
3364b333c7
12
web/paged_article/Main.tscn
Normal file
12
web/paged_article/Main.tscn
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://WebServerSimple.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
[node name="WebServerSimple" type="WebServerSimple" parent="."]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="PagedArticleWebPage" type="PagedArticleWebPage" parent="WebServerSimple"]
|
||||||
|
uri_segment = "/"
|
||||||
|
articles_folder = "res://article/"
|
16
web/paged_article/WebServerSimple.gd
Normal file
16
web/paged_article/WebServerSimple.gd
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends WebServerSimple
|
||||||
|
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a: int = 2
|
||||||
|
# var b: String = "text"
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
start()
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta: float) -> void:
|
||||||
|
# pass
|
11
web/paged_article/article/01_page.md
Normal file
11
web/paged_article/article/01_page.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
# First page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_article/article/02_page.md
Normal file
12
web/paged_article/article/02_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Second page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Second page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_article/article/03_page.md
Normal file
12
web/paged_article/article/03_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Third page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Third page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
web/paged_article/article/files/article_img.png
Normal file
BIN
web/paged_article/article/files/article_img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
35
web/paged_article/article/files/article_img.png.import
Normal file
35
web/paged_article/article/files/article_img.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/article_img.png-64f7234b37c39150631b87bf861fe4b9.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://article/files/article_img.png"
|
||||||
|
dest_files=[ "res://.import/article_img.png-64f7234b37c39150631b87bf861fe4b9.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
16
web/paged_article/article/summary.md
Normal file
16
web/paged_article/article/summary.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# This is a paged article summary page
|
||||||
|
|
||||||
|
summary.md
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
Here's an image:
|
||||||
|
|
||||||
|
![Image](files/article_img.png)
|
||||||
|
|
||||||
|
[Start reading](01_page.md)
|
||||||
|
|
||||||
|
|
7
web/paged_article/default_env.tres
Normal file
7
web/paged_article/default_env.tres
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Environment3D" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
BIN
web/paged_article/icon.png
Normal file
BIN
web/paged_article/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
35
web/paged_article/icon.png.import
Normal file
35
web/paged_article/icon.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://icon.png"
|
||||||
|
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
25
web/paged_article/project.pandemonium
Normal file
25
web/paged_article/project.pandemonium
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="Paged Article"
|
||||||
|
run/main_scene="res://Main.tscn"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/enable_pause_aware_picking=true
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
vram_compression/import_etc=true
|
||||||
|
vram_compression/import_etc2=false
|
||||||
|
environment/default_environment="res://default_env.tres"
|
11
web/paged_articles/Main.tscn
Normal file
11
web/paged_articles/Main.tscn
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://WebServerSimple.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
|
[node name="WebServerSimple" type="WebServerSimple" parent="."]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="PagedArticlesWebPage" type="PagedArticlesWebPage" parent="WebServerSimple"]
|
||||||
|
folder = "res://articles/"
|
16
web/paged_articles/WebServerSimple.gd
Normal file
16
web/paged_articles/WebServerSimple.gd
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends WebServerSimple
|
||||||
|
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a: int = 2
|
||||||
|
# var b: String = "text"
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
start()
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta: float) -> void:
|
||||||
|
# pass
|
11
web/paged_articles/articles/article1/01_page.md
Normal file
11
web/paged_articles/articles/article1/01_page.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
# First page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_articles/articles/article1/02_page.md
Normal file
12
web/paged_articles/articles/article1/02_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Second page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Second page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_articles/articles/article1/03_page.md
Normal file
12
web/paged_articles/articles/article1/03_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Third page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Third page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
web/paged_articles/articles/article1/files/article_img.png
Normal file
BIN
web/paged_articles/articles/article1/files/article_img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/article_img.png-bb0705ec07e0bd0461041125c4ba874a.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://articles/article1/files/article_img.png"
|
||||||
|
dest_files=[ "res://.import/article_img.png-bb0705ec07e0bd0461041125c4ba874a.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
16
web/paged_articles/articles/article1/summary.md
Normal file
16
web/paged_articles/articles/article1/summary.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# This is a paged article summary page
|
||||||
|
|
||||||
|
summary.md
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
Here's an image:
|
||||||
|
|
||||||
|
![Image](files/article_img.png)
|
||||||
|
|
||||||
|
[Start reading](01_page.md)
|
||||||
|
|
||||||
|
|
11
web/paged_articles/articles/article2/01_page.md
Normal file
11
web/paged_articles/articles/article2/01_page.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
# First page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_articles/articles/article2/02_page.md
Normal file
12
web/paged_articles/articles/article2/02_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Second page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Second page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
web/paged_articles/articles/article2/03_page.md
Normal file
12
web/paged_articles/articles/article2/03_page.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# Third page
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
Third page content.
|
||||||
|
|
||||||
|
![IMage](article_img.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
web/paged_articles/articles/article2/files/article_img.png
Normal file
BIN
web/paged_articles/articles/article2/files/article_img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/article_img.png-3b736821a974ec63ea3a43a88f59890f.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://articles/article2/files/article_img.png"
|
||||||
|
dest_files=[ "res://.import/article_img.png-3b736821a974ec63ea3a43a88f59890f.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
16
web/paged_articles/articles/article2/summary.md
Normal file
16
web/paged_articles/articles/article2/summary.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# This is a paged article summary page
|
||||||
|
|
||||||
|
summary.md
|
||||||
|
|
||||||
|
## Gets rendered as proper markdown
|
||||||
|
|
||||||
|
First page content.
|
||||||
|
|
||||||
|
Here's an image:
|
||||||
|
|
||||||
|
![Image](files/article_img.png)
|
||||||
|
|
||||||
|
[Start reading](01_page.md)
|
||||||
|
|
||||||
|
|
7
web/paged_articles/default_env.tres
Normal file
7
web/paged_articles/default_env.tres
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Environment3D" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
BIN
web/paged_articles/icon.png
Normal file
BIN
web/paged_articles/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
35
web/paged_articles/icon.png.import
Normal file
35
web/paged_articles/icon.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://icon.png"
|
||||||
|
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
25
web/paged_articles/project.pandemonium
Normal file
25
web/paged_articles/project.pandemonium
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="Paged Article"
|
||||||
|
run/main_scene="res://Main.tscn"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/enable_pause_aware_picking=true
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
vram_compression/import_etc=true
|
||||||
|
vram_compression/import_etc2=false
|
||||||
|
environment/default_environment="res://default_env.tres"
|
Loading…
Reference in New Issue
Block a user