12 lines
317 B
GDScript
12 lines
317 B
GDScript
extends Control
|
|
class_name Announce
|
|
|
|
const YELLOW_COLOR = Color("e29f32")
|
|
const RED_COLOR = Color("f20058")
|
|
|
|
func announce(title : String, text : String, band_color : Color = YELLOW_COLOR):
|
|
%AnnounceTitle.text = title
|
|
%AnnounceText.text = text
|
|
%AnnounceTexture.modulate = band_color
|
|
%AnimationPlayer.play("pass")
|