def action(self, idx): if idx == 8: return action.ActionDesc( icon_normal= "assets/icons/glest/magic-actions/summoner_daemon_normal.bmp", icon_hover= "assets/icons/glest/magic-actions/summoner_daemon_hover.bmp", icon_active= "assets/icons/glest/magic-actions/summoner_daemon_active.bmp", action=Sinbad.__toggle_idle_action, hotkey=pf.SDL_SCANCODE_V) return super(Sinbad, self).action(idx)
def action(self, idx): if idx == 0: return action.ActionDesc( icon_normal= "assets/icons/glest/magic-actions/magic_move_normal.bmp", icon_hover= "assets/icons/glest/magic-actions/magic_move_hover.bmp", icon_active= "assets/icons/glest/magic-actions/magic_move_active.bmp", action=AnimMoveable.__move_action, hotkey=pf.SDL_SCANCODE_M) if idx == 1 and super(AnimMoveable, self).action(1) is None: return action.ActionDesc( icon_normal= "assets/icons/glest/magic-actions/magic_stop_normal.bmp", icon_hover= "assets/icons/glest/magic-actions/magic_stop_hover.bmp", icon_active= "assets/icons/glest/magic-actions/magic_stop_active.bmp", action=AnimMoveable.__stop_action, hotkey=pf.SDL_SCANCODE_S) return super(AnimMoveable, self).action(idx)
def action(self, idx): if idx == 2: return action.ActionDesc( icon_normal= "assets/icons/glest/magic-actions/magic_hold_normal.bmp", icon_hover= "assets/icons/glest/magic-actions/magic_hold_hover.bmp", icon_active= "assets/icons/glest/magic-actions/magic_hold_active.bmp", action=AnimCombatable.__hold_position_action, hotkey=pf.SDL_SCANCODE_H) if idx == 3: return action.ActionDesc( icon_normal= "assets/icons/glest/magic-actions/magic_armor_attack_normal.bmp", icon_hover= "assets/icons/glest/magic-actions/magic_armor_attack_hover.bmp", icon_active= "assets/icons/glest/magic-actions/magic_armor_attack_active.bmp", action=AnimCombatable.__attack_action, hotkey=pf.SDL_SCANCODE_A) return super(AnimCombatable, self).action(idx)