/
id = "LevelSnap"; |
options = { |
{ |
id = "LS_Active"; |
text = LS_ENABLED; |
tooltipText = LS_HELP_ONOFF; |
type = CONTROLTYPE_CHECKBOX; |
defaultValue = "1"; |
id = "LS_Active", |
text = LS_ENABLED, |
tooltipText = LS_HELP_ONOFF, |
type = CONTROLTYPE_CHECKBOX, |
defaultValue = "1", |
callback = function(value) |
LS_Options.Active = value; |
end; |
}; |
{ |
id = "LS_MinLevel"; |
text = LS_MINIMUM; |
tooltipText = LS_HELP_MIN; |
type = CONTROLTYPE_SLIDER; |
id = "LS_MinLevel", |
text = LS_MINIMUM, |
tooltipText = LS_HELP_MIN, |
type = CONTROLTYPE_SLIDER, |
minText = "Min", |
maxText = "Max", |
defaultValue = LS_Options.MinLevel; |
minValue = "1"; |
maxValue = "80"; |
valueStep = "1"; |
defaultValue = LS_Options.MinLevel, |
minValue = "1", |
maxValue = "80", |
valueStep = "1", |
callback = function(value) |
if (value >= LS_Options.MaxLevel) then |
LS_Options.MaxLevel = value; |
end; |
}; |
{ |
id = "LS_MaxLevel"; |
text = LS_MAXIMUM; |
tooltipText = LS_HELP_MAX; |
type = CONTROLTYPE_SLIDER; |
id = "LS_MaxLevel", |
text = LS_MAXIMUM, |
tooltipText = LS_HELP_MAX, |
type = CONTROLTYPE_SLIDER, |
minText = "Min", |
maxText = "Max", |
defaultValue = LS_Options.MaxLevel; |
minValue = "1"; |
maxValue = "80"; |
valueStep = "1"; |
defaultValue = LS_Options.MaxLevel, |
minValue = "1", |
maxValue = "80", |
valueStep = "1", |
callback = function(value) |
if (value <= LS_Options.MinLevel) then |
LS_Options.MinLevel = value; |
end; |
}; |
{ |
id = "LS_CloseWindows"; |
text = LS_CLOSEWIN; |
tooltipText = LS_HELP_CLOSEWIN; |
type = CONTROLTYPE_CHECKBOX; |
defaultValue = "1"; |
id = "LS_CloseWindows", |
text = LS_CLOSEWIN, |
tooltipText = LS_HELP_CLOSEWIN, |
type = CONTROLTYPE_CHECKBOX, |
defaultValue = "1", |
callback = function(value) |
LS_Options.CloseWindows = value; |
end; |
}; |
}; |
savedVarTable = "LS_Options"; |
savedVarTable = "LS_Options", |
} |
Portfolio.RegisterOptionSet(optionTable) |