mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-30 16:27:54 +00:00
Title text shown in boss battles (such as: Sellbot Towers - Rooftop)
This commit is contained in:
parent
3b93cd6596
commit
fc1a9d8368
2 changed files with 16 additions and 2 deletions
|
@ -2,6 +2,7 @@ from panda3d.core import *
|
|||
from direct.interval.IntervalGlobal import *
|
||||
from direct.distributed.ClockDelta import *
|
||||
from direct.directnotify import DirectNotifyGlobal
|
||||
from direct.gui import OnscreenText
|
||||
from otp.avatar import DistributedAvatar
|
||||
from toontown.toonbase import ToontownGlobals
|
||||
from toontown.toonbase import ToontownBattleGlobals
|
||||
|
@ -1000,7 +1001,7 @@ class DistributedBossCog(DistributedAvatar.DistributedAvatar, BossCog.BossCog):
|
|||
NametagGlobals.setMasterArrowsOn(0)
|
||||
intervalName = 'IntroductionMovie'
|
||||
delayDeletes = []
|
||||
seq = Sequence(self.makeIntroductionMovie(delayDeletes), Func(self.__beginBattleOne), name=intervalName)
|
||||
seq = Parallel(self.showTitleText(), Sequence(self.makeIntroductionMovie(delayDeletes), Func(self.__beginBattleOne)), name=intervalName)
|
||||
seq.delayDeletes = delayDeletes
|
||||
seq.start()
|
||||
self.storeInterval(seq, intervalName)
|
||||
|
@ -1143,3 +1144,10 @@ class DistributedBossCog(DistributedAvatar.DistributedAvatar, BossCog.BossCog):
|
|||
|
||||
seq.append(suitsOff)
|
||||
return seq
|
||||
|
||||
def showTitleText(self):
|
||||
if self.style.dept not in TTLocalizer.BossLocations
|
||||
return Sequence()
|
||||
|
||||
titleText = OnscreenText.OnscreenText(TTLocalizer.BossLocations[self.style.dept], fg=(1, 1, 1, 1), shadow=(0, 0, 0, 1), font=ToontownGlobals.getSuitFont(), pos=(0, -0.5), scale=0.16, wordwrap=16)
|
||||
return Sequence(Wait(5.0), titleText.colorScaleInterval(0.5, (1, 1, 1, 0)), Func(titleText.removeNode))
|
|
@ -8519,4 +8519,10 @@ SpeedchatPlusLabelOn = 'Speedchat Plus is on.'
|
|||
SpeedchatPlusLabelOff = 'Speedchat Plus is off.'
|
||||
TrueFriendsLabelOn = 'True Friends is on.'
|
||||
TrueFriendsLabelOff = 'True Friends is off.'
|
||||
FieldOfViewLabel = 'Field of View:'
|
||||
FieldOfViewLabel = 'Field of View:'
|
||||
BossLocations = {
|
||||
'c': 'Bossbot Clubhouse\nBanquet',
|
||||
'l': "Lawbot Courthouse\nBumpy Bumblebehr's Trial",
|
||||
'm': 'Cashbot Vault',
|
||||
's': 'Sellbot Towers\nRooftop'
|
||||
}
|
Loading…
Reference in a new issue