Skip to content

Commit

Permalink
add hover action to rebirth wheel header and associate with random bu…
Browse files Browse the repository at this point in the history
…tton
  • Loading branch information
poco0317 committed Oct 23, 2021
1 parent 2f2ac63 commit 45fd594
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ local accThisSession = 0
-- need to keep them respectable ... dont allow below 50 or above 100
local graphUpperBound = 100
local graphLowerBound = 50
local hoverAlpha = 0.9

-- calculate average wife percent for scores set this session
-- ignores negative percents
Expand Down Expand Up @@ -1348,7 +1349,15 @@ t[#t+1] = Def.ActorFrame {
self:GetParent():GetParent():GetChild("WheelContainer"):playcommand("FindGroup", {group = group})
end
end
end
end,
MouseOverCommand = function(self)
self:GetParent():diffusealpha(hoverAlpha)
MESSAGEMAN:Broadcast("HoverWheelHeader", {on = true})
end,
MouseOutCommand = function(self)
self:GetParent():diffusealpha(1)
MESSAGEMAN:Broadcast("HoverWheelHeader", {off = true})
end,
},
Def.ActorFrame {
Name = "GroupPage",
Expand Down
7 changes: 7 additions & 0 deletions Themes/Rebirth/BGAnimations/playerInfoFrame/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,13 @@ t[#t+1] = Def.ActorFrame {
end
end
end,
HoverWheelHeaderMessageCommand = function(self, params)
if params and params.on then
self:diffusealpha(hoverAlpha)
elseif params and params.off then
self:diffusealpha(1)
end
end,
MouseDownCommand = function(self, params)
self:playcommand("Invoke", params)
end
Expand Down

0 comments on commit 45fd594

Please sign in to comment.