mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Cleanup Voltage's last commit.
This commit is contained in:
parent
47bfb6210c
commit
a226523ef2
2 changed files with 11 additions and 63 deletions
|
@ -1,52 +0,0 @@
|
|||
diff a/toontown/makeatoon/TrackShop.py b/toontown/makeatoon/TrackShop.py (rejected hunks)
|
||||
@@ -1,38 +1,35 @@
|
||||
from pandac.PandaModules import *
|
||||
+from panda3d.core import NodePath, ModelNode
|
||||
from direct.fsm import StateData
|
||||
from direct.gui.DirectGui import *
|
||||
from toontown.toonbase import TTLocalizer, ToontownGlobals
|
||||
from direct.directnotify import DirectNotifyGlobal
|
||||
-from toontown.toonbase.ToontownBattleGlobals import AvPropsNew
|
||||
+from toontown.toonbase import ToontownBattleGlobals
|
||||
|
||||
class TrackShop(StateData.StateData):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('TrackShop')
|
||||
|
||||
def __init__(self, doneEvent):
|
||||
StateData.StateData.__init__(self, doneEvent)
|
||||
- self.quest = None
|
||||
- self.label = None
|
||||
- self.leftButton = None
|
||||
- self.rightButton = None
|
||||
- self.track = None
|
||||
- self.icon = None
|
||||
self.loaded = False
|
||||
self.index = 0
|
||||
+ self.buttonPath = None
|
||||
+ self.curTrackLabel = None
|
||||
return
|
||||
|
||||
+ def showButtons(self):
|
||||
+ self.buttonPath.show()
|
||||
+ self.curTrackLabel.show()
|
||||
+
|
||||
+ def hideButtons(self):
|
||||
+ self.buttonPath.hide()
|
||||
+ self.curTrackLabel.hide()
|
||||
+
|
||||
def enter(self):
|
||||
base.disableMouse()
|
||||
self.acceptOnce('last', self.__handleBackward)
|
||||
self.acceptOnce('next', self.__handleForward)
|
||||
|
||||
- def showButtons(self):
|
||||
- for element in [self.quest, self.label, self.leftButton, self.rightButton, self.track, self.icon]:
|
||||
- element.show()
|
||||
-
|
||||
- def hideButtons(self):
|
||||
- for element in [self.quest, self.label, self.leftButton, self.rightButton, self.track, self.icon]:
|
||||
- element.hide()
|
||||
-
|
||||
def exit(self):
|
||||
self.ignore('last')
|
||||
self.ignore('next')
|
Loading…
Reference in a new issue