game: Traglast-Malus, Truhen, Bodenablage und weitere Tränke
This commit is contained in:
parent
01c312d918
commit
3e533e5089
23 changed files with 557 additions and 28 deletions
|
|
@ -311,7 +311,7 @@ func _details(p: Panel, figur: Dictionary) -> void:
|
|||
_aktions_knopf(box, "Benutzen", _benutzen.bind(_sel_id))
|
||||
|
||||
var geben := Button.new()
|
||||
geben.text = "Geben an"
|
||||
geben.text = "Tausch"
|
||||
geben.position = Vector2(450, 96)
|
||||
geben.size = Vector2(250, 52)
|
||||
geben.focus_mode = Control.FOCUS_NONE
|
||||
|
|
@ -422,7 +422,7 @@ func _geben_panel() -> void:
|
|||
_geben_ebene.add_child(p)
|
||||
|
||||
var kopf := Label.new()
|
||||
kopf.text = "GEBEN AN"
|
||||
kopf.text = "TAUSCH"
|
||||
kopf.position = Vector2(30, 24)
|
||||
kopf.add_theme_color_override("font_color", UiTheme.GOLD)
|
||||
p.add_child(kopf)
|
||||
|
|
@ -448,9 +448,18 @@ func _geben_panel() -> void:
|
|||
b.pressed.connect(_geben_an.bind(i))
|
||||
p.add_child(b)
|
||||
|
||||
var fallen := Button.new()
|
||||
fallen.text = "Fallen lassen"
|
||||
fallen.position = Vector2(30, 320)
|
||||
fallen.size = Vector2(350, 56)
|
||||
fallen.focus_mode = Control.FOCUS_NONE
|
||||
fallen.clip_text = true
|
||||
fallen.pressed.connect(_fallen_lassen)
|
||||
p.add_child(fallen)
|
||||
|
||||
var ab := Button.new()
|
||||
ab.text = "Abbrechen"
|
||||
ab.position = Vector2(230, 320)
|
||||
ab.position = Vector2(390, 320)
|
||||
ab.size = Vector2(240, 56)
|
||||
ab.focus_mode = Control.FOCUS_NONE
|
||||
ab.clip_text = true
|
||||
|
|
@ -468,6 +477,16 @@ func _geben_an(index: int) -> void:
|
|||
_bauen()
|
||||
|
||||
|
||||
func _fallen_lassen() -> void:
|
||||
if _sel_id.is_empty() or Game.party.is_empty():
|
||||
return
|
||||
_meldung = Game.fallen_lassen(Game.party[_index], _sel_id)
|
||||
if Game.inventar_hat(Game.party[_index], _sel_id) <= 0:
|
||||
_sel_id = ""
|
||||
_sel_quelle = ""
|
||||
_bauen()
|
||||
|
||||
|
||||
func _geben_schliessen() -> void:
|
||||
if _geben_ebene != null:
|
||||
_geben_ebene.queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue