Browse Source

Use % on drywet and volume plugin slot knobs

tags/1.9.4
falkTX 10 years ago
parent
commit
2d80dfe684
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      source/carla_skin.py

+ 9
- 3
source/carla_skin.py View File

@@ -563,14 +563,20 @@ class AbstractPluginSlot(QFrame):


if index in (PARAMETER_DRYWET, PARAMETER_VOLUME): if index in (PARAMETER_DRYWET, PARAMETER_VOLUME):
default = 1.0 default = 1.0
resetText = self.tr("Reset (%i%%)" % int(default*100.0))
minimText = self.tr("Set to Minimum (%i%%)" % int(minimum*100.0))
maximText = self.tr("Set to Maximum (%i%%)" % int(maximum*100.0))
else: else:
default = gCarla.host.get_default_parameter_value(self.fPluginId, index) default = gCarla.host.get_default_parameter_value(self.fPluginId, index)
resetText = self.tr("Reset (%f)" % default)
minimText = self.tr("Set to Minimum (%f)" % minimum)
maximText = self.tr("Set to Maximum (%f)" % maximum)


menu = QMenu(self) menu = QMenu(self)
actReset = menu.addAction(self.tr("Reset (%f)" % (default)))
actReset = menu.addAction(resetText)
menu.addSeparator() menu.addSeparator()
actMinimum = menu.addAction(self.tr("Set to Minimum (%f)" % (minimum)))
actMaximum = menu.addAction(self.tr("Set to Maximum (%f)" % (maximum)))
actMinimum = menu.addAction(minimText)
actMaximum = menu.addAction(maximText)
menu.addSeparator() menu.addSeparator()
actSet = menu.addAction(self.tr("Set value...")) actSet = menu.addAction(self.tr("Set value..."))




Loading…
Cancel
Save