Methods calling panel
Last updated
Last updated
In the methods calling panel you can call methods of the previously selected component.
There are two modes, an automatic one and a manual mode.
Auto mode (unreliable): all methods found in the previously selected component will be displayed with their name, return type in round brackets, first argument input, a returned value if it returns one and a button to call the method. This mode is unreliable as only in some games/methods it can retrieve the needed informations about the method.
Manual mode: we can call a method by knowing it's name, return type and first argument type.
We can choose a method by name in the "Methods" dropdown box if they have any meaning (it depends on the game) or search them up in DnSpy and input the name manually in the "Method name" field.
Select the return type of the method and the first argument type if it takes atleast one argument or "no arguments" if it doesn't take any argument. Input the argument value if it takes atleast one and click on the "call method" button to call it. If it returns a value it will be displayed in the "return value" field below.
Below there is a log window where if some error occurs a text will be printed (mostly wrong return or argument type; doesn't print anything if wrong method name).
Supported return types are void, int, float, bool
Supported argument types are int, float, bool, string
Calling methods which don't take any argument isn't supported in Auto mode as we can't distinguish between unsupported argument and no argument
Even in Manual mode it will try to autodeduct the return and argument type after selecting a method from the dropdown menu but it doesn't always work so better input them manually
The biggest limitation of this feature is that you can only pass one argument, so if there is more than one argument the rest will evaluate to their default value