Skip to content

ViewportCardFocus

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

ViewportCardFocus

Extends: Node2D

Description

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

Property Descriptions

board_scene

export var board_scene: PackedScene = "[Object:null]"

info_panel_scene

export var info_panel_scene: PackedScene = "[Object:null]"

card_focus

var card_focus: Node

focus_info

var focus_info: Node

Method Descriptions

focus_card

func focus_card(card: Card, show_preview: bool = true) -> void

Displays the card closeup in the Focus viewport

unfocus

func unfocus(card: Card) -> void

Hides the focus viewport when we're done looking at it

unfocus_all

func unfocus_all() -> void

Tells the currently focused card to stop focusing.