From e36fe49f778fbfc1572b604860c93c7dc2d3bfd5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 7 Apr 2023 13:04:22 +0200 Subject: [PATCH] Initial project setup. --- game/Main.tscn | 6 +++++- game/downloader/DownloadManager.gd | 16 ++++++++++++++++ game/downloader/DownloadManager.tscn | 6 ++++++ game/gui/ProjectGUI.gd | 16 ++++++++++++++++ game/gui/ProjectGUI.tscn | 8 ++++++++ game/project.pandemonium | 7 +++++++ game/projects/ProjectManager.gd | 16 ++++++++++++++++ game/projects/ProjectManager.tscn | 6 ++++++ game/serve/ProjectServeManager.gd | 16 ++++++++++++++++ game/serve/ProjectServeManager.tscn | 6 ++++++ game/settings/Settings.gd | 16 ++++++++++++++++ game/settings/Settings.tscn | 6 ++++++ 12 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 game/downloader/DownloadManager.gd create mode 100644 game/downloader/DownloadManager.tscn create mode 100644 game/gui/ProjectGUI.gd create mode 100644 game/gui/ProjectGUI.tscn create mode 100644 game/projects/ProjectManager.gd create mode 100644 game/projects/ProjectManager.tscn create mode 100644 game/serve/ProjectServeManager.gd create mode 100644 game/serve/ProjectServeManager.tscn create mode 100644 game/settings/Settings.gd create mode 100644 game/settings/Settings.tscn diff --git a/game/Main.tscn b/game/Main.tscn index 0f1756c..77aacab 100644 --- a/game/Main.tscn +++ b/game/Main.tscn @@ -1,3 +1,7 @@ -[gd_scene format=2] +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://gui/ProjectGUI.tscn" type="PackedScene" id=1] [node name="Main" type="Node"] + +[node name="ProjectGUI" parent="." instance=ExtResource( 1 )] diff --git a/game/downloader/DownloadManager.gd b/game/downloader/DownloadManager.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/game/downloader/DownloadManager.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/downloader/DownloadManager.tscn b/game/downloader/DownloadManager.tscn new file mode 100644 index 0000000..3d0d08c --- /dev/null +++ b/game/downloader/DownloadManager.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://downloader/DownloadManager.gd" type="Script" id=1] + +[node name="DownloadManager" type="Node"] +script = ExtResource( 1 ) diff --git a/game/gui/ProjectGUI.gd b/game/gui/ProjectGUI.gd new file mode 100644 index 0000000..8513abe --- /dev/null +++ b/game/gui/ProjectGUI.gd @@ -0,0 +1,16 @@ +extends PanelContainer + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/gui/ProjectGUI.tscn b/game/gui/ProjectGUI.tscn new file mode 100644 index 0000000..0a9aa8d --- /dev/null +++ b/game/gui/ProjectGUI.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://gui/ProjectGUI.gd" type="Script" id=1] + +[node name="ProjectGUI" type="PanelContainer"] +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) diff --git a/game/project.pandemonium b/game/project.pandemonium index d4abe92..12ecc57 100644 --- a/game/project.pandemonium +++ b/game/project.pandemonium @@ -15,6 +15,13 @@ config/description="Web Site archiver" run/main_scene="res://Main.tscn" config/icon="res://icon.png" +[autoload] + +Settings="*res://settings/Settings.tscn" +DownloadManager="*res://downloader/DownloadManager.tscn" +ProjectManager="*res://projects/ProjectManager.tscn" +ProjectServeManager="*res://serve/ProjectServeManager.tscn" + [physics] common/enable_pause_aware_picking=true diff --git a/game/projects/ProjectManager.gd b/game/projects/ProjectManager.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/game/projects/ProjectManager.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/projects/ProjectManager.tscn b/game/projects/ProjectManager.tscn new file mode 100644 index 0000000..d38f191 --- /dev/null +++ b/game/projects/ProjectManager.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://projects/ProjectManager.gd" type="Script" id=1] + +[node name="ProjectManager" type="Node"] +script = ExtResource( 1 ) diff --git a/game/serve/ProjectServeManager.gd b/game/serve/ProjectServeManager.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/game/serve/ProjectServeManager.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/serve/ProjectServeManager.tscn b/game/serve/ProjectServeManager.tscn new file mode 100644 index 0000000..f580803 --- /dev/null +++ b/game/serve/ProjectServeManager.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://serve/ProjectServeManager.gd" type="Script" id=1] + +[node name="ProjectServeManager" type="Node"] +script = ExtResource( 1 ) diff --git a/game/settings/Settings.gd b/game/settings/Settings.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/game/settings/Settings.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/settings/Settings.tscn b/game/settings/Settings.tscn new file mode 100644 index 0000000..9a8279b --- /dev/null +++ b/game/settings/Settings.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://settings/Settings.gd" type="Script" id=1] + +[node name="Settings" type="Node"] +script = ExtResource( 1 )