*** empty log message ***

This commit is contained in:
Mike Goslin 2000-11-30 02:42:38 +00:00
parent be485738fa
commit 1e4f7df0ae
2 changed files with 217 additions and 202 deletions

View File

@ -54,6 +54,7 @@ class ScrollingLabel(PandaObject.PandaObject):
# create the scroll buttons
self.leftButton = Button.Button(self.name + "-left", " < ")
self.leftButton.getGuiItem().setDownRolloverEvent(self.name + "-left")
self.leftButton.getGuiItem().setUpRolloverEvent(self.name + "-rollover")
self.frame.addItem(self.leftButton)
self.frame.packItem(self.leftButton, GuiFrame.GuiFrame.UNDER,
self.title)
@ -62,6 +63,7 @@ class ScrollingLabel(PandaObject.PandaObject):
self.rightButton = Button.Button(self.name + "-right", " > ")
self.rightButton.getGuiItem().setDownRolloverEvent(self.name +
"-right")
self.rightButton.getGuiItem().setUpRolloverEvent(self.name + "-rollover")
self.frame.addItem(self.rightButton)
self.frame.packItem(self.rightButton, GuiFrame.GuiFrame.UNDER,
self.title)

View File

@ -59,6 +59,11 @@ class Loader:
else:
return None
def unloadModel(self, modelPath):
"""unloadModel(self, string)
Loader.notify.info("Unloading model: %s" % (modelPath))
ModelPool.releaseModel(modelPath)
# texture loading funcs
def loadTexture(self, texturePath):
"""loadTexture(self, string)
@ -68,6 +73,10 @@ class Loader:
texture = TexturePool.loadTexture(texturePath)
return texture
def unloadTexture(self, texture):
"""unloadTexture(self, texture)
TexturePool.releaseTexture(texture)
# sound loading funcs
def loadSound(self, soundPath):
"""loadSound(self, string)
@ -77,6 +86,10 @@ class Loader:
sound = AudioPool.loadSound(soundPath)
return sound
def unloadSound(self, sound):
"""unloadSound(self, sound)
AudioPool.releaseSound(sound)