How to show image after loading it?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rewgger
var dialogBox = Image.new();

func _on_Credits_pressed():
     self.dialogBox = load("res://Main Menu/[Dialog Box].png");
:bust_in_silhouette: Reply From: Inces

image is a resource used by Sprite, TextureRect, Button classes and many more. Create Sprite.new and assign dialogBox to its “texture” property