-
-
Notifications
You must be signed in to change notification settings - Fork 105
SelectionWindow
Divided by Zer0 edited this page Mar 9, 2022
·
2 revisions
Extends: AcceptDialog
export var grid_card_object_scene: PackedScene = "[PackedScene:19400]"
export var info_panel_scene: PackedScene = "[PackedScene:19410]"
var selected_cards: Array
var selection_count: int
var selection_type: String
var is_selection_optional: bool
var is_cancelled: bool
func initiate_selection(card_array: Array, _selection_count: int = 0, _selection_type: String = "min", _selection_optional: bool = false) -> var
Populates the selection window with duplicates of the possible cards Then displays them in a popup for the player to select them.
func on_selection_gui_input(event: InputEvent, dupe_selection: Card, origin_card) -> void
The player can select the cards using a simple left-click.