game: Party-Erstellung als Einstieg — Roster, Figurenmaske, UI-Probe
This commit is contained in:
parent
b47c392e85
commit
f8d8f56b86
16 changed files with 707 additions and 17 deletions
|
|
@ -559,9 +559,12 @@ func _ui() -> void:
|
|||
wurzel.add_child(rahmen)
|
||||
|
||||
var portrait := TextureRect.new()
|
||||
var pname := "portrait_%s_96px" % _portrait_name(Game.party[i])
|
||||
var ppfad := _pfad(PORTRAITS, pname) if gemalt \
|
||||
else PORTRAITS + pname + ".png"
|
||||
var pname := str(Game.party[i].get("portrait", ""))
|
||||
if pname.is_empty():
|
||||
pname = "portrait_%s" % _portrait_name(Game.party[i])
|
||||
var pid := pname + "_96px"
|
||||
var ppfad := _pfad(PORTRAITS, pid) if gemalt \
|
||||
else PORTRAITS + pid + ".png"
|
||||
portrait.texture = _textur(ppfad)
|
||||
portrait.position = Vector2(spalte + 4, y + 4)
|
||||
portrait.size = Vector2(112, 112)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue