-
-
Notifications
You must be signed in to change notification settings - Fork 101
CardBack
Extends: Panel
var viewed_node
This varialbe should hold the path to the node which is handling the way the card is viewed.
var is_viewed_visible: bool
-
Setter:
set_is_viewed_visible
This varialbe should hold the path to the node which is handling the way the card is viewed. This bool will be set to true when we want to signify that the card is viewed while face down.
var card_owner
Stores a reference to the Card that is hosting this node
func set_is_viewed_visible(value: bool) -> void
This function can be overriden by any class extending CardBack to implement their own way of signifying a viewed face-down card
If a card back does not include a viewed_node definition,this function will just show a warning.
func start_card_back_animation() -> void
Each class which extends this has to overwrite this function with the one specific to its needs
This is the generic function that will be called when the card back is visible to the player
func stop_card_back_animation() -> void
Each class which extends this has to overwrite this function with the one specific to its needs
This is the generic function that will be called when the card back stops being visible to the player.
func scale_to(_scale_multiplier: float) -> void
This is used to scale the card back when the card back is shown in the focus viewport.
Override it according to the requirements of your card back