-
-
Notifications
You must be signed in to change notification settings - Fork 107
ViewportCardFocus
Divided by Zer0 edited this page Mar 9, 2022
·
11 revisions
Extends: Node2D
This class is meant to serve as your main scene for your card game In that case, it will enable the game to use hovering viewports For displaying card information
export var board_scene: PackedScene = "[Object:null]"
export var info_panel_scene: PackedScene = "[Object:null]"
var card_focus: Node
var focus_info: Node
func focus_card(card: Card, show_preview: bool = true) -> void
Displays the card closeup in the Focus viewport
func unfocus(card: Card) -> void
Hides the focus viewport when we're done looking at it
func unfocus_all() -> void
Tells the currently focused card to stop focusing.