Skip to content

Commit a9b9d6d

Browse files
committed
Set Practice Mode Lua to accept a delay for SetSongPosition
1 parent 3f16a6c commit a9b9d6d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ local function duminput(event)
948948
MESSAGEMAN:Broadcast("MouseRightClick")
949949
elseif event.DeviceInput.button == "DeviceButton_backspace" and event.type == "InputEventType_FirstPress" then
950950
if bookmarkPosition ~= nil then
951-
SCREENMAN:GetTopScreen():SetSongPosition(bookmarkPosition)
951+
SCREENMAN:GetTopScreen():SetSongPosition(bookmarkPosition, 1)
952952
end
953953
elseif event.button == "EffectUp" and event.type == "InputEventType_FirstPress" then
954954
SCREENMAN:GetTopScreen():AddToRate(0.05)
@@ -1047,7 +1047,7 @@ pm[#pm + 1] =
10471047
end,
10481048
MouseLeftClickMessageCommand = function(self)
10491049
if isOver(self) then
1050-
SCREENMAN:GetTopScreen():SetSongPosition(self:GetX() * musicratio)
1050+
SCREENMAN:GetTopScreen():SetSongPosition(self:GetX() * musicratio, 0)
10511051
end
10521052
end,
10531053
MouseRightClickMessageCommand = function(self)

src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ class LunaScreenGameplayPractice : public Luna<ScreenGameplayPractice>
319319
public:
320320
static int SetSongPosition(T* p, lua_State* L)
321321
{
322-
float given = FArg(1);
323-
p->SetSongPosition(given);
322+
float position = FArg(1);
323+
float delay = FArg(2);
324+
p->SetSongPosition(position, delay);
324325
return 0;
325326
}
326327

0 commit comments

Comments
 (0)