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

// Token: 0x02000298 RID: 664
[Token(Token = "0x2000298")]
public class UIMsgBoxBase : GameCanvasBase
{
	// Token: 0x06001952 RID: 6482 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001952")]
	[Address(RVA = "0x1021C60", Offset = "0x1020A60", VA = "0x181021C60", Slot = "11")]
	public override void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001953 RID: 6483 RVA: 0x0003D5B8 File Offset: 0x0003B7B8
	[Token(Token = "0x6001953")]
	[Address(RVA = "0x1022160", Offset = "0x1020F60", VA = "0x181022160", 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: 0x06001954 RID: 6484 RVA: 0x0003D5E8 File Offset: 0x0003B7E8
	[Token(Token = "0x6001954")]
	[Address(RVA = "0x1021B90", Offset = "0x1020990", VA = "0x181021B90", 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: 0x06001955 RID: 6485 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001955")]
	[Address(RVA = "0x1021E50", Offset = "0x1020C50", VA = "0x181021E50", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001956 RID: 6486 RVA: 0x0003D640 File Offset: 0x0003B840
	[Token(Token = "0x6001956")]
	[Address(RVA = "0x1022130", Offset = "0x1020F30", VA = "0x181022130", Slot = "27")]
	public virtual void SetContent(string content)
	{
		bool dtdValidation = ((IDtdParserAdapterWithValidation)this.content).DtdValidation;
	}

	// Token: 0x06001957 RID: 6487 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001957")]
	[Address(RVA = "0x538C10", Offset = "0x537A10", VA = "0x180538C10", Slot = "28")]
	public virtual void SetTips(params string[] tips)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001958 RID: 6488 RVA: 0x0003D660 File Offset: 0x0003B860
	[Token(Token = "0x6001958")]
	[Address(RVA = "0x1021FB0", Offset = "0x1020DB0", VA = "0x181021FB0", 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: 0x06001959 RID: 6489 RVA: 0x0003D6B4 File Offset: 0x0003B8B4
	[Token(Token = "0x6001959")]
	[Address(RVA = "0x1021F50", Offset = "0x1020D50", VA = "0x181021F50", 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: 0x0600195A RID: 6490 RVA: 0x0003D6F0 File Offset: 0x0003B8F0
	[Token(Token = "0x600195A")]
	[Address(RVA = "0x1022050", Offset = "0x1020E50", VA = "0x181022050", 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: 0x0600195B RID: 6491 RVA: 0x0003D74C File Offset: 0x0003B94C
	[Token(Token = "0x600195B")]
	[Address(RVA = "0x1022050", Offset = "0x1020E50", VA = "0x181022050")]
	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: 0x0600195C RID: 6492 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600195C")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "25")]
	public override void Localize(LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600195D RID: 6493 RVA: 0x0003D7A8 File Offset: 0x0003B9A8
	[Token(Token = "0x600195D")]
	[Address(RVA = "0x769BF0", Offset = "0x7689F0", VA = "0x180769BF0")]
	public UIMsgBoxBase()
	{
	}

	// Token: 0x0400231D RID: 8989
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400231D")]
	[SerializeField]
	protected Text content;

	// Token: 0x0400231E RID: 8990
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x400231E")]
	[SerializeField]
	protected Text tips;

	// Token: 0x0400231F RID: 8991
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400231F")]
	[SerializeField]
	protected UILabelHandler[] handlers;

	// Token: 0x04002320 RID: 8992
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002320")]
	[SerializeField]
	protected RectTransform selectionIcon;

	// Token: 0x04002321 RID: 8993
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002321")]
	[SerializeField]
	protected RectTransform interactionIcon;

	// Token: 0x04002322 RID: 8994
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002322")]
	protected string[] _tips;
}
