X Tutup
Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Commit fdc1dee

Browse files
committed
Continuing to make changes to the renderer to support 0 as transparency.
1 parent b3cbc56 commit fdc1dee

File tree

15 files changed

+88
-1078
lines changed

15 files changed

+88
-1078
lines changed

Disks/PixelVisionOS/System/Tools/WorkspaceTool/Src/code-icon-button.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function PixelVisionOS:CreateIconButtonStates(data, spriteName, text, bgColor)
8484
-- if(bgColor ~= nil) then
8585
-- data.bgDrawArgs[5] = bgColor
8686
-- end
87-
87+
print("bgColor", bgColor)
8888
if(spriteName == "none") then
8989

9090
DrawRect(
@@ -130,7 +130,7 @@ function PixelVisionOS:CreateIconButtonStates(data, spriteName, text, bgColor)
130130
end
131131

132132
-- Get the background color
133-
local bgColor = state ~= "dragging" and bgColor or - 1
133+
local bgColor = state ~= "dragging" and bgColor or 0
134134

135135
-- Create states
136136
if(spriteName == nil) then

0 commit comments

Comments
 (0)
X Tutup