def __init__(self, index, sprite, over = None): if over == None: over = self.over super().__init__(sprite, over) self.index = index self.button[index] = self module.enableInputFor(self) self.init()
def __init__(self, index, sprite, over=None): if over == None: over = self.over super().__init__(sprite, over) self.index = index self.button[index] = self module.enableInputFor(self) self.init()
def __init__(self, object): super().__init__(object) self.deathzone = 0.002 self.sensitivity = 0.75 self.invertx = -1 self.inverty = -1 self.speedx = 0.1 self.speedz = 0.3 self.lock_rotation = 1 module.enableInputFor(self)
def __init__(self, index, sprite, text, over = None, font = None, size = None, align = None): if over == None: over = self.over if font == None: font = self.font if size == None: size = self.size if align == None: align = self.align super().__init__(sprite, over, font, text, size, align) self.index = index self.button[index] = self self.label.color = self.color self.color = self.ProxyColor() module.enableInputFor(self) self.init()
def init(self): self._visible = True self.parser.parse("start") self.obj.text = "" self.obj.visible = True if self.name: self.name.text = "" self.name.visible = True if self.dialogBox: self.dialogBox.visible = True def setBubble(self): if self.bubble != None: self.bubble.visible = True self.twt = sequencer.Typewriter(self.obj, lambda: setBubble(self)) self.dbs = None module.enableInputFor(self)
def __init__(self, index, sprite, text, over=None, font=None, size=None, align=None): if over == None: over = self.over if font == None: font = self.font if size == None: size = self.size if align == None: align = self.align super().__init__(sprite, over, font, text, size, align) self.index = index self.button[index] = self self.label.color = self.color self.color = self.ProxyColor() module.enableInputFor(self) self.init()
def init(self): module.enableInputFor(self) self.force = 0.5
def init(self): module.enableInputFor(self) self.speed = 0.03 self.margin = 0.01 self.capmargin = self.margin - 0.001
def init(self): module.enableInputFor(self) self.speed = 1