mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
lel
This commit is contained in:
parent
9033861dfb
commit
990dcd0d5f
1 changed files with 12 additions and 5 deletions
|
@ -1,21 +1,23 @@
|
|||
from pandac.PandaModules import *
|
||||
|
||||
def makeCard(book=False):
|
||||
cardMaker = CardMaker('laughing-man-cm')
|
||||
cardMaker = CardMaker('king-jake-cm')
|
||||
cardMaker.setHasUvs(1)
|
||||
cardMaker.setFrame(-0.5, 0.5, -0.5, 0.5)
|
||||
|
||||
nodePath = NodePath('laughing-man')
|
||||
nodePath = NodePath('king-jake')
|
||||
nodePath.setBillboardPointEye()
|
||||
|
||||
lmBase = nodePath.attachNewNode(cardMaker.generate())
|
||||
lmBase.setTexture(loader.loadTexture('phase_3/maps/lm_base.rgba'))
|
||||
lmBase.setTexture(loader.loadTexture('phase_3/maps/kj_base.png'))
|
||||
lmBase.setY(-0.3)
|
||||
lmBase.setScale(0.845)
|
||||
lmBase.setTransparency(True)
|
||||
|
||||
lmText = nodePath.attachNewNode(cardMaker.generate())
|
||||
lmText.setTexture(loader.loadTexture('phase_3/maps/lm_text.rgba'))
|
||||
lmText.setTexture(loader.loadTexture('phase_3/maps/kj_text.png'))
|
||||
lmText.setY(-0.301)
|
||||
lmText.setScale(0.845)
|
||||
lmText.setTransparency(True)
|
||||
lmText.hprInterval(10, (0, 0, -360)).loop()
|
||||
|
||||
|
@ -38,4 +40,9 @@ def addHeadEffect(head, book=False):
|
|||
|
||||
def addToonEffect(toon):
|
||||
for lod in toon.getLODNames():
|
||||
addHeadEffect(toon.getPart('head', lod))
|
||||
addHeadEffect(toon.getPart('head', lod))
|
||||
|
||||
"""
|
||||
from toontown.toon import LaughingManGlobals
|
||||
LaughingManGlobals.addToonEffect(base.localAvatar)
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue