File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Themes/Til Death/BGAnimations
ScreenSelectMusic decorations Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -988,5 +988,5 @@ t[#t + 1] =
988
988
}
989
989
}
990
990
991
- t [# t + 1 ] = LoadActor (" ../_chartpreview.lua" )
991
+ t [# t + 1 ] = LoadActorWithParams (" ../_chartpreview.lua" , { yPos = prevY , yPosReverse = prevrevY } )
992
992
return t
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ local hidth = 40
9
9
local yeet
10
10
local cd
11
11
12
+ local yPos = Var (" yPos" )
13
+ local yPosReverse = Var (" yPosReverse" )
14
+ if not yPos then yPos = 55 end
15
+ if not yPosReverse then yPosReverse = 208 end
16
+
12
17
local translated_info = {
13
18
Paused = THEME :GetString (" ChartPreview" , " Paused" )
14
19
}
@@ -35,7 +40,7 @@ local function setUpPreviewNoteField()
35
40
yeet :x (wodth / 2 )
36
41
memehamstermax :SortByDrawOrder ()
37
42
MESSAGEMAN :Broadcast (" NoteFieldVisible" )
38
- end
43
+ end
39
44
40
45
local t = Def .ActorFrame {
41
46
Name = " ChartPreview" ,
@@ -75,6 +80,16 @@ local t = Def.ActorFrame {
75
80
cd :GetChild (" cdbg" ):diffusealpha (0 ) -- we want to use our position background for draw order stuff -mina
76
81
cd :queuecommand (" GraphUpdate" ) -- first graph will be empty if we dont force this on initial creation
77
82
end ,
83
+ OptionsScreenClosedMessageCommand = function (self )
84
+ local rev = GAMESTATE :GetPlayerState (PLAYER_1 ):GetCurrentPlayerOptions ():UsingReverse ()
85
+ if self :GetChild (" NoteField" ) ~= nil then
86
+ if not rev then
87
+ self :GetChild (" NoteField" ):y (yPos * 1.5 )
88
+ else
89
+ self :GetChild (" NoteField" ):y (yPos * 1.5 + yPosReverse )
90
+ end
91
+ end
92
+ end ,
78
93
Def .Quad {
79
94
Name = " BG" ,
80
95
InitCommand = function (self )
You can’t perform that action at this time.
0 commit comments