using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000361 RID: 865
[Token(Token = "0x2000361")]
[AttributeUsage(AttributeTargets.Field)]
public class InspectorButtonAttribute : PropertyAttribute
{
	// Token: 0x170001D6 RID: 470
	// (get) Token: 0x06002134 RID: 8500 RVA: 0x0004EB48 File Offset: 0x0004CD48
	// (set) Token: 0x06002135 RID: 8501 RVA: 0x0004EB5C File Offset: 0x0004CD5C
	[Token(Token = "0x170001D6")]
	public float ButtonWidth
	{
		[Token(Token = "0x6002134")]
		[Address(RVA = "0x603D30", Offset = "0x602B30", VA = "0x180603D30")]
		get
		{
			return this._buttonWidth;
		}
		[Token(Token = "0x6002135")]
		[Address(RVA = "0x603C90", Offset = "0x602A90", VA = "0x180603C90")]
		set
		{
			this._buttonWidth = value;
		}
	}

	// Token: 0x06002136 RID: 8502 RVA: 0x0004EB70 File Offset: 0x0004CD70
	[Token(Token = "0x6002136")]
	[Address(RVA = "0x10D3210", Offset = "0x10D2010", VA = "0x1810D3210")]
	public InspectorButtonAttribute(string MethodName)
	{
		/*
An exception occurred when decompiling this method (06002136)

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: 0x04002A91 RID: 10897
	[Token(Token = "0x4002A91")]
	public static float kDefaultButtonWidth;

	// Token: 0x04002A92 RID: 10898
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4002A92")]
	public readonly string MethodName;

	// Token: 0x04002A93 RID: 10899
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002A93")]
	private float _buttonWidth;
}
