Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rewgger |
var dialogBox = Image.new();
func _on_Credits_pressed():
self.dialogBox = load("res://Main Menu/[Dialog Box].png");
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rewgger |
var dialogBox = Image.new();
func _on_Credits_pressed():
self.dialogBox = load("res://Main Menu/[Dialog Box].png");
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