Skip to content

Commit f8d9370

Browse files
committed
top ten most stupidest things that have ever happened in the history of literally ever
1 parent 633f93a commit f8d9370

File tree

6 files changed

+219
-216
lines changed

6 files changed

+219
-216
lines changed

source/managers/FreeplayManager.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ class FreeplayManager {
420420
MusicBeatState.preloadAndSwitchState(Type.createInstance(getFreeplay(), []));
421421
else //You cant play a song without picking a category first!
422422
FlxG.switchState(new states.CategoryState());
423+
424+
if (FlxG.sound.music == null || !FlxG.sound.music.playing)
425+
MusicManager.playMenuMusic();
423426
}
424427

425428
//Actual freeplay stuff

source/psychlua/CursorFunctions.hx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package psychlua;
2+
3+
class CursorFunctions
4+
{
5+
public static function implement(funk:FunkinLua)
6+
{
7+
var lua = funk.lua;
8+
//Fun cursor things for lua
9+
Lua_helper.add_callback(lua, "getCursorMode", function()
10+
{
11+
return Cursor.cursorMode;
12+
});
13+
14+
Lua_helper.add_callback(lua, "setCursorMode", function(mode:String)
15+
{
16+
Cursor.cursorMode = LuaUtils.interpCurseMode(mode);
17+
});
18+
19+
}
20+
}

0 commit comments

Comments
 (0)