mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
*** empty log message ***
This commit is contained in:
parent
be485738fa
commit
1e4f7df0ae
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user