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

// Token: 0x020002DD RID: 733
public class UIDialogueLabelHandler : UIHandlerBase
{
	// Token: 0x0600602A RID: 24618 RVA: 0x00184714 File Offset: 0x00182914
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595280, XrefRangeEnd = 595284, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnSelect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIDialogueLabelHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600602B RID: 24619 RVA: 0x00184764 File Offset: 0x00182964
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595284, XrefRangeEnd = 595288, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnDeselect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIDialogueLabelHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600602C RID: 24620 RVA: 0x001847B4 File Offset: 0x001829B4
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 595308, RefRangeEnd = 595310, XrefRangeStart = 595288, XrefRangeEnd = 595308, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateScale(float scale)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref scale;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600602D RID: 24621 RVA: 0x00184808 File Offset: 0x00182A08
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 595313, RefRangeEnd = 595316, XrefRangeStart = 595310, XrefRangeEnd = 595313, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabelText(string value)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(value);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_SetLabelText_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600602E RID: 24622 RVA: 0x00184864 File Offset: 0x00182A64
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595316, XrefRangeEnd = 595317, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetLabelText()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_GetLabelText_Public_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return IL2CPP.Il2CppStringToManaged(intPtr);
	}

	// Token: 0x0600602F RID: 24623 RVA: 0x001848B0 File Offset: 0x00182AB0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595317, XrefRangeEnd = 595319, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabelImage(Sprite value)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(value);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_SetLabelImage_Public_Void_Sprite_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06006030 RID: 24624 RVA: 0x0018490C File Offset: 0x00182B0C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595319, XrefRangeEnd = 595321, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetFont(Font font)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(font);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_SetFont_Public_Void_Font_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06006031 RID: 24625 RVA: 0x00184968 File Offset: 0x00182B68
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595321, XrefRangeEnd = 595323, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe Vector2 GetPosition()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr_GetPosition_Public_Vector2_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

	// Token: 0x06006032 RID: 24626 RVA: 0x001849B8 File Offset: 0x00182BB8
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIDialogueLabelHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIDialogueLabelHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006033 RID: 24627 RVA: 0x00184A04 File Offset: 0x00182C04
	// Note: this type is marked as 'beforefieldinit'.
	static UIDialogueLabelHandler()
	{
		Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIDialogueLabelHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr);
		UIDialogueLabelHandler.NativeFieldInfoPtr_labelImage = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, "labelImage");
		UIDialogueLabelHandler.NativeFieldInfoPtr_labelText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, "labelText");
		UIDialogueLabelHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670199);
		UIDialogueLabelHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670200);
		UIDialogueLabelHandler.NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670201);
		UIDialogueLabelHandler.NativeMethodInfoPtr_SetLabelText_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670202);
		UIDialogueLabelHandler.NativeMethodInfoPtr_GetLabelText_Public_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670203);
		UIDialogueLabelHandler.NativeMethodInfoPtr_SetLabelImage_Public_Void_Sprite_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670204);
		UIDialogueLabelHandler.NativeMethodInfoPtr_SetFont_Public_Void_Font_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670205);
		UIDialogueLabelHandler.NativeMethodInfoPtr_GetPosition_Public_Vector2_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670206);
		UIDialogueLabelHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIDialogueLabelHandler>.NativeClassPtr, 100670207);
	}

	// Token: 0x06006034 RID: 24628 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UIDialogueLabelHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002142 RID: 8514
	// (get) Token: 0x06006035 RID: 24629 RVA: 0x00184B10 File Offset: 0x00182D10
	// (set) Token: 0x06006036 RID: 24630 RVA: 0x00184B44 File Offset: 0x00182D44
	public unsafe Image labelImage
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIDialogueLabelHandler.NativeFieldInfoPtr_labelImage);
			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(UIDialogueLabelHandler.NativeFieldInfoPtr_labelImage), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002143 RID: 8515
	// (get) Token: 0x06006037 RID: 24631 RVA: 0x00184B6C File Offset: 0x00182D6C
	// (set) Token: 0x06006038 RID: 24632 RVA: 0x00184BA0 File Offset: 0x00182DA0
	public unsafe Text labelText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIDialogueLabelHandler.NativeFieldInfoPtr_labelText);
			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(UIDialogueLabelHandler.NativeFieldInfoPtr_labelText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003FF6 RID: 16374
	private static readonly IntPtr NativeFieldInfoPtr_labelImage;

	// Token: 0x04003FF7 RID: 16375
	private static readonly IntPtr NativeFieldInfoPtr_labelText;

	// Token: 0x04003FF8 RID: 16376
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003FF9 RID: 16377
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003FFA RID: 16378
	private static readonly IntPtr NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0;

	// Token: 0x04003FFB RID: 16379
	private static readonly IntPtr NativeMethodInfoPtr_SetLabelText_Public_Void_String_0;

	// Token: 0x04003FFC RID: 16380
	private static readonly IntPtr NativeMethodInfoPtr_GetLabelText_Public_String_0;

	// Token: 0x04003FFD RID: 16381
	private static readonly IntPtr NativeMethodInfoPtr_SetLabelImage_Public_Void_Sprite_0;

	// Token: 0x04003FFE RID: 16382
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_Font_0;

	// Token: 0x04003FFF RID: 16383
	private static readonly IntPtr NativeMethodInfoPtr_GetPosition_Public_Vector2_0;

	// Token: 0x04004000 RID: 16384
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
