Skip to content

Commit

Permalink
Make chart leaderboards always populate if gameplay leaderboard is on
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 9, 2018
1 parent 909d284 commit 448c2b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ t[#t + 1] =
self:playcommand("TweenOff")
end
end,
PlayingSampleMusicMessageCommand = function(self)
local leaderboardEnabled = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled and DLMAN:IsLoggedIn()
if leaderboardEnabled then
local chartkey = GAMESTATE:GetCurrentSteps(PLAYER_1):GetChartKey()
DLMAN:RequestChartLeaderBoardFromOnline(chartkey)
end
end,
Def.StepsDisplayList {
Name = "StepsDisplayListRow",
CursorP1 = Def.ActorFrame {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ local ret =
MESSAGEMAN:Broadcast("TabChanged")
end,
PlayingSampleMusicMessageCommand = function(self)
updateLeaderBoardForCurrentChart()
local leaderboardEnabled = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled and DLMAN:IsLoggedIn()
if not leaderboardEnabled then -- this is taken care of by default.lua instead.
updateLeaderBoardForCurrentChart()
end
end,
NestedTabChangedMessageCommand = function(self)
updateLeaderBoardForCurrentChart()
Expand Down

0 comments on commit 448c2b8

Please sign in to comment.