SubnauticaModding / Nautilus-Proto

Archived prototype for Nautilus, the Subnautica Modding API.
https://subnauticamodding.github.io/Nautilus/
GNU General Public License v3.0
6 stars 3 forks source link

ConfigFile button methods/actions not working #31

Closed RamuneNeptune closed 1 year ago

RamuneNeptune commented 1 year ago

This seems to affect all buttons made, i.e. it still happens when the method has nothing it it, when the method has something completely different to the image below, etc

Code:

Error:

Stack trace:
System.Delegate.GetCandidateMethod (System.Type type, System.Type target, System.String method, System.Reflection.BindingFlags bflags, System.Boolean ignoreCase, System.Boolean throwOnBindFailure) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Delegate.CreateDelegate (System.Type type, System.Object target, System.String method, System.Boolean ignoreCase, System.Boolean throwOnBindFailure) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Delegate.CreateDelegate (System.Type type, System.Object target, System.String method, System.Boolean ignoreCase) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Delegate.CreateDelegate (System.Type type, System.Object target, System.String method) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
Nautilus.Options.Attributes.MemberInfoMetadata`1[T].GetMethodAsAction[V] (T config) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
Nautilus.Options.Attributes.OptionsMenuBuilder`1[T].BuildModButtonOption (System.String id, System.String label, Nautilus.Options.Attributes.MemberInfoMetadata`1[T] memberInfoMetadata) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
Nautilus.Options.Attributes.OptionsMenuBuilder`1[T].BuildModOptions (uGUI_TabbedControlsPanel panel, System.Int32 modsTabIndex, System.Collections.Generic.IReadOnlyCollection`1[T] options) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
Nautilus.Options.ModOptions.AddOptionsToPanel (uGUI_TabbedControlsPanel panel, System.Int32 modsTabIndex) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
Nautilus.Patchers.OptionsPanelPatcher+<>c__DisplayClass5_0.<AddTabs_Postfix>b__1 (Nautilus.Options.ModOptions options) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
SystemExtensions.ForEach[T] (System.Collections.Generic.IEnumerable`1[T] items, System.Action`1[T] action) (at <aafb86ac724b47ddb09cd2e6deee2370>:0)
Nautilus.Patchers.OptionsPanelPatcher.AddTabs_Postfix (uGUI_OptionsPanel __instance) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
(wrapper dynamic-method) uGUI_OptionsPanel.DMD<uGUI_OptionsPanel::AddTabs>(uGUI_OptionsPanel)
uGUI_OptionsPanel.OnEnable () (at <9ec6c1b62c324758b9c2d79021505be6>:0)
UnityEngine.GameObject:SetActive(Boolean)
IngameMenu:ChangeSubscreen(String)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
FPSInputModule:ProcessMousePress(MouseButtonEventData)
FPSInputModule:ProcessMouseEvent()
FPSInputModule:OnUpdate()
ManagedUpdate:Execute(Queue)
ManagedUpdate:ExecuteRange(Queue, Queue)
ManagedUpdate:LateUpdate()
LeeTwentyThree commented 1 year ago

See https://github.com/SubnauticaModding/Nautilus/issues/315.