Exemplo n.º 1
0
 def on_start(self):
     "Get and play the sound object"
     gamedata = get_gamedata()
     setattr(gamedata, self.value_name, self.value)
Exemplo n.º 2
0
 def on_start(self):
     "Get and play the sound object"
     gamedata = get_gamedata()
     setattr(gamedata, self.value_name, self.value)
Exemplo n.º 3
0
 def on_exit(self):
     "Stop the sound"
     gamedata = get_gamedata()
     gamedata.unregister_callback(self.value_name, self.on_value_change)
Exemplo n.º 4
0
 def on_start(self):
     "Get and play the sound object"
     gamedata = get_gamedata()
     if self.relative_to_start:
         self.test_value += getattr(gamedata, self.value_name)
     gamedata.register_callback(self.value_name, self.on_value_change)
Exemplo n.º 5
0
 def on_exit(self):
     "Stop the sound"
     gamedata = get_gamedata()
     gamedata.unregister_callback(self.value_name, self.on_value_change)
Exemplo n.º 6
0
 def on_start(self):
     "Get and play the sound object"
     gamedata = get_gamedata()
     if self.relative_to_start:
         self.test_value += getattr(gamedata, self.value_name)
     gamedata.register_callback(self.value_name, self.on_value_change)