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

// Token: 0x02000295 RID: 661
public class UISkinIcon : MonoBehaviour
{
	// Token: 0x060059E2 RID: 23010 RVA: 0x0016A650 File Offset: 0x00168850
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565402, XrefRangeEnd = 565403, 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: 0x060059E3 RID: 23011 RVA: 0x0016A6B8 File Offset: 0x001688B8
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 565413, RefRangeEnd = 565417, XrefRangeStart = 565403, XrefRangeEnd = 565413, 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: 0x060059E4 RID: 23012 RVA: 0x0016A70C File Offset: 0x0016890C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565417, XrefRangeEnd = 565422, 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: 0x060059E5 RID: 23013 RVA: 0x0016A760 File Offset: 0x00168960
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565422, XrefRangeEnd = 565433, 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: 0x060059E6 RID: 23014 RVA: 0x0016A7E0 File Offset: 0x001689E0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565433, XrefRangeEnd = 565441, 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: 0x060059E7 RID: 23015 RVA: 0x0016A824 File Offset: 0x00168A24
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x060059E8 RID: 23016 RVA: 0x0016A870 File Offset: 0x00168A70
	// 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, 100669667);
		UISkinIcon.NativeMethodInfoPtr_UpdatePosition_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100669668);
		UISkinIcon.NativeMethodInfoPtr_UpdateUnlockedState_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100669669);
		UISkinIcon.NativeMethodInfoPtr_Slide_Public_Void_Sequence_Int32_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100669670);
		UISkinIcon.NativeMethodInfoPtr_UpdateScrollState_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100669671);
		UISkinIcon.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UISkinIcon>.NativeClassPtr, 100669672);
	}

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

	// Token: 0x17001F57 RID: 8023
	// (get) Token: 0x060059EA RID: 23018 RVA: 0x0016A97C File Offset: 0x00168B7C
	// (set) Token: 0x060059EB RID: 23019 RVA: 0x0016A9A4 File Offset: 0x00168BA4
	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: 0x17001F58 RID: 8024
	// (get) Token: 0x060059EC RID: 23020 RVA: 0x0016A9C8 File Offset: 0x00168BC8
	// (set) Token: 0x060059ED RID: 23021 RVA: 0x0016A9FC File Offset: 0x00168BFC
	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: 0x17001F59 RID: 8025
	// (get) Token: 0x060059EE RID: 23022 RVA: 0x0016AA24 File Offset: 0x00168C24
	// (set) Token: 0x060059EF RID: 23023 RVA: 0x0016AA58 File Offset: 0x00168C58
	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: 0x17001F5A RID: 8026
	// (get) Token: 0x060059F0 RID: 23024 RVA: 0x0016AA80 File Offset: 0x00168C80
	// (set) Token: 0x060059F1 RID: 23025 RVA: 0x0016AAB4 File Offset: 0x00168CB4
	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: 0x17001F5B RID: 8027
	// (get) Token: 0x060059F2 RID: 23026 RVA: 0x0016AADC File Offset: 0x00168CDC
	// (set) Token: 0x060059F3 RID: 23027 RVA: 0x0016AB10 File Offset: 0x00168D10
	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: 0x04003BA2 RID: 15266
	private static readonly IntPtr NativeFieldInfoPtr_index;

	// Token: 0x04003BA3 RID: 15267
	private static readonly IntPtr NativeFieldInfoPtr_root;

	// Token: 0x04003BA4 RID: 15268
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x04003BA5 RID: 15269
	private static readonly IntPtr NativeFieldInfoPtr_questionMark;

	// Token: 0x04003BA6 RID: 15270
	private static readonly IntPtr NativeFieldInfoPtr_maskSprite;

	// Token: 0x04003BA7 RID: 15271
	private static readonly IntPtr NativeMethodInfoPtr_Setup_Public_Void_Int32_Int32_0;

	// Token: 0x04003BA8 RID: 15272
	private static readonly IntPtr NativeMethodInfoPtr_UpdatePosition_Public_Void_Int32_0;

	// Token: 0x04003BA9 RID: 15273
	private static readonly IntPtr NativeMethodInfoPtr_UpdateUnlockedState_Public_Void_Boolean_0;

	// Token: 0x04003BAA RID: 15274
	private static readonly IntPtr NativeMethodInfoPtr_Slide_Public_Void_Sequence_Int32_Single_0;

	// Token: 0x04003BAB RID: 15275
	private static readonly IntPtr NativeMethodInfoPtr_UpdateScrollState_Private_Void_0;

	// Token: 0x04003BAC RID: 15276
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
