Skip to content

AssetPreviewHeader ​

Inherits: PanelContainer

The top of the info panel of an Assets editor: the picture of the selected file, its name, a line about it (its kind) and its path. The buttons of the editor go under it. The same look as the header of the Foliage tab, so the Assets editors read the same way.

Variables ​

TextureRectpicture
Labeltitle_label
Labelsubtitle_label
Labelpath_label

Methods ​

voidshow_file( texture: Texture2D, title: String, subtitle: String, path: String )
voidadd_to( panel: Control )

Constants ​

  • float PICTURE_SIZE = 128.0

Variable descriptions ​

TextureRect picture ​

No description yet.

Label title_label ​

No description yet.

Label subtitle_label ​

No description yet.

Label path_label ​

No description yet.

Method descriptions ​

void show_file( texture: Texture2D, title: String, subtitle: String, path: String ) ​

Shows a file: its picture (null: an empty box), its name, a line about it and its path.

void add_to( panel: Control ) ​

Puts the header at the top of an info panel.