Git Product home page Git Product logo

Comments (8)

DorCoMaNdO avatar DorCoMaNdO commented on June 13, 2024 1

Should be solved now, please let me know if you encounter any other issues.

from reactor-essentials.

DorCoMaNdO avatar DorCoMaNdO commented on June 13, 2024

Already added as part of 0.2.0-dev builds with properties MenuVisible and HudVisible, ideally used with the ValueChanged event.

from reactor-essentials.

Popeye4242 avatar Popeye4242 commented on June 13, 2024

image
This works for the options on the left. The options in the game menu can still not be disabled.
image

from reactor-essentials.

DorCoMaNdO avatar DorCoMaNdO commented on June 13, 2024

You set MenuVisible to false right? Does it work when you reopen the menu?

from reactor-essentials.

Popeye4242 avatar Popeye4242 commented on June 13, 2024

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.

DorCoMaNdO avatar DorCoMaNdO commented on June 13, 2024

I'll take a look

from reactor-essentials.

DorCoMaNdO avatar DorCoMaNdO commented on June 13, 2024

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.

BOTHLine avatar BOTHLine commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.