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

// Token: 0x020002E0 RID: 736
public class UISkinIcon : MonoBehaviour
{
	// Token: 0x0600605A RID: 24666 RVA: 0x001855AC File Offset: 0x001837AC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595501, XrefRangeEnd = 595502, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Setup(int index, int currentSelection)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref currentSelection;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr_Setup_Public_Void_Int32_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600605B RID: 24667 RVA: 0x00185614 File Offset: 0x00183814
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 595512, RefRangeEnd = 595516, XrefRangeStart = 595502, XrefRangeEnd = 595512, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdatePosition(int currentSelection)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref currentSelection;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr_UpdatePosition_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600605C RID: 24668 RVA: 0x00185668 File Offset: 0x00183868
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595516, XrefRangeEnd = 595521, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateUnlockedState(bool unlocked)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref unlocked;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr_UpdateUnlockedState_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600605D RID: 24669 RVA: 0x001856BC File Offset: 0x001838BC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595521, XrefRangeEnd = 595532, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Slide(Sequence seq, int currentSkin, float duration)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(seq);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref currentSkin;
		ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref duration;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr_Slide_Public_Void_Sequence_Int32_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600605E RID: 24670 RVA: 0x0018573C File Offset: 0x0018393C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595532, XrefRangeEnd = 595540, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateScrollState()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr_UpdateScrollState_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600605F RID: 24671 RVA: 0x00185780 File Offset: 0x00183980
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UISkinIcon()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UISkinIcon.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006060 RID: 24672 RVA: 0x001857CC File Offset: 0x001839CC
	// Note: this type is marked as 'beforefieldinit'.
	static UISkinIcon()
	{
		Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UISkinIcon");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr);
		UISkinIcon.NativeFieldInfoPtr_index = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, "index");
		UISkinIcon.NativeFieldInfoPtr_root = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, "root");
		UISkinIcon.NativeFieldInfoPtr_icon = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, "icon");
		UISkinIcon.NativeFieldInfoPtr_questionMark = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, "questionMark");
		UISkinIcon.NativeFieldInfoPtr_maskSprite = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, "maskSprite");
		UISkinIcon.NativeMethodInfoPtr_Setup_Public_Void_Int32_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670223);
		UISkinIcon.NativeMethodInfoPtr_UpdatePosition_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670224);
		UISkinIcon.NativeMethodInfoPtr_UpdateUnlockedState_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670225);
		UISkinIcon.NativeMethodInfoPtr_Slide_Public_Void_Sequence_Int32_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670226);
		UISkinIcon.NativeMethodInfoPtr_UpdateScrollState_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670227);
		UISkinIcon.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100670228);
	}

	// Token: 0x06006061 RID: 24673 RVA: 0x0000351C File Offset: 0x0000171C
	public UISkinIcon(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700214B RID: 8523
	// (get) Token: 0x06006062 RID: 24674 RVA: 0x001858D8 File Offset: 0x00183AD8
	// (set) Token: 0x06006063 RID: 24675 RVA: 0x00185900 File Offset: 0x00183B00
	public unsafe int index
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_index);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_index)) = value;
		}
	}

	// Token: 0x1700214C RID: 8524
	// (get) Token: 0x06006064 RID: 24676 RVA: 0x00185924 File Offset: 0x00183B24
	// (set) Token: 0x06006065 RID: 24677 RVA: 0x00185958 File Offset: 0x00183B58
	public unsafe RectTransform root
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_root);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new RectTransform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_root), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700214D RID: 8525
	// (get) Token: 0x06006066 RID: 24678 RVA: 0x00185980 File Offset: 0x00183B80
	// (set) Token: 0x06006067 RID: 24679 RVA: 0x001859B4 File Offset: 0x00183BB4
	public unsafe Image icon
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_icon);
			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(UISkinIcon.NativeFieldInfoPtr_icon), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700214E RID: 8526
	// (get) Token: 0x06006068 RID: 24680 RVA: 0x001859DC File Offset: 0x00183BDC
	// (set) Token: 0x06006069 RID: 24681 RVA: 0x00185A10 File Offset: 0x00183C10
	public unsafe Text questionMark
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_questionMark);
			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(UISkinIcon.NativeFieldInfoPtr_questionMark), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700214F RID: 8527
	// (get) Token: 0x0600606A RID: 24682 RVA: 0x00185A38 File Offset: 0x00183C38
	// (set) Token: 0x0600606B RID: 24683 RVA: 0x00185A6C File Offset: 0x00183C6C
	public unsafe Sprite maskSprite
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_maskSprite);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Sprite(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UISkinIcon.NativeFieldInfoPtr_maskSprite), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04004017 RID: 16407
	private static readonly IntPtr NativeFieldInfoPtr_index;

	// Token: 0x04004018 RID: 16408
	private static readonly IntPtr NativeFieldInfoPtr_root;

	// Token: 0x04004019 RID: 16409
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x0400401A RID: 16410
	private static readonly IntPtr NativeFieldInfoPtr_questionMark;

	// Token: 0x0400401B RID: 16411
	private static readonly IntPtr NativeFieldInfoPtr_maskSprite;

	// Token: 0x0400401C RID: 16412
	private static readonly IntPtr NativeMethodInfoPtr_Setup_Public_Void_Int32_Int32_0;

	// Token: 0x0400401D RID: 16413
	private static readonly IntPtr NativeMethodInfoPtr_UpdatePosition_Public_Void_Int32_0;

	// Token: 0x0400401E RID: 16414
	private static readonly IntPtr NativeMethodInfoPtr_UpdateUnlockedState_Public_Void_Boolean_0;

	// Token: 0x0400401F RID: 16415
	private static readonly IntPtr NativeMethodInfoPtr_Slide_Public_Void_Sequence_Int32_Single_0;

	// Token: 0x04004020 RID: 16416
	private static readonly IntPtr NativeMethodInfoPtr_UpdateScrollState_Private_Void_0;

	// Token: 0x04004021 RID: 16417
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
