コード例 #1
0
ファイル: CogMenu.py プロジェクト: CalebSmith376/src
    def __init__(self):
        NodePath.__init__(self, 'CogMenu')

        self.sellbotBar = CogMenuBar(self, 's')
        self.cashbotBar = CogMenuBar(self, 'm')
        self.lawbotBar = CogMenuBar(self, 'l')
        self.bossbotBar = CogMenuBar(self, 'c')

        self.sellbotBar.setX(-0.502)
        self.lawbotBar.setX(0.502)
        self.bossbotBar.setX(1)
コード例 #2
0
    def __init__(self):
        NodePath.__init__(self, 'CogMenu')

        self.sellbotBar = CogMenuBar(self, 's')
        self.cashbotBar = CogMenuBar(self, 'm')
        self.lawbotBar = CogMenuBar(self, 'l')
        self.bossbotBar = CogMenuBar(self, 'c')
        self.secbotBar = CogMenuBar(self, 'y')

        self.sellbotBar.setX(-0.502)
        self.lawbotBar.setX(0.502)
        self.bossbotBar.setX(1)
        self.secbotBar.setX(1.502)
コード例 #3
0
class CogMenu(NodePath):
    def __init__(self):
        NodePath.__init__(self, 'CogMenu')

        self.sellbotBar = CogMenuBar(self, 's')
        self.cashbotBar = CogMenuBar(self, 'm')
        self.lawbotBar = CogMenuBar(self, 'l')
        self.bossbotBar = CogMenuBar(self, 'c')
        self.secbotBar = CogMenuBar(self, 'y')

        self.sellbotBar.setX(-0.502)
        self.lawbotBar.setX(0.502)
        self.bossbotBar.setX(1)
        self.secbotBar.setX(1.502)

    def update(self):
        self.sellbotBar.update()
        self.cashbotBar.update()
        self.lawbotBar.update()
        self.bossbotBar.update()
        self.secbotBar.update()

    def cleanup(self):
        self.sellbotBar.cleanup()
        self.cashbotBar.cleanup()
        self.lawbotBar.cleanup()
        self.bossbotBar.cleanup()
        self.secbotBar.cleanup()
        self.removeNode()
コード例 #4
0
ファイル: CogMenu.py プロジェクト: CalebSmith376/src
class CogMenu(NodePath):
    def __init__(self):
        NodePath.__init__(self, 'CogMenu')

        self.sellbotBar = CogMenuBar(self, 's')
        self.cashbotBar = CogMenuBar(self, 'm')
        self.lawbotBar = CogMenuBar(self, 'l')
        self.bossbotBar = CogMenuBar(self, 'c')

        self.sellbotBar.setX(-0.502)
        self.lawbotBar.setX(0.502)
        self.bossbotBar.setX(1)

    def update(self):
        self.sellbotBar.update()
        self.cashbotBar.update()
        self.lawbotBar.update()
        self.bossbotBar.update()

    def cleanup(self):
        self.sellbotBar.cleanup()
        self.cashbotBar.cleanup()
        self.lawbotBar.cleanup()
        self.bossbotBar.cleanup()
        self.removeNode()