Skip to content

Commit

Permalink
2.3.2 (#432)
Browse files Browse the repository at this point in the history
- Fixed menu bug with latest patch version (1.1.12.168)
  • Loading branch information
misternebula authored Feb 3, 2022
1 parent 03d2426 commit 00d534d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Refer to the sample mods in the source code for examples. These mods are not inc

### Get started

1. Create a C# class library project targeting .Net Framework 4.0.
1. Create a C# class library project targeting .Net Framework 4.8.
2. Install the [OWML Nuget package](https://www.nuget.org/packages/OWML/).
3. Reference the following files in {gamePath}\OuterWilds_Data\Managed:
* Assembly-CSharp.dll
Expand Down
4 changes: 2 additions & 2 deletions src/OWML.Launcher/OWML.Manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Alek",
"name": "OWML",
"uniqueName": "Alek.OWML",
"version": "2.3.1",
"version": "2.3.2",
"minGameVersion": "1.1.10.47",
"maxGameVersion": "1.1.12.125"
"maxGameVersion": "1.1.12.168"
}
14 changes: 12 additions & 2 deletions src/OWML.ModHelper.Menus/ModMenuWithSelectables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,22 @@ protected virtual void SetupButtons(Menu menu)
resetButton.Prompt = new ScreenPrompt(InputLibrary.setDefaults, resetButton.DefaultTitle);
}

private IList<ModPromptButton> GetParentPromptButtons(Menu menu) =>
menu.transform.parent
private IList<ModPromptButton> GetParentPromptButtons(Menu menu)
{
var parent = menu.transform.parent;

if (parent.Find("OptionsButtons") == null)
{
parent = parent.parent;
}

return parent
.GetComponentsInChildren<ButtonWithHotkeyImageElement>(true)
.Select(x => x.GetComponent<Button>())
.Select(x => new ModPromptButton(x, this, Console))
.ToList();
}


public override void Initialize(Menu menu)
{
Expand Down

0 comments on commit 00d534d

Please sign in to comment.