Compose buildings from definitions and capabilities
This commit is contained in:
parent
1721edd123
commit
0504b24d8d
46 changed files with 1091 additions and 878 deletions
|
|
@ -72,9 +72,9 @@ func _process(delta: float) -> bool:
|
|||
# Since #21 an unresearched structure is not listed at all, rather
|
||||
# than listed and greyed. It is therefore unreachable from the
|
||||
# menu - but the popup must still refuse if something calls
|
||||
# _on_place_crafter() by another route.
|
||||
# the generic definition entry point by another route.
|
||||
var hidden: bool = not scene.get_node("UI/BuildMenu/CrafterButton").visible
|
||||
controller._on_place_crafter()
|
||||
controller._show_building_info(GameState.BUILDING_SHIP_CRAFTER)
|
||||
var offered: bool = popup.get_node("Panel/BuildButton").visible
|
||||
print("locked crafter: hidden_from_menu=%s confirm_offered=%s" % [hidden, offered])
|
||||
if not hidden or offered:
|
||||
|
|
|
|||
Loading…
Reference in a new issue