Files
NobetaSource/Cpp2IL/Assembly-CSharp/InspectorButtonAttribute.cs
2023-09-06 22:09:22 +02:00

66 lines
4.1 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x0200036A RID: 874
[Token(Token = "0x200036A")]
[AttributeUsage(AttributeTargets.Field)]
public class InspectorButtonAttribute : PropertyAttribute
{
// Token: 0x170001D0 RID: 464
// (get) Token: 0x06002166 RID: 8550 RVA: 0x0004F5B0 File Offset: 0x0004D7B0
// (set) Token: 0x06002167 RID: 8551 RVA: 0x0004F5C4 File Offset: 0x0004D7C4
[Token(Token = "0x170001D0")]
public float ButtonWidth
{
[Token(Token = "0x6002166")]
[Address(RVA = "0x676BA0", Offset = "0x6753A0", VA = "0x180676BA0")]
get
{
return this._buttonWidth;
}
[Token(Token = "0x6002167")]
[Address(RVA = "0x676B00", Offset = "0x675300", VA = "0x180676B00")]
set
{
this._buttonWidth = value;
}
}
// Token: 0x06002168 RID: 8552 RVA: 0x0004F5D8 File Offset: 0x0004D7D8
[Token(Token = "0x6002168")]
[Address(RVA = "0x10AF050", Offset = "0x10AD850", VA = "0x1810AF050")]
public InspectorButtonAttribute(string MethodName)
{
/*
An exception occurred when decompiling this method (06002168)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void InspectorButtonAttribute::.ctor(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:float32(var_0_05, ldsfld:float32(InspectorButtonAttribute::kDefaultButtonWidth)); stfld:float32(InspectorButtonAttribute::_buttonWidth, ldloc:InspectorButtonAttribute(this), ldloc:float32(var_0_05)); call:void(PropertyAttribute::.ctor, ldloc:InspectorButtonAttribute[exp:PropertyAttribute](this)); stfld:string(InspectorButtonAttribute::MethodName, ldloc:InspectorButtonAttribute(this), ldloc:string(MethodName)); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
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 344
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
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
--- End of inner exception stack trace ---
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
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 1618
*/;
}
// Token: 0x04002AD3 RID: 10963
[Token(Token = "0x4002AD3")]
public static float kDefaultButtonWidth;
// Token: 0x04002AD4 RID: 10964
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4002AD4")]
public readonly string MethodName;
// Token: 0x04002AD5 RID: 10965
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4002AD5")]
private float _buttonWidth;
}