editor: Karten-Editor mit Entwurf, Prüfung und Export ins Projekt
This commit is contained in:
parent
b7de3d037c
commit
fc8917495e
22 changed files with 1760 additions and 32 deletions
|
|
@ -9,6 +9,7 @@ extends Control
|
|||
signal neu
|
||||
signal weiter(slot: int)
|
||||
signal einstellungen
|
||||
signal editor
|
||||
|
||||
const THEME := preload("res://scripts/ui/ui_theme.gd")
|
||||
const BILD := "res://assets/pictures/titel_westreich_1920x1080.png"
|
||||
|
|
@ -82,6 +83,16 @@ func _menue() -> void:
|
|||
_neu_knopf("Einstellungen", Vector2(110, y + 240), _auf_einstellungen)
|
||||
_neu_knopf("Beenden", Vector2(110, y + 320), _auf_beenden)
|
||||
|
||||
# Werkzeug, kein Spielweg: klein in der Ecke, damit die Titelfläche ruhig
|
||||
# bleibt. Der Editor ist auch über `--editor` erreichbar.
|
||||
var werkzeug := Button.new()
|
||||
werkzeug.text = "Karten-Editor"
|
||||
werkzeug.position = Vector2(1480, 1000)
|
||||
werkzeug.size = Vector2(320, 44)
|
||||
werkzeug.focus_mode = Control.FOCUS_NONE
|
||||
werkzeug.pressed.connect(func() -> void: editor.emit())
|
||||
_wurzel.add_child(werkzeug)
|
||||
|
||||
var fuss := Label.new()
|
||||
fuss.text = "Taloria - Prototyp, 17.11.2026"
|
||||
fuss.position = Vector2(110, 1010)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue