1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-09 07:01:14 +02:00

auto formatting

This commit is contained in:
2023-08-11 16:49:34 +02:00
parent 05f521df93
commit cfa90f158c

View File

@@ -17,7 +17,7 @@ function Button:draw()
if isActive and self:shouldReset() and computer.uptime() - self._pressed > self:resetTime() then
self:activate(false)
end
local newBG = isActive and (self:foregroundColor() or 0xffffff-self:backgroundColor()) or self:backgroundColor()
local newBG = isActive and (self:foregroundColor() or 0xffffff - self:backgroundColor()) or self:backgroundColor()
local oldBG = gpu.setBackground(newBG)
gpu.fill(self:absX(), self:absY(), self:width(), self:height(), " ")
gpu.setBackground(oldBG)