This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/GUI/CharacterOption.gd

12 lines
220 B
GDScript

extends Control
func set_character(packed_character):
var character = packed_character.instance()
character.show_healthbar = false
$Viewport.add_child(character)
func _process(delta):
$Viewport.size = rect_size