mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Add back chat balloon animation.
This commit is contained in:
parent
5c2b7f4554
commit
67d8bb1a1d
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue