jalovatt / Lokasenna_GUI

Lua scripts for Reaper
40 stars 11 forks source link

Update Class - Slider.lua #4

Open mespotine opened 4 years ago

mespotine commented 4 years ago

localized internal variable _

I don't think, it had a negative impact, but nevertheless, I localized it, to be safe.

jalovatt commented 4 years ago

I just tried in the Lua command line and I think the _ = is actually unnecessary for performing a conditional operation like this - those might all be able to just do:

self.horz and gfx.circle(min, y + (h / 2), h / 2 - 1, 1, 1)
          or  gfx.circle(y + (h / 2), min, h / 2 - 1, 1, 1)