You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
280 B
GDScript

extends Control
onready var view = $View
onready var portrait = $Portrait
func change_view(packet):
view.texture = load("res://Res/Img/Scene/" + packet["loc"] + ".png")
func change_portrait(packet):
portrait.texture = load("res://Res/Img/Portrait/" + packet["npc"] + ".png")