Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | const l10n = require("../helpers/l10n").default; const id = "EVENT_OVERLAY_SET_SCANLINE_CUTOFF"; const groups = ["EVENT_GROUP_SCREEN"]; const subGroups = { EVENT_GROUP_SCREEN: "EVENT_GROUP_OVERLAY", }; const fields = [ { key: "y", label: l10n("FIELD_OVERLAY_SCANLINE_CUTOFF_Y"), description: l10n("FIELD_OVERLAY_SCANLINE_CUTOFF_Y_DESC"), type: "value", min: 0, max: 150, unitsField: "units", unitsDefault: "pixels", unitsAllowed: ["pixels"], defaultValue: { type: "number", value: 150, }, }, { label: l10n("FIELD_OVERLAY_SET_SCANLINE_CUTOFF_LABEL"), flexBasis: "100%", }, ]; const compile = (input, helpers) => { const { overlaySetScanlineCutoff } = helpers; overlaySetScanlineCutoff(input.y, input.units); }; module.exports = { id, description: l10n("EVENT_OVERLAY_SET_SCANLINE_CUTOFF_DESC"), groups, subGroups, fields, compile, helper: { type: "scanline", y: "y", units: "units", }, }; |