Skip to content

DetailPanels

Divided by Zer0 edited this page Sep 26, 2021 · 5 revisions

DetailPanels

Extends: VBoxContainer

Description

Allows to add extra info for cards under their focus popups. Typically used in the deckbuilder or in the viewport focus

After adding this node, adjust the info_panel_scene in its details and have it point to your custom info scene.

Property Descriptions

info_panel_scene

var info_panel_scene

existing_details

var existing_details: Dictionary

This dictionary holds all detail scenes added to the list Each entry is an id for the detail (typically its tag or keyword) and the values are a pointer to the node.

visible_details

var visible_details
  • Getter: get_visible_details

Returns how many details are currently visible for this card

Method Descriptions

setup

func setup() -> void

Sets up the illustration detail, as it should always exist first

hide_illustration

func hide_illustration() -> void

Hides the illustration detail

show_illustration

func show_illustration(text: String) -> void

Shows the illustration detail. This is different from the usual details, as we allow the illustration text to change every time.

hide_all_info

func hide_all_info() -> void

Hides all created info. Typically used before showing the specific ones needed for this card

add_info

func add_info(id: String, text: String, info_scene: PackedScene = null, requires_refresh: bool = false) -> void

get_visible_details

func get_visible_details() -> int

Getter for visible_details

Clone this wiki locally