def checkActionWheel(self): if not self.actionWheel: for enemy in self.enemies: if enemy.actionsVisible: self.actionWheel = Interface.ActionWheel( self.screen, self.hero, enemy, weapon=self.checkCurrentWeapon(self.equipment), consumable=self.checkCurrentConsumable(self.equipment), takeable=False) self.objectWithInterface = enemy self.changeClickable( self.equipment, self.enemies, objectWithWheel=self.objectWithInterface, newState=False) for item in self.equipment: if item.actionsVisible: self.actionWheel = Interface.ActionWheel( self.screen, self.hero, item) self.objectWithInterface = item self.changeClickable( self.equipment, self.enemies, objectWithWheel=self.objectWithInterface, newState=False) else: if self.objectWithInterface.wheelEvents( self.actionWheel.wheelEvents()) == 1: del self.actionWheel self.actionWheel = 0 self.changeClickable(self.equipment, self.enemies)