Skip to content

SelectionWindow

Divided by Zer0 edited this page Mar 9, 2022 · 2 revisions

SelectionWindow

Extends: AcceptDialog

Description

Property Descriptions

grid_card_object_scene

export var grid_card_object_scene: PackedScene = "[PackedScene:19400]"

info_panel_scene

export var info_panel_scene: PackedScene = "[PackedScene:19410]"

selected_cards

var selected_cards: Array

selection_count

var selection_count: int

selection_type

var selection_type: String

is_selection_optional

var is_selection_optional: bool

is_cancelled

var is_cancelled: bool

Method Descriptions

initiate_selection

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.

on_selection_gui_input

func on_selection_gui_input(event: InputEvent, dupe_selection: Card, origin_card) -> void

The player can select the cards using a simple left-click.