Refactor gameplay menus into owned scenes
This commit is contained in:
parent
46196a1adb
commit
a17fe88197
50 changed files with 3449 additions and 3619 deletions
|
|
@ -46,9 +46,10 @@ func _initialize() -> void:
|
|||
|
||||
func _shown() -> Array:
|
||||
var out: Array = []
|
||||
for entry in controller.build_menu_entries:
|
||||
if entry[1].visible:
|
||||
out.append(entry)
|
||||
for entry in controller.build_menu.entries:
|
||||
if entry.button.visible:
|
||||
out.append([entry.definition.definition_id, entry.button,
|
||||
entry.label, entry.cost, entry.definition])
|
||||
return out
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue