def on_enter(self, *args): self.player_one_champion = self.data[0][0] self.player_one_d = self.data[0][1] self.player_one_f = self.data[0][2] self.player_two_champion = self.data[1][0] self.player_two_d = self.data[1][1] self.player_two_f = self.data[1][2] self.player_three_champion = self.data[2][0] self.player_three_d = self.data[2][1] self.player_three_f = self.data[2][2] self.player_four_champion = self.data[3][0] self.player_four_d = self.data[3][1] self.player_four_f = self.data[3][2] self.player_five_champion = self.data[4][0] self.player_five_d = self.data[4][1] self.player_five_f = self.data[4][2] self.ids.enemy_1_spell_1.background_normal = get_spell_image(self.player_one_d) self.ids.enemy_1_spell_2.background_normal = get_spell_image(self.player_one_f) self.ids.enemy_1_champion.source = get_champion_image(self.player_one_champion) self.ids.enemy_2_spell_1.background_normal = get_spell_image(self.player_two_d) self.ids.enemy_2_spell_2.background_normal = get_spell_image(self.player_two_f) self.ids.enemy_2_champion.source = get_champion_image(self.player_two_champion) self.ids.enemy_3_spell_1.background_normal = get_spell_image(self.player_three_d) self.ids.enemy_3_spell_2.background_normal = get_spell_image(self.player_three_f) self.ids.enemy_3_champion.source = get_champion_image(self.player_three_champion) self.ids.enemy_4_spell_1.background_normal = get_spell_image(self.player_four_d) self.ids.enemy_4_spell_2.background_normal = get_spell_image(self.player_four_f) self.ids.enemy_4_champion.source = get_champion_image(self.player_four_champion) self.ids.enemy_5_spell_1.background_normal = get_spell_image(self.player_five_d) self.ids.enemy_5_spell_2.background_normal = get_spell_image(self.player_five_f) self.ids.enemy_5_champion.source = get_champion_image(self.player_five_champion)
def stop_enemy5_spell2(self, *args): self.timer_enemy5_spell2.cancel() self.ids.enemy_5_spell_2.text = "" self.ids.enemy_5_spell_2.background_normal = get_spell_image(self.player_five_f)
def stop_enemy4_spell1(self, *args): self.timer_enemy4_spell1.cancel() self.ids.enemy_4_spell_1.text = "" self.ids.enemy_4_spell_1.background_normal = get_spell_image(self.player_four_d)