def keyPrev(self): log("",self) self.selected = self["config"].getCurrent()[1] if self.selected == config.plugins.enigmalight.adjustr: config.plugins.enigmalight.adjustr.setValue(Clamp(config.plugins.enigmalight.adjustr.getValue()-10,0,255)) elif self.selected == config.plugins.enigmalight.adjustg: config.plugins.enigmalight.adjustg.setValue(Clamp(config.plugins.enigmalight.adjustg.getValue()-10,0,255)) elif self.selected == config.plugins.enigmalight.adjustb: config.plugins.enigmalight.adjustb.setValue(Clamp(config.plugins.enigmalight.adjustb.getValue()-10,0,255)) self.createSetup() self._changed()
def keyNext(self): log("",self) self.selected = self["config"].getCurrent()[1] if self.selected == config.plugins.enigmalight.moodlamp_static_color_r: config.plugins.enigmalight.moodlamp_static_color_r.setValue(Clamp(config.plugins.enigmalight.moodlamp_static_color_r.getValue()+10,0,255)) elif self.selected == config.plugins.enigmalight.moodlamp_static_color_g: config.plugins.enigmalight.moodlamp_static_color_g.setValue(Clamp(config.plugins.enigmalight.moodlamp_static_color_g.getValue()+10,0,255)) elif self.selected == config.plugins.enigmalight.moodlamp_static_color_b: config.plugins.enigmalight.moodlamp_static_color_b.setValue(Clamp(config.plugins.enigmalight.moodlamp_static_color_b.getValue()+10,0,255)) self._changed() #Refresh list self.createList()