コード例 #1
0
 def setPos(self, *args, **kwargs):
     ShipFrame.setPos(self, *args, **kwargs)
     if self.statTrigger:
         self.statTrigger.reparentTo(self)
         self.statTrigger.setPos(self.statFrame.getPos())
         self.statTrigger.wrtReparentTo(self.getParent())
         self.reparentTo(self.getParent())
コード例 #2
0
ファイル: ShipFrameBottle.py プロジェクト: TTGhost/POTCOR-src
 def setPos(self, *args, **kwargs):
     ShipFrame.setPos(self, *args, **args)
     if self.statTrigger:
         self.statTrigger.reparentTo(self)
         self.statTrigger.setPos(self.statFrame.getPos())
         self.statTrigger.wrtReparentTo(self.getParent())
         self.reparentTo(self.getParent())