# Path: utility.py
# def boolean_format(value):
#         if value=='Yes':
#             return True
#         else:
#             return False


import procgame
import locale
import random
import logging
import audits
from procgame import *
from utility import boolean_format
music_path = game_path +"music/"


class Pops(game.Mode):

	def __init__(self, game, priority):
            super(Pops, self).__init__(game, priority)

            self.log = logging.getLogger('whirlwind.pops')

            self.hits_layer = dmd.TextLayer(100, 0, self.game.fonts['num_14x10'], "center", opaque=False)

            self.game.sound.register_sound('pop1', sound_path+"pop_1.ogg")
            self.game.sound.register_sound('pop2', sound_path+"pop_2.ogg")
            self.game.sound.register_sound('pop3', sound_path+"pop_3.ogg")
            self.game.sound.register_sound('pop4', sound_path+"pop_4.ogg")
            self.game.sound.register_sound('pop5', sound_path+"pop_5.ogg")
            self.game.sound.register_sound('super1', sound_path+"super_pop_1.ogg")
            self.game.sound.register_sound('super2', sound_path+"super_pop_2.ogg")
            self.game.sound.register_sound('super3', sound_path+"super_pop_3.ogg")
            self.game.sound.register_sound('super4', sound_path+"super_pop_4.ogg")
            self.game.sound.register_sound('super5', sound_path+"super_pop_5.ogg")
            
            self.game.sound.register_sound('pop_lit', sound_path+"pop_lit.ogg")
            self.game.sound.register_sound('pop_max', sound_path+"pop_max.ogg")



            self.lamps = ['lowerLeftJet','lowerRightJet','lowerTopJet','upperBottomJet','upperLeftJet','upperRightJet']
            self.super_pops_default = int(self.game.user_settings['Feature']['Super Jets Start'])

# Path: utility.py
# def boolean_format(value):
#         if value=='Yes':
#             return True
#         else:
#             return False


# Path: pops.py
import procgame
import locale
import random
import logging
import audits
from procgame import *
from utility import boolean_format

music_path = game_path +"music/"


class Pops(game.Mode):

	def __init__(self, game, priority):
            super(Pops, self).__init__(game, priority)

            self.log = logging.getLogger('whirlwind.pops')

            self.hits_layer = dmd.TextLayer(100, 0, self.game.fonts['num_14x10'], "center", opaque=False)

            self.game.sound.register_sound('pop1', sound_path+"pop_1.ogg")
            self.game.sound.register_sound('pop2', sound_path+"pop_2.ogg")
            self.game.sound.register_sound('pop3', sound_path+"pop_3.ogg")
            self.game.sound.register_sound('pop4', sound_path+"pop_4.ogg")
            self.game.sound.register_sound('pop5', sound_path+"pop_5.ogg")
            self.game.sound.register_sound('super1', sound_path+"super_pop_1.ogg")
            self.game.sound.register_sound('super2', sound_path+"super_pop_2.ogg")
            self.game.sound.register_sound('super3', sound_path+"super_pop_3.ogg")
            self.game.sound.register_sound('super4', sound_path+"super_pop_4.ogg")
            self.game.sound.register_sound('super5', sound_path+"super_pop_5.ogg")
            
            self.game.sound.register_sound('pop_lit', sound_path+"pop_lit.ogg")
            self.game.sound.register_sound('pop_max', sound_path+"pop_max.ogg")



            self.lamps = ['lowerLeftJet','lowerRightJet','lowerTopJet','upperBottomJet','upperLeftJet','upperRightJet']
            self.super_pops_default = int(self.game.user_settings['Feature']['Super Jets Start'])

            self.super_pops_enabled = boolean_format(self.game.user_settings['Feature']['Super Jets Enabled'])