Convert into real project

This commit is contained in:
JeremyStar™ 2024-05-18 15:00:08 +02:00
parent 9810def19b
commit 77910b207b
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
11 changed files with 76 additions and 1 deletions

1
CORE Symbolic link
View file

@ -0,0 +1 @@
dist/submodules/CORE

1
addons/SUI Symbolic link
View file

@ -0,0 +1 @@
../dist/submodules/SUI

View file

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Node
class_name CoreSOSModulesManager
class_name VenusManager
var core: Core
var logger: CoreLoggerInstance

33
project.godot Normal file
View file

@ -0,0 +1,33 @@
; 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=5
[application]
config/name="Venus"
run/main_scene="res://scenesrc/Loader.tscn"
config/use_custom_user_dir=true
config/custom_user_dir_name="StarOpenSource/VenusDev"
config/features=PackedStringArray("4.2", "GL Compatibility")
boot_splash/bg_color=Color(0, 0, 0, 1)
[display]
window/size/viewport_width=1440
window/size/viewport_height=810
[editor_plugins]
enabled=PackedStringArray("res://addons/SUI/plugin.cfg", "res://addons/venus/plugin.cfg")
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
environment/defaults/default_clear_color=Color(0, 0, 0, 1)

12
scenesrc/Loader.tscn Normal file
View file

@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://ov5gul5bymsb"]
[ext_resource type="Script" path="res://src/loader.gd" id="1_gri06"]
[node name="Loader" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_gri06")

28
src/loader.gd Normal file
View file

@ -0,0 +1,28 @@
# STAROPENSOURCE CORE MODULES SOURCE FILE
# Copyright (c) 2024 The StarOpenSource Project & Contributors
# Licensed under the GNU Affero General Public License v3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Control
var core: Core = await Core.new()
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/loader.gd", self)
@onready var manager: VenusManager = VenusManager.new(core)
func _ready() -> void:
await get_tree().process_frame
get_tree().root.add_child(core)
await core.complete_init()
manager.register_modules()