Skip to content

Commit

Permalink
Updated for Beat Saber 1.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pespiri committed Oct 21, 2020
1 parent c285b71 commit a163812
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions StepBackWall/Gameplay/StepBackWallEnabler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ private void Start()
try
{
IList<MoveBackWall> moveBackWalls = Resources.FindObjectsOfTypeAll<MoveBackWall>();
if (moveBackWalls.Count > 0)
foreach (MoveBackWall moveBackWall in moveBackWalls)
{
moveBackWalls[0].gameObject.SetActive(true);
moveBackWall.gameObject.SetActive(true);
}
}
catch (Exception ex)
Expand Down
2 changes: 1 addition & 1 deletion StepBackWall/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void Init(IPALogger logger, Config config, PluginMetadata metadata)

private void OnGameSceneLoaded()
{
if (Configuration.EnableStepBackWalls && !BS_Utils.Gameplay.Gamemode.SelectedCharacteristic.containsRotationEvents)
if (Configuration.EnableStepBackWalls && !BS_Utils.Plugin.LevelData.GameplayCoreSceneSetupData.difficultyBeatmap.parentDifficultyBeatmapSet.beatmapCharacteristic.containsRotationEvents)
{
new GameObject(PluginName).AddComponent<StepBackWallEnabler>();
}
Expand Down
4 changes: 2 additions & 2 deletions StepBackWall/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
2 changes: 1 addition & 1 deletion StepBackWall/Settings/UI/MainModifiers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public bool IsStepBackWallEnabled
}

[UIAction("trigger-toggle")]
void TriggerEnable(bool val) => IsStepBackWallEnabled = val;
public void TriggerEnable(bool val) => IsStepBackWallEnabled = val;
}
}
6 changes: 3 additions & 3 deletions StepBackWall/Settings/UI/Views/mainmodifiers.bsml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<bg xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='https://monkeymanboy.github.io/BSML-Docs/ https://raw.githubusercontent.com/monkeymanboy/BSML-Docs/gh-pages/BSMLSchema.xsd'>
<settings-container pref-width='50' pref-height='5'>
<modifier text='Enable' value='enable-stepback-wall'
<modifier-container pref-width='50' pref-height='5'>
<modifier text='StepBack Wall' value='enable-stepback-wall'
hover-hint='Not available in 90/360 levels'
source='StepBackWall.Resources.icon_playersettings.png'
on-change='trigger-toggle'/>
</settings-container>
</modifier-container>
</bg>
9 changes: 5 additions & 4 deletions StepBackWall/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"#![StepBackWall.Resources.description.md]",
"Re-enables the Step Back wall layer"
],
"gameVersion": "1.11.0",
"gameVersion": "1.12.2",
"icon": "StepBackWall.Resources.icon.png",
"id": "StepBackWall",
"name": "StepBackWall",
"version": "1.2.0",
"version": "1.3.0",
"dependsOn": {
"BeatSaberMarkupLanguage": "^1.3.4",
"BS Utils": "^1.4.11"
"BSIPA": "^4.1.3",
"BeatSaberMarkupLanguage": "^1.3.5",
"BS Utils": "^1.5.0"
},
"features": [],
"links": {
Expand Down

0 comments on commit a163812

Please sign in to comment.