do some changes with XLib and started working on main menu
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
extends Node3D
|
||||
|
||||
signal hideChatbox
|
||||
|
||||
## define all of the game variables, ill replace this with a settings file later
|
||||
## ignore duplicate keys, idrc atp
|
||||
@@ -8,13 +8,15 @@ var selectedBlockID : String = "base:testMachine"
|
||||
var selectedSlot = 0
|
||||
var currentHeldItemID : String = "base:air"
|
||||
var canPlaceBlock : bool = false
|
||||
var username = "Xtimhedi"
|
||||
var username = "test"
|
||||
var loadedLanguage = "en-US"
|
||||
var isInputLocked = false
|
||||
|
||||
signal hideChatbox
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var cfg = ConfigLoader.loadConfig()
|
||||
username = cfg.username
|
||||
|
||||
|
||||
func getIfIDExists(ID:String) -> bool:
|
||||
|
||||
Binary file not shown.
7
GameShit/MainGame/World.gd
Normal file
7
GameShit/MainGame/World.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
extends Node3D
|
||||
|
||||
func execUpdate():
|
||||
$XLightingUpdate3D.updateLighting.emit()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
$objects.child_entered_tree.connect(execUpdate)
|
||||
1
GameShit/MainGame/World.gd.uid
Normal file
1
GameShit/MainGame/World.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://f4qnisqbv4gm
|
||||
9
GameShit/UI/Scenes/MainMenuUI.tscn
Normal file
9
GameShit/UI/Scenes/MainMenuUI.tscn
Normal file
@@ -0,0 +1,9 @@
|
||||
[gd_scene format=3 uid="uid://calo1poanr0i8"]
|
||||
|
||||
[node name="MainMenuUi" type="Control" unique_id=122337977]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
Reference in New Issue
Block a user