Working on UI Logic, will lead to intermediate character creation/selection screen
This commit is contained in:
parent
6352347c4d
commit
22291bf639
8 changed files with 126 additions and 29 deletions
18
weltenauge/ui/account/login.gd
Normal file
18
weltenauge/ui/account/login.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
extends Control
|
||||
|
||||
@onready var ip_input: TextEdit = $IPInput
|
||||
|
||||
func _on_host_button_pressed() -> void:
|
||||
print("host pressed")
|
||||
GameEvents.host_requested.emit()
|
||||
hide()
|
||||
|
||||
func _on_join_button_pressed():
|
||||
var username = $UsernameLineEdit.text
|
||||
var password = $PasswordLineEdit.text # TODO: Handle Password
|
||||
|
||||
# Hier findet später die Prüfung gegen den Server statt
|
||||
# Im Moment simulieren wir einfach einen erfolgreichen Login
|
||||
#TODO
|
||||
GameEvents.join_requested.emit(ip_input.text)
|
||||
hide()
|
||||
Loading…
Add table
Add a link
Reference in a new issue