*** empty log message ***

This commit is contained in:
Mark Mine 2000-11-17 00:55:29 +00:00
parent ed23d6761b
commit 6d36e79bfd

View File

@ -53,6 +53,7 @@ class LevelEditor(NodePath, PandaObject):
self.dnaStore = DNAStorage() self.dnaStore = DNAStorage()
loadDNAFile(self.dnaStore, 'dna/storage.dna', loadDNAFile(self.dnaStore, 'dna/storage.dna',
getDefaultCoordinateSystem()) getDefaultCoordinateSystem())
self.dnaOutputDir = 'ToontownCentral'
self.dnaOutputFile = 'toontown_working.dna' self.dnaOutputFile = 'toontown_working.dna'
# Top level DNA Data Object # Top level DNA Data Object
@ -402,6 +403,7 @@ class LevelEditor(NodePath, PandaObject):
self.pieMenuDictionary['toontownCentralStyleMenu']) self.pieMenuDictionary['toontownCentralStyleMenu'])
self.attributeDictionary['streetTexture'] = 'street_street_tex' self.attributeDictionary['streetTexture'] = 'street_street_tex'
self.attributeDictionary['sidewalkTexture'] = 'street_sidewalk_tex' self.attributeDictionary['sidewalkTexture'] = 'street_sidewalk_tex'
self.dnaOutputDir = 'ToontownCentral'
self.dnaOutputFile = 'toontown_central_working.dna' self.dnaOutputFile = 'toontown_central_working.dna'
self.panel.editMenu.selectitem('Toontown Central') self.panel.editMenu.selectitem('Toontown Central')
@ -416,6 +418,7 @@ class LevelEditor(NodePath, PandaObject):
self.attributeDictionary['streetTexture'] = 'street_street_dock_tex' self.attributeDictionary['streetTexture'] = 'street_street_dock_tex'
self.attributeDictionary['sidewalkTexture'] = ( self.attributeDictionary['sidewalkTexture'] = (
'street_sidewalk_dock_tex') 'street_sidewalk_dock_tex')
self.dnaOutputDir = 'DonaldsDock'
self.dnaOutputFile = 'donalds_dock_working.dna' self.dnaOutputFile = 'donalds_dock_working.dna'
self.panel.editMenu.selectitem('Donalds Dock') self.panel.editMenu.selectitem('Donalds Dock')
@ -430,6 +433,7 @@ class LevelEditor(NodePath, PandaObject):
self.attributeDictionary['streetTexture'] = 'street_street_dock_tex' self.attributeDictionary['streetTexture'] = 'street_street_dock_tex'
self.attributeDictionary['sidewalkTexture'] = ( self.attributeDictionary['sidewalkTexture'] = (
'street_sidewalk_dock_tex') 'street_sidewalk_dock_tex')
self.dnaOutputDir = 'MinniesMelodyLand'
self.dnaOutputFile = 'minnies_melody_land_working.dna' self.dnaOutputFile = 'minnies_melody_land_working.dna'
self.panel.editMenu.selectitem('Minnies Melody Land') self.panel.editMenu.selectitem('Minnies Melody Land')
@ -444,6 +448,7 @@ class LevelEditor(NodePath, PandaObject):
self.attributeDictionary['streetTexture'] = 'street_street_dock_tex' self.attributeDictionary['streetTexture'] = 'street_street_dock_tex'
self.attributeDictionary['sidewalkTexture'] = ( self.attributeDictionary['sidewalkTexture'] = (
'street_sidewalk_dock_tex') 'street_sidewalk_dock_tex')
self.dnaOutputDir = 'TheBurrrgh'
self.dnaOutputFile = 'the_burrrgh_working.dna' self.dnaOutputFile = 'the_burrrgh_working.dna'
self.panel.editMenu.selectitem('The Burrrgh') self.panel.editMenu.selectitem('The Burrrgh')
@ -2188,9 +2193,11 @@ class LevelEditor(NodePath, PandaObject):
self.initDNAGroupWithParentType(newDNAGroup, self.groupParent, type) self.initDNAGroupWithParentType(newDNAGroup, self.groupParent, type)
def loadSpecifiedDNAFile(self): def loadSpecifiedDNAFile(self):
f = Filename('dna') f = Filename('/alpha/DIRECT/LevelEditor/DNAFiles')
f.resolveFilename(getModelPath()) path = os.path.join(f.toOsSpecific(), self.dnaOutputDir)
path = f.toOsSpecific() #f = Filename('dna')
#f.resolveFilename(getModelPath())
#path = f.toOsSpecific()
if not os.path.isdir(path): if not os.path.isdir(path):
print 'LevelEditor Warning: Invalid default DNA directory!' print 'LevelEditor Warning: Invalid default DNA directory!'
print 'Using: C:\\' print 'Using: C:\\'
@ -2205,7 +2212,8 @@ class LevelEditor(NodePath, PandaObject):
self.loadDNAFromFile(dnaFilename) self.loadDNAFromFile(dnaFilename)
def saveToSpecifiedDNAFile(self): def saveToSpecifiedDNAFile(self):
path = os.path.join(os.path.expandvars('$DIRECT'), 'etc') f = Filename('/alpha/DIRECT/LevelEditor/DNAFiles')
path = os.path.join(f.toOsSpecific(), self.dnaOutputDir)
if not os.path.isdir(path): if not os.path.isdir(path):
print 'LevelEditor Warning: Invalid DNA save directory!' print 'LevelEditor Warning: Invalid DNA save directory!'
print 'Using: C:\\' print 'Using: C:\\'
@ -2275,7 +2283,8 @@ class LevelEditor(NodePath, PandaObject):
self.createNewLevelGroup() self.createNewLevelGroup()
def outputDNADefaultFile(self): def outputDNADefaultFile(self):
file = os.path.join(os.path.expandvars('$DIRECT'),'etc', f = Filename('/alpha/DIRECT/LevelEditor/DNAFiles')
file = os.path.join(f.toOsSpecific(), self.dnaOutputDir,
self.dnaOutputFile) self.dnaOutputFile)
self.outputDNA(file) self.outputDNA(file)