using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002D7 RID: 727
public class UIItem : MonoBehaviour
{
	// Token: 0x06005F6A RID: 24426 RVA: 0x00181160 File Offset: 0x0017F360
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 569413, RefRangeEnd = 569414, XrefRangeStart = 569389, XrefRangeEnd = 569413, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void InitData()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr_InitData_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005F6B RID: 24427 RVA: 0x001811A4 File Offset: 0x0017F3A4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569414, XrefRangeEnd = 569416, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetItemSprite(Sprite ItemSprite)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(ItemSprite);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr_SetItemSprite_Public_Void_Sprite_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F6C RID: 24428 RVA: 0x00181200 File Offset: 0x0017F400
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569416, XrefRangeEnd = 569421, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetTextNumber(string TextNumber)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(TextNumber);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr_SetTextNumber_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F6D RID: 24429 RVA: 0x0018125C File Offset: 0x0017F45C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569421, XrefRangeEnd = 569423, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetFont(GameFontPack fontPack)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(fontPack);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F6E RID: 24430 RVA: 0x001812B8 File Offset: 0x0017F4B8
	[CallerCount(0)]
	public unsafe void SetColor(Color Col)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref Col;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr_SetColor_Public_Void_Color_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F6F RID: 24431 RVA: 0x0018130C File Offset: 0x0017F50C
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIItem()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIItem>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIItem.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005F70 RID: 24432 RVA: 0x00181358 File Offset: 0x0017F558
	// Note: this type is marked as 'beforefieldinit'.
	static UIItem()
	{
		Il2CppClassPointerStore<UIItem>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIItem");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIItem>.NativeClassPtr);
		UIItem.NativeFieldInfoPtr_g_ItemBG = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIItem>.NativeClassPtr, "g_ItemBG");
		UIItem.NativeFieldInfoPtr_g_ItemImg = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIItem>.NativeClassPtr, "g_ItemImg");
		UIItem.NativeFieldInfoPtr_g_TextNum = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIItem>.NativeClassPtr, "g_TextNum");
		UIItem.NativeMethodInfoPtr_InitData_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670119);
		UIItem.NativeMethodInfoPtr_SetItemSprite_Public_Void_Sprite_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670120);
		UIItem.NativeMethodInfoPtr_SetTextNumber_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670121);
		UIItem.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670122);
		UIItem.NativeMethodInfoPtr_SetColor_Public_Void_Color_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670123);
		UIItem.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670124);
	}

	// Token: 0x06005F71 RID: 24433 RVA: 0x0000351C File Offset: 0x0000171C
	public UIItem(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700211D RID: 8477
	// (get) Token: 0x06005F72 RID: 24434 RVA: 0x0018143C File Offset: 0x0017F63C
	// (set) Token: 0x06005F73 RID: 24435 RVA: 0x00181470 File Offset: 0x0017F670
	public unsafe Image g_ItemBG
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_ItemBG);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Image(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_ItemBG), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700211E RID: 8478
	// (get) Token: 0x06005F74 RID: 24436 RVA: 0x00181498 File Offset: 0x0017F698
	// (set) Token: 0x06005F75 RID: 24437 RVA: 0x001814CC File Offset: 0x0017F6CC
	public unsafe Image g_ItemImg
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_ItemImg);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Image(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_ItemImg), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700211F RID: 8479
	// (get) Token: 0x06005F76 RID: 24438 RVA: 0x001814F4 File Offset: 0x0017F6F4
	// (set) Token: 0x06005F77 RID: 24439 RVA: 0x00181528 File Offset: 0x0017F728
	public unsafe Text g_TextNum
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_TextNum);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIItem.NativeFieldInfoPtr_g_TextNum), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003F37 RID: 16183
	private static readonly IntPtr NativeFieldInfoPtr_g_ItemBG;

	// Token: 0x04003F38 RID: 16184
	private static readonly IntPtr NativeFieldInfoPtr_g_ItemImg;

	// Token: 0x04003F39 RID: 16185
	private static readonly IntPtr NativeFieldInfoPtr_g_TextNum;

	// Token: 0x04003F3A RID: 16186
	private static readonly IntPtr NativeMethodInfoPtr_InitData_Public_Void_0;

	// Token: 0x04003F3B RID: 16187
	private static readonly IntPtr NativeMethodInfoPtr_SetItemSprite_Public_Void_Sprite_0;

	// Token: 0x04003F3C RID: 16188
	private static readonly IntPtr NativeMethodInfoPtr_SetTextNumber_Public_Void_String_0;

	// Token: 0x04003F3D RID: 16189
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x04003F3E RID: 16190
	private static readonly IntPtr NativeMethodInfoPtr_SetColor_Public_Void_Color_0;

	// Token: 0x04003F3F RID: 16191
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
