Skip to content

Commit 1f95ce1

Browse files
Merge pull request #36 from SpectrumPro/dev
v1.0.0-beta3
2 parents 307bd42 + 3f04916 commit 1f95ce1

File tree

632 files changed

+21279
-7382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

632 files changed

+21279
-7382
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
name: Build and Release Spectrum Client
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version tag to release (e.g. v1.2.3)"
8+
required: true
9+
type: string
710

811
jobs:
912
export_spectrum:
1013
name: Build Spectrum Client
1114
runs-on: ubuntu-latest
12-
permissions: write-all
15+
permissions:
16+
contents: write
1317

1418
steps:
1519
- name: Checkout repository
1620
uses: actions/checkout@v4
1721
with:
1822
lfs: true
23+
fetch-depth: 0
24+
25+
- name: Create git tag
26+
run: |
27+
git tag ${{ inputs.version }}
28+
git push origin ${{ inputs.version }}
1929
2030
- name: Export Spectrum
2131
id: export
@@ -25,13 +35,14 @@ jobs:
2535
godot_export_templates_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4.1-stable/Godot_v4.4.1-stable_export_templates.tpz
2636
relative_project_path: ./
2737
archive_output: true
28-
presets_to_export: Windows, Linux, macOS
38+
presets_to_export: Windows, Linux, macOS
2939

3040
- name: Create GitHub Release
3141
uses: ncipollo/release-action@v1.14.0
3242
with:
3343
token: ${{ secrets.GITHUB_TOKEN }}
44+
tag: ${{ inputs.version }}
45+
name: ${{ inputs.version }}
3446
generateReleaseNotes: true
35-
tag: ${{ github.ref_name }}
3647
artifacts: ${{ steps.export.outputs.archive_directory }}/*
3748

ConstellaitionConfig.gd

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
static var config: Dictionary = {
2+
## Defines a custom callable to call when logging infomation
3+
"custom_loging_method": Callable(),
4+
5+
## Defines a custom callable to call when logging infomation verbosely
6+
"custom_loging_method_verbose": Callable(),
7+
8+
## A String prefix to print before all message logs
9+
"log_prefix": "CTL:",
10+
11+
## Default IP address to bind to
12+
"bind_address": "",
13+
14+
## Default IP address to bind to
15+
"bind_interface": "",
16+
17+
## File location for a user config override
18+
"user_config_file_location": "user://",
19+
20+
## File name for the user config override
21+
"user_config_file_name": "constellation.conf",
22+
23+
## NodeID of the local node
24+
"node_id": UUID_Util.v4(),
25+
26+
## Node name of the local node
27+
"node_name": "Spectrum Client",
28+
29+
## SessionID of the previous session the local node was in
30+
"session_id": "",
31+
32+
## True if the previous session
33+
"session_auto_rejoin": true,
34+
35+
## True if this node should auto create a session once online, asuming previous session is is null and the node is not already in a session
36+
"auto_create_session": false
37+
}

ConstellaitionConfig.gd.uid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://cwjvao7e67ft0

InterfaceConfig.gd

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
class_name InterfaceConfig
2+
3+
## File location to store the UI Save
4+
var ui_save_location: String = "user://"
5+
6+
## File name to store the UI Save
7+
var ui_save_file: String = "ui.json"
8+
9+
## Default items in the UICommandPalette
10+
var command_palette_default_items: Array[CommandPaletteEntry] = [
11+
CommandPaletteEntry.new(
12+
Interface.settings_manager,
13+
"Interface",
14+
),
15+
CommandPaletteEntry.new(
16+
Network.settings_manager,
17+
"Network",
18+
),
19+
CommandPaletteEntry.new(
20+
Network.get_active_handler_by_name("Constellation").get_local_node().settings_manager,
21+
"Constellation",
22+
)
23+
]
24+
25+
## Default items in the UIObjectPicker
26+
var object_picker_default_items: Dictionary[Script, ClassTreeConfig] = {
27+
EngineComponent: ClassTreeConfig.new(
28+
ClassList.get_global_class_tree(),
29+
ClassList.get_inheritance_map(),
30+
ClassList.is_class_hidden,
31+
ComponentDB.get_components_by_classname,
32+
func (p_component: EngineComponent): return p_component.classname(),
33+
func (p_component: EngineComponent): return p_component.name(),
34+
ClassList.does_class_inherit,
35+
Core.create_component,
36+
),
37+
NetworkItem: ClassTreeConfig.new(
38+
NetworkClassList.get_global_class_tree(),
39+
NetworkClassList.get_inheritance_map(),
40+
NetworkClassList.is_class_hidden,
41+
Network.get_items_by_classname,
42+
func (p_item: NetworkItem): return p_item.get_script().get_global_name(),
43+
func (p_item: NetworkItem): return p_item.get_handler_name() if p_item is NetworkHandler else p_item.get_session_name() if p_item is NetworkSession else p_item.get_node_name() if p_item is NetworkNode else "",
44+
NetworkClassList.does_class_inherit,
45+
Callable()
46+
)
47+
}

InterfaceConfig.gd.uid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://btggt6vlyhiv

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://github.com/SpectrumPro/Spectrum/blob/master/Assets/Icon.png?raw=true" alt="Spectrum Logo" width="150" height="150">
2+
<img src="https://github.com/SpectrumPro/Spectrum/blob/master/assets/Icon.png?raw=true" alt="Spectrum Logo" width="150" height="150">
33
<h1 align="center">Spectrum</h1>
44
</p>
55

StatusBar.gd

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)