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

// Token: 0x02000324 RID: 804
public class UIItem : MonoBehaviour
{
	// Token: 0x06006642 RID: 26178 RVA: 0x0019D7C8 File Offset: 0x0019B9C8
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 599961, RefRangeEnd = 599962, XrefRangeStart = 599937, XrefRangeEnd = 599961, 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: 0x06006643 RID: 26179 RVA: 0x0019D80C File Offset: 0x0019BA0C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 599962, XrefRangeEnd = 599964, 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: 0x06006644 RID: 26180 RVA: 0x0019D868 File Offset: 0x0019BA68
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 599964, XrefRangeEnd = 599965, 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: 0x06006645 RID: 26181 RVA: 0x0019D8C4 File Offset: 0x0019BAC4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 599965, XrefRangeEnd = 599967, 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: 0x06006646 RID: 26182 RVA: 0x0019D920 File Offset: 0x0019BB20
	[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: 0x06006647 RID: 26183 RVA: 0x0019D974 File Offset: 0x0019BB74
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x06006648 RID: 26184 RVA: 0x0019D9C0 File Offset: 0x0019BBC0
	// 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, 100670695);
		UIItem.NativeMethodInfoPtr_SetItemSprite_Public_Void_Sprite_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670696);
		UIItem.NativeMethodInfoPtr_SetTextNumber_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670697);
		UIItem.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670698);
		UIItem.NativeMethodInfoPtr_SetColor_Public_Void_Color_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670699);
		UIItem.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIItem>.NativeClassPtr, 100670700);
	}

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

	// Token: 0x17002337 RID: 9015
	// (get) Token: 0x0600664A RID: 26186 RVA: 0x0019DAA4 File Offset: 0x0019BCA4
	// (set) Token: 0x0600664B RID: 26187 RVA: 0x0019DAD8 File Offset: 0x0019BCD8
	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: 0x17002338 RID: 9016
	// (get) Token: 0x0600664C RID: 26188 RVA: 0x0019DB00 File Offset: 0x0019BD00
	// (set) Token: 0x0600664D RID: 26189 RVA: 0x0019DB34 File Offset: 0x0019BD34
	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: 0x17002339 RID: 9017
	// (get) Token: 0x0600664E RID: 26190 RVA: 0x0019DB5C File Offset: 0x0019BD5C
	// (set) Token: 0x0600664F RID: 26191 RVA: 0x0019DB90 File Offset: 0x0019BD90
	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: 0x040043E7 RID: 17383
	private static readonly IntPtr NativeFieldInfoPtr_g_ItemBG;

	// Token: 0x040043E8 RID: 17384
	private static readonly IntPtr NativeFieldInfoPtr_g_ItemImg;

	// Token: 0x040043E9 RID: 17385
	private static readonly IntPtr NativeFieldInfoPtr_g_TextNum;

	// Token: 0x040043EA RID: 17386
	private static readonly IntPtr NativeMethodInfoPtr_InitData_Public_Void_0;

	// Token: 0x040043EB RID: 17387
	private static readonly IntPtr NativeMethodInfoPtr_SetItemSprite_Public_Void_Sprite_0;

	// Token: 0x040043EC RID: 17388
	private static readonly IntPtr NativeMethodInfoPtr_SetTextNumber_Public_Void_String_0;

	// Token: 0x040043ED RID: 17389
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x040043EE RID: 17390
	private static readonly IntPtr NativeMethodInfoPtr_SetColor_Public_Void_Color_0;

	// Token: 0x040043EF RID: 17391
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
