cleanup: NodePath.NodePath -> NodePath.

This commit is contained in:
Sam Edwards 2013-10-06 22:00:51 -06:00
parent 882552d0b1
commit c7b3a1cbe6
5 changed files with 7 additions and 7 deletions

View file

@ -3,10 +3,10 @@ from direct.fsm import FSM
from direct.gui.DirectGui import DirectFrame, DGG
from direct.interval.IntervalGlobal import LerpScaleInterval, LerpColorScaleInterval, Parallel, Sequence, Wait
class DinerStatusIndicator(NodePath.NodePath, FSM.FSM):
class DinerStatusIndicator(NodePath, FSM.FSM):
def __init__(self, parent, pos = None, scale = None):
NodePath.NodePath.__init__(self, 'DinerStatusIndicator')
NodePath.__init__(self, 'DinerStatusIndicator')
if parent:
self.reparentTo(parent)
if pos:

View file

@ -28,7 +28,7 @@ class DirectRegion(NodePath):
pass
def hide(self):
NodePath.NodePath.hide(self)
NodePath.hide(self)
def load(self):
if not hasattr(self, 'cRender'):
@ -193,7 +193,7 @@ class SpecialsPhoto(NodePath):
self.background.reparentTo(self.specialsFrame)
def hide(self):
NodePath.NodePath.hide(self)
NodePath.hide(self)
if hasattr(self, 'specialsDisplayRegion'):
self.specialsDisplayRegion.unload()
if hasattr(self, 'background'):

View file

@ -9,7 +9,7 @@ from toontown.toonbase import ToontownGlobals
import VineGameGlobals
import VineSpider
class SwingVine(NodePath.NodePath):
class SwingVine(NodePath):
notify = DirectNotifyGlobal.directNotify.newCategory('SwingVine')
defaultNormal = Vec3(1, 0, 0)
SwingAnimPeriod = 6.0

View file

@ -5,7 +5,7 @@ from pandac.PandaModules import *
import VineGameGlobals
from direct.interval.SoundInterval import SoundInterval
class VineBat(NodePath.NodePath, DirectObject):
class VineBat(NodePath, DirectObject):
notify = DirectNotifyGlobal.directNotify.newCategory('VineBat')
notify.setDebug(True)
RADIUS = 1.7

View file

@ -4,7 +4,7 @@ from direct.directnotify import DirectNotifyGlobal
from pandac.PandaModules import *
import VineGameGlobals
class VineSpider(NodePath.NodePath, DirectObject):
class VineSpider(NodePath, DirectObject):
RADIUS = 1.7
def __init__(self):