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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user