Comments (8)
Should be solved now, please let me know if you encounter any other issues.
from reactor-essentials.
Already added as part of 0.2.0-dev builds with properties MenuVisible
and HudVisible
, ideally used with the ValueChanged
event.
from reactor-essentials.
This works for the options on the left. The options in the game menu can still not be disabled.
from reactor-essentials.
You set MenuVisible to false right? Does it work when you reopen the menu?
from reactor-essentials.
When I close the menu and reopen it then all custom options disappear. Including the ones where the visibility wasn't toggled.
from reactor-essentials.
I'll take a look
from reactor-essentials.
Will be fixed with 0.2.0-dev.3, I'll also recommend using CustomOption.RaiseValueChanged(false);
(on plugin load) after the update too, to update the option visibility to the default/currently selected value when first loading into the game.
from reactor-essentials.
I get the following NullReferenceException when opening the GameOptionsMenu, after doing something specific:
- Open the GameOptionsMenu -> CustomOption will be created
- Close the GameOptionsMenu
- On the created CustomOption, set MenuVisible to false
- Reopen the GameOptionsMenu
After reopening the GameOptionsMenu, the NullReferenceException occurs (It should happen in GetGameOptions(lowestY)
else if ((UnityEngine.Object) option.GameSetting != (UnityEngine.Object) null) { ((UnityEngine.Component) option.GameSetting).gameObject.SetActive(true); optionBehaviourList.Add(option.GameSetting); }
Somehow the component/gameObject seems to be null.
[Error : Detour] UnhollowerBaseLib.Il2CppException: System.NullReferenceException: Object reference not set to an instance of an object.
at UnhollowerBaseLib.Il2CppException.RaiseExceptionIfNecessary (System.IntPtr returnedException) [0x00014] in :0
at UnityEngine.Component.get_gameObject () [0x0002c] in <045cf7e91f5542268be1763686f1f2ad>:0
at Essentials.Options.CustomOption.GetGameOptions (System.Single lowestY) [0x00063] in <1254f1b337aa418a8f8bfbd277af126f>:0
at Essentials.Options.CustomOption+GameOptionsMenuPatchStart.Postfix (GameOptionsMenu __instance) [0x0002b] in <1254f1b337aa418a8f8bfbd277af126f>:0
at (wrapper dynamic-method) GameOptionsMenu.DMDGameOptionsMenu::Start(GameOptionsMenu)
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.(il2cpp -> managed) Start(intptr,UnhollowerBaseLib.Runtime.Il2CppMethodInfo*)
from reactor-essentials.
Related Issues (11)
- Sidebar Menu in lobbies doesn't play well with other aspect ratios HOT 1
- Option positions don't update in the menu HOT 2
- NullReferenceException when reopening the GameOptionsMenu HOT 3
- Modded Handshake HOT 1
- 2021.5 Release HOT 1
- Add license HOT 1
- Scroller row count cannot be configured HOT 1
- Adding references HOT 2
- PlayerCustomRpc could not be found HOT 3
- Feature-Suggestion: Hotkeys for CooldownButton HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-essentials.