-
-
Notifications
You must be signed in to change notification settings - Fork 107
BoardPlacementSlot
Divided by Zer0 edited this page Jul 11, 2021
·
3 revisions
Extends: Control
Represents a spot on the placement grid that is used to organize cards on the board.
var occupying_card
If a card is placed on this spot, this variable will hold a reference to the Card object and no other card can be placed in this slot
var owner_grid
Stores a reference to the owning BoardPlacementGrid object
func is_highlighted() -> bool
Returns true if this slot is highlighted, else false
func set_highlight(requested: bool, hoverColour) -> void
Changes card highlight colour.
func get_grid_name() -> String
Returns the name of the grid which is hosting this slot. This is typically used with CFConst.BoardDropPlacement.SPECIFIC_GRID