Skip to content

Commit

Permalink
fix evalscreen mouseovers
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 28, 2018
1 parent 272d516 commit 01e7bd1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,9 @@ local function scoreitem(pn, index, scoreIndex, drawindex)
Def.Quad {
Name = "mouseOver",
InitCommand = function(self)
self:xy(framex, framey + (drawindex * spacing) - 4):zoomto(frameWidth, 30):halign(0):valign(0):diffuse(
self:xy(framex, framey + (drawindex * spacing) - 4):zoomto(frameWidth*2, 30):halign(0):valign(0):diffuse(
getMainColor("highlight")
):diffusealpha(0.05)
end,
BeginCommand = function(self)
self:visible(false)
):diffusealpha(0)
end
},
--ClearType lamps
Expand Down Expand Up @@ -302,9 +299,9 @@ local function Update(self)
end
for i = 0, drawindex - 1 do
if isOver(self:GetChild("scoreItem" .. tostring(i)):GetChild("mouseOver")) then
self:GetChild("scoreItem" .. tostring(i)):GetChild("mouseOver"):visible(true)
self:GetChild("scoreItem" .. tostring(i)):GetChild("mouseOver"):diffusealpha(0.2)
else
self:GetChild("scoreItem" .. tostring(i)):GetChild("mouseOver"):visible(false)
self:GetChild("scoreItem" .. tostring(i)):GetChild("mouseOver"):diffusealpha(0)
self:GetChild("scoreItem" .. tostring(i)):GetChild("grade"):visible(true)
self:GetChild("scoreItem" .. tostring(i)):GetChild("judge"):visible(true)
self:GetChild("scoreItem" .. tostring(i)):GetChild("date"):visible(false)
Expand Down

0 comments on commit 01e7bd1

Please sign in to comment.