Skip to content

Commit

Permalink
Update value.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Matze-Jung committed Sep 21, 2019
1 parent 81851b5 commit ac633bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SCRIPTS/WIDGETS/value.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
- Set to "%", to output percent of 'src', calculated with 'min' and 'max'
style: int (optional, default 0)
- Text format
- Text Attributes: 0, DBLSIZE, MIDSIZE, SMLSIZE, INVERS, BLINK, XXLSIZE, LEFT
All att values can be combined together using the + character. ie BLINK + DBLSIZE
max: number (only optional, if 'unit' is not "%")
- Largest value
Expand All @@ -56,7 +57,7 @@ local function valueWidget(zone, event, opts)
or getValue(opts.src)
local tOfs = 0

if (opts.min and opts.min > val) or (opts.max and opts.max < val) then
if (opts.min and opts.min >= val) or (opts.max and opts.max <= val) then
format = format + BLINK
end

Expand Down

0 comments on commit ac633bc

Please sign in to comment.