From 9551832f5d850e93a35f41f0d4dd34990d11f23b Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Sun, 14 May 2017 12:15:27 -0400 Subject: [PATCH] continue giving up on function created buttons because they never work ever --- .../playlists.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua index bde169638a..22bcb730d5 100644 --- a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua +++ b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/playlists.lua @@ -263,9 +263,9 @@ local b2 = Def.ActorFrame{ } -- Add chart button -b2[#b2+1] = LoadFont("Common Large") .. {InitCommand=cmd(zoom,0.3;x,250;settext,"Add Chart")} +b2[#b2+1] = LoadFont("Common Large") .. {InitCommand=cmd(zoom,0.3;x,245;settext,"Add Chart")} b2[#b2+1] = Def.Quad{ - InitCommand=cmd(x,250;diffusealpha,buttondiffuse;zoomto,80,20), + InitCommand=cmd(x,245;diffusealpha,buttondiffuse;zoomto,80,20), MouseLeftClickMessageCommand=function(self) if ButtonActive(self) and singleplaylistactive then pl:AddChart(GAMESTATE:GetCurrentSteps(PLAYER_1):GetChartKey()) @@ -381,12 +381,24 @@ local playlists = Def.ActorFrame{ end } +-- Buttons for general playlist manipulation local b = Def.ActorFrame{ - InitCommand=cmd(xy,100,frameHeight+20;zoom,0.3), + InitCommand=cmd(xy,100,frameHeight+30), DisplayPlaylistMessageCommand=cmd(visible,false), DisplayAllMessageCommand=cmd(visible,true) } +-- New Playlist +b[#b+1] = LoadFont("Common Large") .. {InitCommand=cmd(zoom,0.3;settext,"New Playlist")} +b[#b+1] = Def.Quad{ + InitCommand=cmd(diffusealpha,buttondiffuse;zoomto,110,20), + MouseLeftClickMessageCommand=function(self) + if ButtonActive(self,0.3) and allplaylistsactive then + SONGMAN:NewPlaylist() + end + end +} + playlists[#playlists+1] = b for i=1,scoresperpage do