mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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
|
# create the scroll buttons
|
||||||
self.leftButton = Button.Button(self.name + "-left", " < ")
|
self.leftButton = Button.Button(self.name + "-left", " < ")
|
||||||
self.leftButton.getGuiItem().setDownRolloverEvent(self.name + "-left")
|
self.leftButton.getGuiItem().setDownRolloverEvent(self.name + "-left")
|
||||||
|
self.leftButton.getGuiItem().setUpRolloverEvent(self.name + "-rollover")
|
||||||
self.frame.addItem(self.leftButton)
|
self.frame.addItem(self.leftButton)
|
||||||
self.frame.packItem(self.leftButton, GuiFrame.GuiFrame.UNDER,
|
self.frame.packItem(self.leftButton, GuiFrame.GuiFrame.UNDER,
|
||||||
self.title)
|
self.title)
|
||||||
@ -62,6 +63,7 @@ class ScrollingLabel(PandaObject.PandaObject):
|
|||||||
self.rightButton = Button.Button(self.name + "-right", " > ")
|
self.rightButton = Button.Button(self.name + "-right", " > ")
|
||||||
self.rightButton.getGuiItem().setDownRolloverEvent(self.name +
|
self.rightButton.getGuiItem().setDownRolloverEvent(self.name +
|
||||||
"-right")
|
"-right")
|
||||||
|
self.rightButton.getGuiItem().setUpRolloverEvent(self.name + "-rollover")
|
||||||
self.frame.addItem(self.rightButton)
|
self.frame.addItem(self.rightButton)
|
||||||
self.frame.packItem(self.rightButton, GuiFrame.GuiFrame.UNDER,
|
self.frame.packItem(self.rightButton, GuiFrame.GuiFrame.UNDER,
|
||||||
self.title)
|
self.title)
|
||||||
|
@ -59,6 +59,11 @@ class Loader:
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def unloadModel(self, modelPath):
|
||||||
|
"""unloadModel(self, string)
|
||||||
|
Loader.notify.info("Unloading model: %s" % (modelPath))
|
||||||
|
ModelPool.releaseModel(modelPath)
|
||||||
|
|
||||||
# texture loading funcs
|
# texture loading funcs
|
||||||
def loadTexture(self, texturePath):
|
def loadTexture(self, texturePath):
|
||||||
"""loadTexture(self, string)
|
"""loadTexture(self, string)
|
||||||
@ -68,6 +73,10 @@ class Loader:
|
|||||||
texture = TexturePool.loadTexture(texturePath)
|
texture = TexturePool.loadTexture(texturePath)
|
||||||
return texture
|
return texture
|
||||||
|
|
||||||
|
def unloadTexture(self, texture):
|
||||||
|
"""unloadTexture(self, texture)
|
||||||
|
TexturePool.releaseTexture(texture)
|
||||||
|
|
||||||
# sound loading funcs
|
# sound loading funcs
|
||||||
def loadSound(self, soundPath):
|
def loadSound(self, soundPath):
|
||||||
"""loadSound(self, string)
|
"""loadSound(self, string)
|
||||||
@ -77,6 +86,10 @@ class Loader:
|
|||||||
sound = AudioPool.loadSound(soundPath)
|
sound = AudioPool.loadSound(soundPath)
|
||||||
return sound
|
return sound
|
||||||
|
|
||||||
|
def unloadSound(self, sound):
|
||||||
|
"""unloadSound(self, sound)
|
||||||
|
AudioPool.releaseSound(sound)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user