reorganization

This commit is contained in:
adrienmalin
2019-01-06 15:48:00 +01:00
parent ea0b840f35
commit f1683613f6
62 changed files with 79 additions and 172 deletions

16
source/FlashText.gd Normal file
View File

@ -0,0 +1,16 @@
extends Control
var texts = PoolStringArray()
func print(text):
texts.append(text)
if texts.size() > 4:
texts.remove(0)
$Label.text = texts.join("\n")
$AnimationPlayer.play("Flash")
func _on_AnimationPlayer_animation_finished(anim_name):
texts.resize(0)
func _on_Stats_flash_text(text):
self.print(text)