terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ GetSelectedItemRegion()

Rectangle GUIControllerPageMenuPopupGridNavigator.GetSelectedItemRegion ( )
inline

Definition at line 340 of file GUIControllerPageMenuPopupGridNavigator.cs.

341 {
342 /*
343An exception occurred when decompiling this method (0600061C)
344
345ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle GUIControllerPageMenuPopupGridNavigator::GetSelectedItemRegion()
346
347 ---> System.Exception: Basic block has to end with unconditional control flow.
348{
349 IL_009B:
350 stloc:bool(var_20_AB, callgetter:bool(GUIPageIconGrouping::get_LeftSideGrouping, callgetter:GUIPageIconGrouping(GUIPageContentController::get_ParentGrouping, ldfld:GUIPageContentController(GUIControllerPageMenuPopupGridNavigator::_controller, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))))
351 stloc:GetGrid(var_21_B3, ldfld:GetGrid(GUIControllerPageMenuPopupGridNavigator::_grid, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
352 stloc:native int(var_22_BC, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_21_B3)))
353 stloc:native int(var_23_C5, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_21_B3)))
354 stloc:native int(var_24_CE, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_21_B3)))
355 stloc:GetGrid(var_25_D6, ldfld:GetGrid(GUIControllerPageMenuPopupGridNavigator::_grid, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
356 stloc:int32(var_26_DE, ldfld:int32(GUIControllerPageMenuPopupGridNavigator::itemColumn, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
357 stloc:native int(var_27_E7, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_25_D6)))
358 stloc:native int(var_28_F0, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_25_D6)))
359 stloc:native int(var_29_F9, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_25_D6)))
360 stloc:GetGrid(var_30_101, ldfld:GetGrid(GUIControllerPageMenuPopupGridNavigator::_grid, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
361 stloc:int32(var_31_109, ldfld:int32(GUIControllerPageMenuPopupGridNavigator::itemColumn, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
362 stloc:native int(var_32_112, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_30_101)))
363 stloc:native int(var_33_11B, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_30_101)))
364 stloc:native int(var_34_124, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_30_101)))
365 stloc:GetGrid(var_35_12C, ldfld:GetGrid(GUIControllerPageMenuPopupGridNavigator::_grid, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
366 stloc:int32(var_36_134, ldfld:int32(GUIControllerPageMenuPopupGridNavigator::itemRow, ldloc:GUIControllerPageMenuPopupGridNavigator(this)))
367 stloc:native int(var_37_13D, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_35_12C)))
368 stloc:native int(var_38_146, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_35_12C)))
369 stloc:native int(var_39_14F, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_35_12C)))
370}
371
372 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
373 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
374 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
375 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
376 --- End of inner exception stack trace ---
377 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
378 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
379*/;
380 }

Referenced by GUIControllerInventory4Page.GetSelectedItemRegion(), GUIControllerItemFilter.GetSelectedItemRegion(), and GUIControllerPVP4Page.GetSelectedItemRegion().