mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
chat balloon anim changed
This commit is contained in:
parent
0f622cfe27
commit
eea2c7ee08
1 changed files with 3 additions and 11 deletions
|
@ -102,15 +102,8 @@ class Nametag3d(Nametag, Clickable3d):
|
||||||
self.contents.node().removeAllChildren()
|
self.contents.node().removeAllChildren()
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
if not self.chatBalloon:
|
|
||||||
self.removeContents()
|
self.removeContents()
|
||||||
Nametag.update(self)
|
Nametag.update(self)
|
||||||
else:
|
|
||||||
scaleLerp = Sequence(LerpScaleInterval(self.chatBalloon, 0.25, VBase3(0, 0, 0), blendType='easeInOut'),
|
|
||||||
Wait(0.25),
|
|
||||||
Func(self.removeContents),
|
|
||||||
Func(Nametag.update, self))
|
|
||||||
scaleLerp.start()
|
|
||||||
|
|
||||||
def tick(self, task):
|
def tick(self, task):
|
||||||
distance = self.contents.getPos(base.cam).length()
|
distance = self.contents.getPos(base.cam).length()
|
||||||
|
@ -148,9 +141,8 @@ class Nametag3d(Nametag, Clickable3d):
|
||||||
foreground=foreground, background=background,
|
foreground=foreground, background=background,
|
||||||
reversed=self.chatReversed,
|
reversed=self.chatReversed,
|
||||||
button=self.chatButton[self.clickState])
|
button=self.chatButton[self.clickState])
|
||||||
self.chatBalloon.setScale(0)
|
|
||||||
self.chatBalloon.reparentTo(self.contents)
|
self.chatBalloon.reparentTo(self.contents)
|
||||||
scaleLerp = Sequence(Wait(0.15), LerpScaleInterval(self.chatBalloon, 0.25, VBase3(1, 1, 1), blendType='easeInOut'))
|
scaleLerp = Sequence(LerpScaleInterval(self.chatBalloon, 0.2, VBase3(1, 1, 1), VBase3(0, 0, 0), blendType='easeInOut'))
|
||||||
scaleLerp.start()
|
scaleLerp.start()
|
||||||
|
|
||||||
def drawNametag(self):
|
def drawNametag(self):
|
||||||
|
|
Loading…
Reference in a new issue