From 67d8bb1a1decdc29f40d6b3eff050c2efe6cd923 Mon Sep 17 00:00:00 2001 From: John Cote Date: Fri, 26 Jun 2015 19:15:02 -0400 Subject: [PATCH] Add back chat balloon animation. --- otp/nametag/Nametag.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/otp/nametag/Nametag.py b/otp/nametag/Nametag.py index ac1bf1e6..1f037e2d 100644 --- a/otp/nametag/Nametag.py +++ b/otp/nametag/Nametag.py @@ -3,6 +3,7 @@ import NametagGlobals from otp.margins.ClickablePopup import ClickablePopup from otp.otpbase import OTPGlobals from pandac.PandaModules import * +from direct.interval.IntervalGlobal import * class Nametag(ClickablePopup): CName = 1 @@ -108,7 +109,10 @@ class Nametag(ClickablePopup): self.DEFAULT_CHAT_WORDWRAP, button=self.getButton(), reversed=reversed) + balloon.setScale(0) balloon.reparentTo(self.innerNP) + scaleLerp = Sequence(Wait(0.10), LerpScaleInterval(balloon, 0.2, VBase3(1, 1, 1), VBase3(0, 0, 0), blendType='easeInOut')) + scaleLerp.start() self.frame = frame def showThought(self):