using System;
using Cpp2IlInjected;
using MarsSDK;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002E3 RID: 739
[Token(Token = "0x20002E3")]
public class UIMsgBoxBase : GameCanvasBase
{
	// Token: 0x06001B7F RID: 7039 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B7F")]
	[Address(RVA = "0xE7AD70", Offset = "0xE79D70", VA = "0x180E7AD70", Slot = "11")]
	public override void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B80 RID: 7040 RVA: 0x00042FA4 File Offset: 0x000411A4
	[Token(Token = "0x6001B80")]
	[Address(RVA = "0xE7B270", Offset = "0xE7A270", VA = "0x180E7B270", Slot = "26")]
	protected virtual void SetNavigation()
	{
		int num = 0;
		int num2 = 0;
		UINavigationSetter uinavigationSetter = UINavigationSetter.Get((UINavigationMode)num, true, num2);
		UILabelHandler[] array = this.handlers;
		uinavigationSetter.Apply(array);
	}

	// Token: 0x06001B81 RID: 7041 RVA: 0x00042FD4 File Offset: 0x000411D4
	[Token(Token = "0x6001B81")]
	[Address(RVA = "0xE7ACA0", Offset = "0xE79CA0", VA = "0x180E7ACA0", Slot = "12")]
	protected override void Appear(Action completeHandler)
	{
		UILabelHandler[] array = this.handlers;
		UINavigator navigator = this.navigator;
		UILabelHandler uilabelHandler = array[0];
		navigator.SetDefaultHandler(uilabelHandler);
		GameObject gameObject = this.interactionIcon.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		Game.PlayCanvasSE(UICanvasSFX.MessageBox);
		base.Appear(completeHandler);
	}

	// Token: 0x06001B82 RID: 7042 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B82")]
	[Address(RVA = "0xE7AF60", Offset = "0xE79F60", VA = "0x180E7AF60", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B83 RID: 7043 RVA: 0x0004302C File Offset: 0x0004122C
	[Token(Token = "0x6001B83")]
	[Address(RVA = "0xE7B240", Offset = "0xE7A240", VA = "0x180E7B240", Slot = "27")]
	public virtual void SetContent(string content)
	{
		((ICanvasElement)this.content).GraphicUpdateComplete();
	}

	// Token: 0x06001B84 RID: 7044 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B84")]
	[Address(RVA = "0x563EF0", Offset = "0x562EF0", VA = "0x180563EF0", Slot = "28")]
	public virtual void SetTips(params string[] tips)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B85 RID: 7045 RVA: 0x0004304C File Offset: 0x0004124C
	[Token(Token = "0x6001B85")]
	[Address(RVA = "0xE7B0C0", Offset = "0xE7A0C0", VA = "0x180E7B0C0", Slot = "29")]
	protected virtual void OnHandlerSelected(UIHandlerBase handler)
	{
		if (!this.selectionIcon.gameObject.activeInHierarchy)
		{
			this.selectionIcon.gameObject.SetActive(true);
		}
		RectTransform rectTransform = this.selectionIcon;
		Vector2 anchoredPosition = handler.rectTransform.anchoredPosition;
		rectTransform.anchoredPosition = anchoredPosition;
	}

	// Token: 0x06001B86 RID: 7046 RVA: 0x000430A0 File Offset: 0x000412A0
	[Token(Token = "0x6001B86")]
	[Address(RVA = "0xE7B060", Offset = "0xE7A060", VA = "0x180E7B060", Slot = "30")]
	protected virtual void OnHandlerDeselected(UIHandlerBase handler)
	{
		if (this.selectionIcon.gameObject.activeInHierarchy)
		{
			GameObject gameObject = this.selectionIcon.gameObject;
			int num = 0;
			gameObject.SetActive(num != 0);
			return;
		}
	}

	// Token: 0x06001B87 RID: 7047 RVA: 0x000430DC File Offset: 0x000412DC
	[Token(Token = "0x6001B87")]
	[Address(RVA = "0xE7B160", Offset = "0xE7A160", VA = "0x180E7B160", Slot = "21")]
	public override void Submit()
	{
		UINavigator navigator = this.navigator;
		RectTransform rectTransform = this.interactionIcon;
		Vector2 anchoredPosition = navigator.currentHandler.rectTransform.anchoredPosition;
		rectTransform.anchoredPosition = anchoredPosition;
		this.interactionIcon.gameObject.SetActive(true);
		Game.PlayHandlerScaleEffect(this.navigator.currentHandler);
	}

	// Token: 0x06001B88 RID: 7048 RVA: 0x00043138 File Offset: 0x00041338
	[Token(Token = "0x6001B88")]
	[Address(RVA = "0xE7B160", Offset = "0xE7A160", VA = "0x180E7B160")]
	private void PerformSubmitEffect()
	{
		UINavigator navigator = this.navigator;
		RectTransform rectTransform = this.interactionIcon;
		Vector2 anchoredPosition = navigator.currentHandler.rectTransform.anchoredPosition;
		rectTransform.anchoredPosition = anchoredPosition;
		this.interactionIcon.gameObject.SetActive(true);
		Game.PlayHandlerScaleEffect(this.navigator.currentHandler);
	}

	// Token: 0x06001B89 RID: 7049 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B89")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0", Slot = "25")]
	public override void Localize(LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B8A RID: 7050 RVA: 0x00043194 File Offset: 0x00041394
	[Token(Token = "0x6001B8A")]
	[Address(RVA = "0x94D9C0", Offset = "0x94C9C0", VA = "0x18094D9C0")]
	public UIMsgBoxBase()
	{
	}

	// Token: 0x04002571 RID: 9585
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4002571")]
	[SerializeField]
	protected Text content;

	// Token: 0x04002572 RID: 9586
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4002572")]
	[SerializeField]
	protected Text tips;

	// Token: 0x04002573 RID: 9587
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002573")]
	[SerializeField]
	protected UILabelHandler[] handlers;

	// Token: 0x04002574 RID: 9588
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002574")]
	[SerializeField]
	protected RectTransform selectionIcon;

	// Token: 0x04002575 RID: 9589
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002575")]
	[SerializeField]
	protected RectTransform interactionIcon;

	// Token: 0x04002576 RID: 9590
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002576")]
	protected string[] _tips;
}
