Skip to content

Commit

Permalink
add CurrentNoteSkin luathreadvariable for noteskins
Browse files Browse the repository at this point in the history
somehow you cant really get the current noteskin name without looking at player options which isnt ideal so hand it via the loader which is usually accurate
  • Loading branch information
poco0317 committed Aug 27, 2023
1 parent e98798d commit a463fac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Etterna/Singletons/NoteSkinManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ NoteSkinManager::PushActorTemplate(Lua* L,
LuaThreadVariable varSpriteOnly("SpriteOnly",
LuaReference::Create(bSpriteOnly));
LuaThreadVariable varColor("Color", Color);
LuaThreadVariable varNoteskinName("CurrentNoteSkin", m_sCurrentNoteSkin);

if (data.m_Loader.IsNil()) {
LuaHelpers::ReportScriptError("No loader for noteskin!",
Expand Down

0 comments on commit a463fac

Please sign in to comment.