Initial commit.

This commit is contained in:
2020-04-07 11:12:48 -04:00
commit 0c64ddb7c6
18 changed files with 562 additions and 0 deletions

6
packages/base/base.tscn Normal file
View File

@@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://packages/base/main.gd" type="Script" id=1]
[node name="Node" type="Node"]
script = ExtResource( 1 )

14
packages/base/main.gd Normal file
View File

@@ -0,0 +1,14 @@
extends Node
onready var ConsoleService = $"/root/ConsoleService"
const package = {
"name": "base",
"version": "0.1.0",
"dependencies": [
"vest_mainmenu"
]
}
func init():
ConsoleService.log("[Base] Mod Init")

View File

@@ -0,0 +1,14 @@
extends Node
onready var ConsoleService = $"/root/ConsoleService"
const package = {
"name": "vest_mainmenu",
"version": "0.1.0"
}
func init():
ConsoleService.log("[Vest Mainmenu] Mod Init")
var scene_root = $"/root/Main/Scene"
var main_menu = preload("main_menu.tscn")
scene_root.add_child(main_menu.instance());

View File

@@ -0,0 +1,15 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
var NetworkService = $"/root/NetworkService"
if NetworkService.NETWORK_MODE == 'server':
$"TabContainer/Singleplayer".queue_free()
var ConsoleService = $"/root/ConsoleService"
ConsoleService.connect("on_log", self, "update_log")
ConsoleService.connect("on_error", self, "update_log")
$"TabContainer/Logs/LogList".text = PoolStringArray(ConsoleService.log_messages).join("\n")
func update_log(log_messages):
$"TabContainer/Logs/LogList".text = PoolStringArray(log_messages).join("\n")

View File

@@ -0,0 +1,51 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://packages/vest_mainmenu/main_menu.gd" type="Script" id=1]
[node name="Node" type="Node"]
script = ExtResource( 1 )
[node name="TabContainer" type="TabContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 50.0
margin_top = 49.1426
margin_right = -50.0
margin_bottom = -50.8574
tab_align = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Logs" type="Control" parent="TabContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 32.0
margin_right = -4.0
margin_bottom = -4.0
[node name="LogList" type="RichTextLabel" parent="TabContainer/Logs"]
anchor_right = 1.0
anchor_bottom = 1.0
scroll_following = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Singleplayer" type="Control" parent="TabContainer"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 32.0
margin_right = -4.0
margin_bottom = -4.0
[node name="Start Game" type="Button" parent="TabContainer/Singleplayer"]
margin_right = 12.0
margin_bottom = 20.0
text = "Start Game"
__meta__ = {
"_edit_use_anchors_": false
}

Submodule packages/voxel_mesher/godot_headers added at ddf67cc7b8