Skip to content

Commit

Permalink
til death fix tags tab mouse hover logic stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 13, 2021
1 parent 84dc562 commit ce63606
Showing 1 changed file with 28 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ local function makeTag(i)
MESSAGEMAN:Broadcast("RefreshTags")
end
end,
MouseOverCommand = function(self)
self:GetParent():diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:GetParent():diffusealpha(1)
end,
},
LoadFont("Common Large") .. {
Name = "Text",
Expand Down Expand Up @@ -416,21 +422,21 @@ local function funcButton(i)
end,
UpdateTagsMessageCommand = function(self)
self:queuecommand("BORPBORPNORFNORFc")
end
end,
MouseOverCommand = function(self)
self:GetParent():diffusealpha(0.6)
end,
MouseOutCommand = function(self)
self:GetParent():diffusealpha(1)
end,
},
UIElements.TextToolTip(1, 1, "Common Large") .. {
LoadFont("Common Large") .. {
InitCommand = function(self)
self:y(12):halign(0.5):diffuse(getMainColor("positive")):maxwidth((frameWidth / 3 - 30)):maxheight(22)
end,
BeginCommand = function(self)
self:settext(fawa[i])
end,
MouseOverCommand = function(self)
self:diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:diffusealpha(1)
end,
}
}
return t
Expand Down Expand Up @@ -520,12 +526,6 @@ r[#r + 1] = Def.ActorFrame {
UpdateTagsMessageCommand = function(self)
self:queuecommand("BORPBORPNORFNORFc")
end,
MouseOverCommand = function(self)
self:diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:diffusealpha(1)
end,
},
UIElements.QuadButton(1, 1) .. {
InitCommand = function(self)
Expand All @@ -537,7 +537,13 @@ r[#r + 1] = Def.ActorFrame {
filterChanged = true
MESSAGEMAN:Broadcast("RefreshTags")
end
end
end,
MouseOverCommand = function(self)
self:GetParent():diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:GetParent():diffusealpha(1)
end,
}
}

Expand All @@ -564,12 +570,6 @@ r[#r + 1] = Def.ActorFrame {
UpdateTagsMessageCommand = function(self)
self:queuecommand("BORPBORPNORFNORFc")
end,
MouseOverCommand = function(self)
self:diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:diffusealpha(1)
end,
},
UIElements.QuadButton(1, 1) .. {
InitCommand = function(self)
Expand All @@ -581,7 +581,13 @@ r[#r + 1] = Def.ActorFrame {
filterChanged = true
MESSAGEMAN:Broadcast("RefreshTags")
end
end
end,
MouseOverCommand = function(self)
self:GetParent():diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:GetParent():diffusealpha(1)
end,
}
}

Expand Down

0 comments on commit ce63606

Please sign in to comment.