Skip to content

Commit

Permalink
rebirth clicking player rating jumps to profile tab
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 23, 2021
1 parent 564e11d commit d80ffda
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions Themes/Rebirth/BGAnimations/playerInfoFrame/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ t[#t+1] = Def.ActorFrame {
end
end
},
LoadFont("Common Normal") .. {
UIElements.TextToolTip(1, 1, "Common Normal") .. {
Name = "OfflineRating",
InitCommand = function(self)
self:y(actuals.RightTextTopGap2)
Expand All @@ -507,9 +507,20 @@ t[#t+1] = Def.ActorFrame {
else
self:settextf("%5.2f", offlinerating)
end
end
end,
MouseOverCommand = function(self)
self:diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:diffusealpha(1)
end,
MouseDownCommand = function(self, params)
if params.event == "DeviceButton_left mouse button" then
MESSAGEMAN:Broadcast("GeneralTabSet", {tab = SCUFF.profiletabindex})
end
end,
},
LoadFont("Common Normal") .. {
UIElements.TextToolTip(1, 1, "Common Normal") .. {
Name = "OnlineRating",
InitCommand = function(self)
self:y(actuals.RightTextTopGap3)
Expand All @@ -525,7 +536,18 @@ t[#t+1] = Def.ActorFrame {
else
self:settext("")
end
end
end,
MouseOverCommand = function(self)
self:diffusealpha(hoverAlpha)
end,
MouseOutCommand = function(self)
self:diffusealpha(1)
end,
MouseDownCommand = function(self, params)
if params.event == "DeviceButton_left mouse button" then
MESSAGEMAN:Broadcast("GeneralTabSet", {tab = SCUFF.profiletabindex})
end
end,
},
}

Expand Down

0 comments on commit d80ffda

Please sign in to comment.