Add v1.0.3.1
This commit is contained in:
172
Cpp2IL/Assembly-CSharp/UICombatDialogue.cs
Normal file
172
Cpp2IL/Assembly-CSharp/UICombatDialogue.cs
Normal file
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using DG.Tweening;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
// Token: 0x020002AA RID: 682
|
||||
[Token(Token = "0x20002AA")]
|
||||
[Serializable]
|
||||
public class UICombatDialogue
|
||||
{
|
||||
// Token: 0x060019E2 RID: 6626 RVA: 0x0003E3D4 File Offset: 0x0003C5D4
|
||||
[Token(Token = "0x60019E2")]
|
||||
[Address(RVA = "0x75FBA0", Offset = "0x75E9A0", VA = "0x18075FBA0")]
|
||||
public void Init()
|
||||
{
|
||||
Dictionary<CombatDialogueType, CombatDialogueData> combatDialogueData = Game.GetCombatDialogueData();
|
||||
this.dataMap = combatDialogueData;
|
||||
GameObject gameObject = this.canvasGroup.gameObject;
|
||||
int num = 0;
|
||||
gameObject.SetActive(num != 0);
|
||||
CanvasGroup canvasGroup = this.canvasGroup;
|
||||
int num2 = 0;
|
||||
canvasGroup.alpha = (float)num2;
|
||||
Sequence sequence = DOTween.Sequence();
|
||||
this.bossProcessor = sequence;
|
||||
Sequence sequence2 = DOTween.Sequence();
|
||||
this.partnerProcessor = sequence2;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060019E3 RID: 6627 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60019E3")]
|
||||
[Address(RVA = "0x75FE50", Offset = "0x75EC50", VA = "0x18075FE50")]
|
||||
public void PlayBossDialogue(CombatDialogueType key, Action nextAction)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060019E4 RID: 6628 RVA: 0x0003E444 File Offset: 0x0003C644
|
||||
[Token(Token = "0x60019E4")]
|
||||
[Address(RVA = "0x75FEE0", Offset = "0x75ECE0", VA = "0x18075FEE0")]
|
||||
public void PlayPartnerDialogue()
|
||||
{
|
||||
if (!this.bossProcessor.IsPlaying())
|
||||
{
|
||||
this.UpdateContent(CombatDialogueType.Stage03Cat);
|
||||
int num = 0;
|
||||
Tween textProcessor = this.GetTextProcessor(num);
|
||||
this.partnerProcessor = textProcessor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060019E5 RID: 6629 RVA: 0x0003E478 File Offset: 0x0003C678
|
||||
[Token(Token = "0x60019E5")]
|
||||
[Address(RVA = "0x75FC90", Offset = "0x75EA90", VA = "0x18075FC90")]
|
||||
public void Localize(GameFontPack fontPack)
|
||||
{
|
||||
Text text = this.combatText;
|
||||
Font light = fontPack.light;
|
||||
text.font = light;
|
||||
if (this.bossProcessor.IsPlaying())
|
||||
{
|
||||
GameLanguage language = Game.Config.gameSettings.language;
|
||||
Dictionary<CombatDialogueType, CombatDialogueData> dictionary = this.dataMap;
|
||||
Text text2 = this.combatText;
|
||||
CombatDialogueType combatDialogueType = this.bossDialogueKey;
|
||||
CombatDialogueData combatDialogueData = dictionary[combatDialogueType];
|
||||
int num = (int)language;
|
||||
string localizationContent = combatDialogueData.GetLocalizationContent(num);
|
||||
text2.text = localizationContent;
|
||||
}
|
||||
if (this.partnerProcessor.IsPlaying())
|
||||
{
|
||||
GameLanguage language2 = Game.Config.gameSettings.language;
|
||||
Dictionary<CombatDialogueType, CombatDialogueData> dictionary2 = this.dataMap;
|
||||
Text text3 = this.combatText;
|
||||
CombatDialogueData combatDialogueData2 = dictionary2[(uint)8];
|
||||
int num2 = (int)language2;
|
||||
string localizationContent2 = combatDialogueData2.GetLocalizationContent(num2);
|
||||
text3.text = localizationContent2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060019E6 RID: 6630 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60019E6")]
|
||||
[Address(RVA = "0x75FF30", Offset = "0x75ED30", VA = "0x18075FF30")]
|
||||
private void UpdateContent(CombatDialogueType key)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060019E7 RID: 6631 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60019E7")]
|
||||
[Address(RVA = "0x75F980", Offset = "0x75E780", VA = "0x18075F980")]
|
||||
private Tween GetTextProcessor(Action nextAction)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060019E8 RID: 6632 RVA: 0x0003E550 File Offset: 0x0003C750
|
||||
[Token(Token = "0x60019E8")]
|
||||
[Address(RVA = "0x75F940", Offset = "0x75E740", VA = "0x18075F940")]
|
||||
public void Dispose()
|
||||
{
|
||||
Tween tween = this.bossProcessor;
|
||||
if (tween != 0)
|
||||
{
|
||||
int num = 0;
|
||||
tween.Kill(num != 0);
|
||||
}
|
||||
Tween tween2 = this.partnerProcessor;
|
||||
if (tween2 != 0)
|
||||
{
|
||||
int num2 = 0;
|
||||
tween2.Kill(num2 != 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060019E9 RID: 6633 RVA: 0x0003E588 File Offset: 0x0003C788
|
||||
[Token(Token = "0x60019E9")]
|
||||
[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
|
||||
public UICombatDialogue()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400238A RID: 9098
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400238A")]
|
||||
[SerializeField]
|
||||
private CanvasGroup canvasGroup;
|
||||
|
||||
// Token: 0x0400238B RID: 9099
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400238B")]
|
||||
[SerializeField]
|
||||
private Image combatTextBg;
|
||||
|
||||
// Token: 0x0400238C RID: 9100
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400238C")]
|
||||
[SerializeField]
|
||||
private Text combatText;
|
||||
|
||||
// Token: 0x0400238D RID: 9101
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400238D")]
|
||||
[SerializeField]
|
||||
private AudioSource voicePlayer;
|
||||
|
||||
// Token: 0x0400238E RID: 9102
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400238E")]
|
||||
private Dictionary<CombatDialogueType, CombatDialogueData> dataMap;
|
||||
|
||||
// Token: 0x0400238F RID: 9103
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400238F")]
|
||||
private CombatDialogueType bossDialogueKey;
|
||||
|
||||
// Token: 0x04002390 RID: 9104
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002390")]
|
||||
private Tween bossProcessor;
|
||||
|
||||
// Token: 0x04002391 RID: 9105
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002391")]
|
||||
private Tween partnerProcessor;
|
||||
}
|
||||
Reference in New Issue
Block a user