Rename project to a much better name: Venus

This commit is contained in:
JeremyStar™ 2024-05-16 00:37:28 +02:00
parent c1c87476c0
commit 9b9d2e47d9
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 11 additions and 10 deletions

View file

@ -1,17 +1,18 @@
# StarOpenSource's CORE modules # Venus
StarOpenSource's custom [CORE](https://git.staropensource.de/StarOpenSource/CORE) modules.
## Setting up ## Setting up
```bash ```bash
mkdir -p addons mkdir -p addons
git clone https://git.staropensource.de/StarOpenSource/CORE-StarOpenSource-modules.git addons/sos_core_modules git clone https://git.staropensource.de/StarOpenSource/venus.git addons/venus
``` ```
## References ## References
### `src/manager.gd` ### `src/manager.gd`
#### *void* <u>register_modules</u>() #### *void* <u>register_modules</u>()
Registers all CORE modules. Registers all of Venus' modules.
#### *void* <u>unregister_modules</u>() #### *void* <u>unregister_modules</u>()
Unregisters all CORE modules. Unregisters all of Venus' modules.
### `src/modules/splashes.gd` ### `src/modules/splashes.gd`
#### *CoreBaseModule* <u>add_splash</u>(*String* <u>category</u>, *String* <u>splash</u>) #### *CoreBaseModule* <u>add_splash</u>(*String* <u>category</u>, *String* <u>splash</u>)

View file

@ -1,7 +1,7 @@
[plugin] [plugin]
name="StarOpenSource's CORE modules" name="Venus"
description="" description="StarOpenSource's custom CORE modules."
author="The StarOpenSource Project & Contributors" author="The StarOpenSource Project & Contributors"
version="" version=""
script="plugin.gd" script="plugin.gd"

View file

@ -20,17 +20,17 @@ class_name CoreSOSModulesManager
var core: Core var core: Core
var logger: CoreLoggerInstance var logger: CoreLoggerInstance
var path: String = "addons/sos_core_modules/src" var path: String = "addons/venus/src"
var modules: Dictionary = { "standard": [ "splashes" ], "sui": [] } var modules: Dictionary = { "standard": [ "splashes" ], "sui": [] }
func _init(core_new: Core) -> void: func _init(core_new: Core) -> void:
name = "StarOpenSource CORE modules manager" name = "Venus manager"
core = core_new core = core_new
logger = core.logger.get_instance(path + "/manager.gd", self) logger = core.logger.get_instance(path + "/manager.gd", self)
func register_modules() -> void: func register_modules() -> void:
logger.verb("Registering StarOpenSource's CORE modules") logger.verb("Registering Venus' modules")
for category in modules: for category in modules:
if category == "sui" and !DirAccess.dir_exists_absolute("res://addons/SUI"): if category == "sui" and !DirAccess.dir_exists_absolute("res://addons/SUI"):
@ -46,7 +46,7 @@ func register_modules() -> void:
core.register_custom_module(module, path + "/modules/" + module + ".gd", module_node) core.register_custom_module(module, path + "/modules/" + module + ".gd", module_node)
func unregister_modules() -> void: func unregister_modules() -> void:
logger.verb("Unregistering StarOpenSource's CORE modules") logger.verb("Unregistering Venus' modules")
for module in modules: for module in modules:
logger.diag(core.misc.stringify_variables("Unregistering module %module%", { "module": module })) logger.diag(core.misc.stringify_variables("Unregistering module %module%", { "module": module }))