Create a new integer user property (shown in instrument properties).
Example
From sample instrument instruments/generic_airspeed/logic.lua
return tonumber(user_prop_get(user_prop_add_integer(name, min, max, default, desc))) or default
end
local scale_min = knob("Scale min kt", 0, 100, 0, "Left end of the dial, knots")
local scale_max = knob("Scale max kt", 60, 500, 200, "Right end of the dial, knots")
local white_a = knob("White arc start kt", 0, 400, 40, "Flap-range arc, low end")
From sample instrument instruments/generic_airspeed/logic.lua
return tonumber(user_prop_get(user_prop_add_integer(name, min, max, default, desc))) or default
end
local scale_min = knob("Scale min kt", 0, 100, 0, "Left end of the dial, knots")
local scale_max = knob("Scale max kt", 60, 500, 200, "Right end of the dial, knots")
local white_a = knob("White arc start kt", 0, 400, 40, "Flap-range arc, low end")