-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'etterna/develop'
- Loading branch information
Showing
36 changed files
with
871 additions
and
1,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +0,0 @@ | ||
local update = false | ||
local t = | ||
Def.ActorFrame { | ||
BeginCommand = function(self) | ||
self:queuecommand("Set") | ||
end, | ||
OffCommand = function(self) | ||
self:bouncebegin(0.2):xy(-500, 0) -- visible(false) | ||
end, | ||
OnCommand = function(self) | ||
self:bouncebegin(0.2):xy(0, 0) | ||
end, | ||
SetCommand = function(self) | ||
self:finishtweening() | ||
if getTabIndex() == 0 then | ||
self:queuecommand("On") | ||
update = true | ||
else | ||
self:queuecommand("Off") | ||
update = false | ||
end | ||
end, | ||
TabChangedMessageCommand = function(self) | ||
self:queuecommand("Set") | ||
end, | ||
ChartPreviewOnMessageCommand = function(self) | ||
self:visible(false) | ||
end, | ||
ChartPreviewOffMessageCommand = function(self) | ||
self:visible(true) | ||
end, | ||
} | ||
|
||
t[#t + 1] = | ||
Def.Banner { | ||
InitCommand = function(self) | ||
self:x(10):y(61):halign(0):valign(0):scaletoclipped( | ||
capWideScale(get43size(384), 384), | ||
capWideScale(get43size(120), 120) | ||
) | ||
end, | ||
SetMessageCommand = function(self) | ||
if update then | ||
local top = SCREENMAN:GetTopScreen() | ||
if top:GetName() == "ScreenSelectMusic" or top:GetName() == "ScreenNetSelectMusic" then | ||
local song = GAMESTATE:GetCurrentSong() | ||
local group = top:GetMusicWheel():GetSelectedSection() | ||
if song then | ||
self:LoadFromSong(song) | ||
elseif group then | ||
self:LoadFromSongGroup(group) | ||
end | ||
end | ||
end | ||
self:scaletoclipped(capWideScale(get43size(384), 384), capWideScale(get43size(120), 120)) | ||
end, | ||
CurrentSongChangedMessageCommand = function(self) | ||
self:queuecommand("Set") | ||
end | ||
} | ||
|
||
return t | ||
Oops, something went wrong.