public void ShowDeadMessage(ActivePlayer player) { FContainer callout = new FContainer(); callout.scale = 0.5f; MultiDualLabel fullLabel = new MultiDualLabel(); callout.AddChild(fullLabel); DualLabel colorLabel = new DualLabel(TOFonts.MEDIUM_BOLD, player.player.color.name.ToUpper()); colorLabel.mainLabel.color = player.player.color.color; colorLabel.scale = 4.0f; DualLabel messageLabel = new DualLabel(TOFonts.MEDIUM_BOLD, " WAS ELIMINATED!"); callout.AddChild(messageLabel); messageLabel.mainLabel.color = Color.white; messageLabel.scale = 4.0f; //smaller shadow colorLabel.mainLabel.y += 0.5f; messageLabel.mainLabel.y += 0.5f; fullLabel.AddLabel(colorLabel); fullLabel.AddLabel(messageLabel); fullLabel.Align(0.5f); Arena.instance.frontContainer.AddChild(callout); fullLabel.alpha = 0.0f; Go.to(fullLabel, 0.5f, new TweenConfig().alpha(1.0f)); callout.y = Config.HEIGHT / 2 - 26.0f; Go.to(callout, 3.0f, new TweenConfig().y(callout.y + 5.0f).removeWhenComplete()); Go.to(callout, 0.8f, new TweenConfig().setDelay(2.2f).alpha(0.0f)); }
public void ShowDeadMessage(ActivePlayer player) { FContainer callout = new FContainer(); callout.scale = 0.5f; MultiDualLabel fullLabel = new MultiDualLabel(); callout.AddChild(fullLabel); DualLabel colorLabel = new DualLabel(TOFonts.MEDIUM_BOLD,player.player.color.name.ToUpper()); colorLabel.mainLabel.color = player.player.color.color; colorLabel.scale = 4.0f; DualLabel messageLabel = new DualLabel(TOFonts.MEDIUM_BOLD," WAS ELIMINATED!"); callout.AddChild(messageLabel); messageLabel.mainLabel.color = Color.white; messageLabel.scale = 4.0f; //smaller shadow colorLabel.mainLabel.y += 0.5f; messageLabel.mainLabel.y += 0.5f; fullLabel.AddLabel(colorLabel); fullLabel.AddLabel(messageLabel); fullLabel.Align(0.5f); Arena.instance.frontContainer.AddChild(callout); fullLabel.alpha = 0.0f; Go.to(fullLabel, 0.5f, new TweenConfig().alpha(1.0f)); callout.y = Config.HEIGHT/2 - 26.0f; Go.to(callout, 3.0f, new TweenConfig().y(callout.y+5.0f).removeWhenComplete()); Go.to(callout,0.8f,new TweenConfig().setDelay(2.2f).alpha(0.0f)); }