[pshaiCmd] SuperInputSettings

0 38 Views No Comments 3 weeks ago
  • Creates a settings objects for SuperInput.
    This is required when using SuperInput.

    HaasScript Code
    DefineCommand('SuperInputSettings', 'Creates a settings objects for SuperInput')
    
    local defaultValue = DefineParameter(DynamicType, 'defaultValue', 'Default value for field. Make sure it is the correct type!', true, 'some default', 'Text, Number, Enumerations')
    local tooltip = DefineParameter(StringType, 'tooltip', 'Tooltip for input', false, '', 'Text, StringJoin')
    local group = DefineParameter(StringType, 'group', 'Header group for input', false, '', 'Text, StringJoin')
    local logType = DefineParameter(NumberType, 'logType', 'Logging type: 0 = no logging, 1 = verbose, 2 = all/debug', false, 0, 'Number, Input')
    
    DefineOutput(ListDynamicType,
        {
            defaultValue = defaultValue,
            tooltip = tooltip,
            group = group,
            logType = logType == 0 and '' or logType == 1 and '-v' or '-v-m'
        },
        'Settings object for SuperInput',
        'SuperInput'
    )
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free