-
Notifications
You must be signed in to change notification settings - Fork 2
/
LiveSplit.WrestleQuest.asl
44 lines (36 loc) · 1.01 KB
/
LiveSplit.WrestleQuest.asl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
state("WrestleQuest")
{
}
startup
{
Assembly.Load(File.ReadAllBytes("Components/asl-help")).CreateInstance("Unity");
vars.Helper.GameName = "WrestleQuest";
vars.Helper.LoadSceneManager = true;
vars.Helper.AlertLoadless();
settings.Add("remove_pause", true, "Pauses Timer on Pause Menu");
}
init
{
vars.Helper.TryLoad = (Func<dynamic, bool>)(mono =>
{
vars.Helper["SceneLoader"] = mono.Make<bool>("SceneLoader", "_instance", "isLoadingScene");
vars.Helper["PauseGame"] = mono.Make<bool>("PauseGame", "Instance", "GamePaused");
return true;
});
}
update
{
current.ActiveScene = vars.Helper.Scenes.Active.Name ?? old.ActiveScene;
}
start
{
return old.ActiveScene == "TitlescreenNew" && current.ActiveScene == "WorldMap";
}
isLoading
{
return current.SceneLoader || settings["remove_pause"] && current.PauseGame;
}
reset
{
return current.ActiveScene == "TitlescreenNew" && old.ActiveScene != "TitlescreenNew";
}