mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
Removed some of the TTI-ish features from Loading Screen and added globals for new street.
This commit is contained in:
parent
a2a1ea6fa7
commit
976de78682
3 changed files with 40 additions and 103 deletions
|
@ -1,54 +1,54 @@
|
||||||
(dp1
|
(dp1
|
||||||
I4000
|
I4000
|
||||||
(lp2
|
(lp2
|
||||||
I44
|
I8
|
||||||
aI170
|
aI25
|
||||||
aI242
|
aI166
|
||||||
aI222
|
aI149
|
||||||
aI111
|
aI59
|
||||||
asI1000
|
asI1000
|
||||||
(lp3
|
(lp3
|
||||||
I162
|
I20
|
||||||
aI246
|
aI156
|
||||||
aI230
|
aI148
|
||||||
aI9
|
aI67
|
||||||
aI130
|
aI107
|
||||||
asI9000
|
asI9000
|
||||||
(lp4
|
(lp4
|
||||||
I238
|
I144
|
||||||
aI160
|
aI49
|
||||||
aI252
|
aI71
|
||||||
aI128
|
aI198
|
||||||
aI55
|
aI134
|
||||||
asI2000
|
asI2000
|
||||||
(lp5
|
(lp5
|
||||||
I134
|
I145
|
||||||
aI234
|
aI195
|
||||||
aI185
|
aI42
|
||||||
aI178
|
aI10
|
||||||
aI237
|
aI65
|
||||||
asI5000
|
asI5000
|
||||||
(lp6
|
(lp6
|
||||||
I227
|
I238
|
||||||
aI61
|
aI37
|
||||||
aI35
|
aI127
|
||||||
aI72
|
aI207
|
||||||
aI121
|
aI232
|
||||||
asI7000
|
asI7000
|
||||||
(lp7
|
(lp7
|
||||||
I152
|
I183
|
||||||
aI250
|
aI112
|
||||||
aI12
|
aI190
|
||||||
aI249
|
aI222
|
||||||
aI42
|
aI14
|
||||||
asI3000
|
asI3000
|
||||||
(lp8
|
(lp8
|
||||||
I34
|
I80
|
||||||
aI75
|
aI160
|
||||||
aI197
|
aI214
|
||||||
aI112
|
aI38
|
||||||
aI54
|
aI241
|
||||||
asS'day'
|
asS'day'
|
||||||
p9
|
p9
|
||||||
I16524
|
I16526
|
||||||
s.
|
s.
|
|
@ -200,6 +200,8 @@ buildingMinMax = {
|
||||||
config.GetInt('lullaby-lane-building-max', 12)],
|
config.GetInt('lullaby-lane-building-max', 12)],
|
||||||
ToontownGlobals.PajamaPlace: [config.GetInt('pajama-place-building-min', 6),
|
ToontownGlobals.PajamaPlace: [config.GetInt('pajama-place-building-min', 6),
|
||||||
config.GetInt('pajama-place-building-max', 12)],
|
config.GetInt('pajama-place-building-max', 12)],
|
||||||
|
ToontownGlobals.RockAByeRoad: [config.GetInt('rock-a-bye-road-building-min', 6),
|
||||||
|
config.GetInt('rock-a-bye-road-building-max', 12)],
|
||||||
ToontownGlobals.SellbotHQ: [0, 0],
|
ToontownGlobals.SellbotHQ: [0, 0],
|
||||||
ToontownGlobals.SellbotFactoryExt: [0, 0],
|
ToontownGlobals.SellbotFactoryExt: [0, 0],
|
||||||
ToontownGlobals.CashbotHQ: [0, 0],
|
ToontownGlobals.CashbotHQ: [0, 0],
|
||||||
|
@ -225,6 +227,7 @@ buildingChance = {
|
||||||
ToontownGlobals.PolarPlace: config.GetFloat('polar-place-building-chance', 100.0),
|
ToontownGlobals.PolarPlace: config.GetFloat('polar-place-building-chance', 100.0),
|
||||||
ToontownGlobals.LullabyLane: config.GetFloat('lullaby-lane-building-chance', 100.0),
|
ToontownGlobals.LullabyLane: config.GetFloat('lullaby-lane-building-chance', 100.0),
|
||||||
ToontownGlobals.PajamaPlace: config.GetFloat('pajama-place-building-chance', 100.0),
|
ToontownGlobals.PajamaPlace: config.GetFloat('pajama-place-building-chance', 100.0),
|
||||||
|
ToontownGlobals.RockAByeRoad: config.GetFloat('rock-a-bye-road-building-chance', 100.0),
|
||||||
ToontownGlobals.SellbotHQ: 0.0,
|
ToontownGlobals.SellbotHQ: 0.0,
|
||||||
ToontownGlobals.SellbotFactoryExt: 0.0,
|
ToontownGlobals.SellbotFactoryExt: 0.0,
|
||||||
ToontownGlobals.CashbotHQ: 0.0,
|
ToontownGlobals.CashbotHQ: 0.0,
|
||||||
|
|
|
@ -12,53 +12,6 @@ LOADING_SCREEN_SORT_INDEX = 4000
|
||||||
class ToontownLoadingScreen:
|
class ToontownLoadingScreen:
|
||||||
|
|
||||||
defaultTex = 'phase_3.5/maps/loading/default.jpg'
|
defaultTex = 'phase_3.5/maps/loading/default.jpg'
|
||||||
zone2picture = {
|
|
||||||
ToontownGlobals.GoofySpeedway : 'phase_3.5/maps/loading/gs.jpg',
|
|
||||||
ToontownGlobals.ToontownCentral : 'phase_3.5/maps/loading/ttc.jpg',
|
|
||||||
ToontownGlobals.SillyStreet : 'phase_3.5/maps/loading/ttc_ss.jpg',
|
|
||||||
ToontownGlobals.LoopyLane : 'phase_3.5/maps/loading/ttc_ll.jpg',
|
|
||||||
ToontownGlobals.PunchlinePlace : 'phase_3.5/maps/loading/ttc_pp.jpg',
|
|
||||||
ToontownGlobals.DonaldsDock : 'phase_3.5/maps/loading/dd.jpg',
|
|
||||||
ToontownGlobals.BarnacleBoulevard : 'phase_3.5/maps/loading/dd_bb.jpg',
|
|
||||||
ToontownGlobals.SeaweedStreet : 'phase_3.5/maps/loading/dd_ss.jpg',
|
|
||||||
ToontownGlobals.LighthouseLane : 'phase_3.5/maps/loading/dd_ll.jpg',
|
|
||||||
ToontownGlobals.DaisyGardens : 'phase_3.5/maps/loading/dg.jpg',
|
|
||||||
ToontownGlobals.ElmStreet : 'phase_3.5/maps/loading/dg_es.jpg',
|
|
||||||
ToontownGlobals.MapleStreet : 'phase_3.5/maps/loading/dg_ms.jpg',
|
|
||||||
ToontownGlobals.OakStreet : 'phase_3.5/maps/loading/dg_os.jpg',
|
|
||||||
ToontownGlobals.MinniesMelodyland : 'phase_3.5/maps/loading/mml.jpg',
|
|
||||||
ToontownGlobals.AltoAvenue : 'phase_3.5/maps/loading/mml_aa.jpg',
|
|
||||||
ToontownGlobals.BaritoneBoulevard : 'phase_3.5/maps/loading/mml_bb.jpg',
|
|
||||||
ToontownGlobals.TenorTerrace : 'phase_3.5/maps/loading/mml_tt.jpg',
|
|
||||||
ToontownGlobals.TheBrrrgh : 'phase_3.5/maps/loading/tb.jpg',
|
|
||||||
ToontownGlobals.WalrusWay : 'phase_3.5/maps/loading/tb_ww.jpg',
|
|
||||||
ToontownGlobals.SleetStreet : 'phase_3.5/maps/loading/tb_ss.jpg',
|
|
||||||
ToontownGlobals.PolarPlace : 'phase_3.5/maps/loading/tb_pp.jpg',
|
|
||||||
ToontownGlobals.DonaldsDreamland : 'phase_3.5/maps/loading/ddl.jpg',
|
|
||||||
ToontownGlobals.LullabyLane : 'phase_3.5/maps/loading/ddl_ll.jpg',
|
|
||||||
ToontownGlobals.PajamaPlace : 'phase_3.5/maps/loading/ddl_pp.jpg',
|
|
||||||
ToontownGlobals.OutdoorZone : 'phase_3.5/maps/loading/oz.jpg',
|
|
||||||
ToontownGlobals.GolfZone : 'phase_3.5/maps/loading/gz.jpg',
|
|
||||||
ToontownGlobals.SellbotHQ : 'phase_3.5/maps/loading/sbhq.jpg',
|
|
||||||
ToontownGlobals.CashbotHQ : 'phase_3.5/maps/loading/cbhq.jpg',
|
|
||||||
ToontownGlobals.LawbotHQ : 'phase_3.5/maps/loading/lbhq.jpg',
|
|
||||||
ToontownGlobals.BossbotHQ : 'phase_3.5/maps/loading/bbhq.jpg'
|
|
||||||
}
|
|
||||||
emotes = [
|
|
||||||
{'emote': 'bored', 'frame': 135},
|
|
||||||
{'emote': 'run', 'frame': 7},
|
|
||||||
{'emote': 'victory', 'frame': 10},
|
|
||||||
{'emote': 'applause', 'frame': 23},
|
|
||||||
{'emote': 'sprinkle-dust', 'frame': 40},
|
|
||||||
{'emote': 'hypnotize', 'frame': 25},
|
|
||||||
{'emote': 'cringe', 'frame': 25},
|
|
||||||
{'emote': 'wave', 'frame': 25},
|
|
||||||
{'emote': 'shrug', 'frame': 30},
|
|
||||||
{'emote': 'duck', 'frame': 40},
|
|
||||||
{'emote': 'up', 'frame': 60},
|
|
||||||
{'emote': 'down', 'frame': 23},
|
|
||||||
{'emote': 'bow', 'frame': 45}
|
|
||||||
]
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__expectedCount = 0
|
self.__expectedCount = 0
|
||||||
|
@ -75,13 +28,10 @@ class ToontownLoadingScreen:
|
||||||
scale = self.logo.getScale()
|
scale = self.logo.getScale()
|
||||||
# self.logo.setPos(scale[0], 0, -scale[2])
|
# self.logo.setPos(scale[0], 0, -scale[2])
|
||||||
self.logo.setPos(0, 0, -scale[2])
|
self.logo.setPos(0, 0, -scale[2])
|
||||||
self.toon = None
|
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
self.title.destroy()
|
self.title.destroy()
|
||||||
self.gui.removeNode()
|
self.gui.removeNode()
|
||||||
if self.toon:
|
|
||||||
self.toon.delete()
|
|
||||||
self.logo.removeNode()
|
self.logo.removeNode()
|
||||||
|
|
||||||
def getTip(self, tipCategory):
|
def getTip(self, tipCategory):
|
||||||
|
@ -90,25 +40,11 @@ class ToontownLoadingScreen:
|
||||||
def begin(self, range, label, gui, tipCategory, zoneId):
|
def begin(self, range, label, gui, tipCategory, zoneId):
|
||||||
self.waitBar['range'] = range
|
self.waitBar['range'] = range
|
||||||
self.title['text'] = label
|
self.title['text'] = label
|
||||||
loadingScreenTex = self.zone2picture.get(ZoneUtil.getBranchZone(zoneId), self.defaultTex)
|
loadingScreenTex = self.defaultTex
|
||||||
self.background = loader.loadTexture(loadingScreenTex)
|
self.background = loader.loadTexture(loadingScreenTex)
|
||||||
self.__count = 0
|
self.__count = 0
|
||||||
self.__expectedCount = range
|
self.__expectedCount = range
|
||||||
if gui:
|
if gui:
|
||||||
if base.localAvatarStyle:
|
|
||||||
from toontown.toon import Toon
|
|
||||||
emote = random.choice(self.emotes)
|
|
||||||
self.toon = Toon.Toon()
|
|
||||||
self.toon.setDNA(base.localAvatarStyle)
|
|
||||||
try: self.toon.pose(*emote.values())
|
|
||||||
except: self.toon.pose(emote['emote'], emote['frame'])
|
|
||||||
self.toon.getGeomNode().setDepthWrite(1)
|
|
||||||
self.toon.getGeomNode().setDepthTest(1)
|
|
||||||
self.toon.setHpr(205, 0, 0)
|
|
||||||
self.toon.setScale(0.18)
|
|
||||||
self.toon.setPos(base.a2dBottomRight.getX()/1.25, 0, -0.034)
|
|
||||||
self.toon.reparentTo(self.waitBar)
|
|
||||||
self.waitBar['frameSize'] = (base.a2dLeft+(base.a2dRight/8.15), base.a2dRight-(base.a2dRight/2.57), -0.03, 0.03)
|
|
||||||
self.title.reparentTo(base.a2dpBottomLeft, LOADING_SCREEN_SORT_INDEX)
|
self.title.reparentTo(base.a2dpBottomLeft, LOADING_SCREEN_SORT_INDEX)
|
||||||
self.title.setPos(0.24, 0, 0.23)
|
self.title.setPos(0.24, 0, 0.23)
|
||||||
self.gui.setPos(0, -0.1, 0)
|
self.gui.setPos(0, -0.1, 0)
|
||||||
|
@ -128,8 +64,6 @@ class ToontownLoadingScreen:
|
||||||
self.waitBar.reparentTo(self.gui)
|
self.waitBar.reparentTo(self.gui)
|
||||||
self.title.reparentTo(self.gui)
|
self.title.reparentTo(self.gui)
|
||||||
self.gui.reparentTo(hidden)
|
self.gui.reparentTo(hidden)
|
||||||
if self.toon:
|
|
||||||
self.toon.reparentTo(hidden)
|
|
||||||
self.logo.reparentTo(hidden)
|
self.logo.reparentTo(hidden)
|
||||||
return (self.__expectedCount, self.__count)
|
return (self.__expectedCount, self.__count)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue