forked from ayte/PinmikPanik
17 lines
513 B
Python
17 lines
513 B
Python
|
from gamedata.objects.sliders.slider import Slider
|
||
|
|
||
|
class BGMSlider(Slider):
|
||
|
def __init__(self,x,y,game,w=100,h=64,folder="base"):
|
||
|
super().__init__(x,y,game,w,h,folder) # initialise l'objet de base avec les bons arguments
|
||
|
|
||
|
self.currentvalue = self.getvalue()
|
||
|
|
||
|
self.posttext = " % Musique"
|
||
|
|
||
|
def change(self):
|
||
|
self.game.globals["bgmvolume"] = self.currentvalue/100
|
||
|
self.game.reinit_volumes()
|
||
|
|
||
|
def getvalue(self):
|
||
|
return self.game.globals["bgmvolume"]*100
|