scripts
This commit is contained in:
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Video;
|
||||
|
||||
// Token: 0x02000078 RID: 120
|
||||
[Token(Token = "0x2000078")]
|
||||
[StructLayout(3)]
|
||||
public class YoutubeBulletinBoardUI : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06000361 RID: 865 RVA: 0x000110C0 File Offset: 0x0000F2C0
|
||||
[Token(Token = "0x6000361")]
|
||||
[Address(RVA = "0x2086030", Offset = "0x2084A30", VA = "0x182086030")]
|
||||
private void Start()
|
||||
{
|
||||
this.MKBLJJGJAOH();
|
||||
ActionEvent peajpkonkhp = AAHIIPOCKMB.PEAJPKONKHP;
|
||||
Action action = new Action(this.MKBLJJGJAOH);
|
||||
AAHIIPOCKMB.PEAJPKONKHP = peajpkonkhp + action;
|
||||
}
|
||||
|
||||
// Token: 0x06000362 RID: 866 RVA: 0x000110F4 File Offset: 0x0000F2F4
|
||||
[Token(Token = "0x6000362")]
|
||||
[Address(RVA = "0x2085EE0", Offset = "0x20848E0", VA = "0x182085EE0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
ActionEvent peajpkonkhp = AAHIIPOCKMB.PEAJPKONKHP;
|
||||
Action action = new Action(this.MKBLJJGJAOH);
|
||||
AAHIIPOCKMB.PEAJPKONKHP = peajpkonkhp - action;
|
||||
}
|
||||
|
||||
// Token: 0x06000363 RID: 867 RVA: 0x00011120 File Offset: 0x0000F320
|
||||
[Token(Token = "0x6000363")]
|
||||
[Address(RVA = "0x2085960", Offset = "0x2084360", VA = "0x182085960")]
|
||||
private void MKBLJJGJAOH()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (this.videoPlayer.isPlaying)
|
||||
{
|
||||
this.videoPlayer.Stop();
|
||||
}
|
||||
BulletinBoardController bulletinBoardController = this.bulletinBoardController;
|
||||
int num2 = 0;
|
||||
bulletinBoardController.ShowVisualLayer((BulletinBoardVisualLayer.BNGKNAAJAIA)num2);
|
||||
Coroutine cmmldclmlnb = this.CMMLDCLMLNB;
|
||||
if (cmmldclmlnb != 0)
|
||||
{
|
||||
base.StopCoroutine(cmmldclmlnb);
|
||||
this.CMMLDCLMLNB = num;
|
||||
}
|
||||
YoutubeBulletinCard[] array = this.LHEIAHOIKIO.ToArray();
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
YoutubeBulletinCard youtubeBulletinCard = array[num];
|
||||
int num3 = 0;
|
||||
if (youtubeBulletinCard != num3)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(youtubeBulletinCard.gameObject);
|
||||
}
|
||||
num++;
|
||||
}
|
||||
this.LHEIAHOIKIO.Clear();
|
||||
AAHIIPOCKMB.JFIKDPALHOL <GLLDHEBBENC>k__BackingField = AAHIIPOCKMB.<GLLDHEBBENC>k__BackingField;
|
||||
if (<GLLDHEBBENC>k__BackingField == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
List<AAHIIPOCKMB.PDLIPLHCJDD> <FJNELIOMIMD>k__BackingField = <GLLDHEBBENC>k__BackingField.<FJNELIOMIMD>k__BackingField;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
IEnumerable<AAHIIPOCKMB.PDLIPLHCJDD> enumerable = EnumerableExt.SkipTake<AAHIIPOCKMB.PDLIPLHCJDD>(num4, num5, 3);
|
||||
if (enumerable != 0)
|
||||
{
|
||||
if (num >= enumerable)
|
||||
{
|
||||
goto IL_D7;
|
||||
}
|
||||
num += num;
|
||||
if (num != enumerable)
|
||||
{
|
||||
num++;
|
||||
goto IL_D7;
|
||||
}
|
||||
IL_13C:
|
||||
YoutubeBulletinCard youtubeBulletinCard2;
|
||||
youtubeBulletinCard2 += youtubeBulletinCard2;
|
||||
goto IL_143;
|
||||
IL_D7:
|
||||
YoutubeBulletinCard youtubeBulletinCard3 = this.cardPrefab;
|
||||
Transform transform = this.contentRoot;
|
||||
int num6 = 0;
|
||||
youtubeBulletinCard2 = global::UnityEngine.Object.Instantiate<YoutubeBulletinCard>(youtubeBulletinCard3, transform, num6 != 0);
|
||||
Transform transform2 = youtubeBulletinCard2.transform;
|
||||
int num7 = 0;
|
||||
Vector3 one = Vector3.one;
|
||||
transform2.localScale = num7;
|
||||
Transform transform3 = youtubeBulletinCard2.transform;
|
||||
int num8 = 0;
|
||||
Quaternion identity = Quaternion.identity;
|
||||
transform3.localRotation = num8;
|
||||
this.LHEIAHOIKIO.Add(youtubeBulletinCard2);
|
||||
goto IL_13C;
|
||||
}
|
||||
IL_143:
|
||||
if (enumerable != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
BulletinBoardController bulletinBoardController2 = this.bulletinBoardController;
|
||||
GameObject gameObject = this.contentRoot.gameObject;
|
||||
bulletinBoardController2.SetupButtons(gameObject);
|
||||
}
|
||||
|
||||
// Token: 0x06000364 RID: 868 RVA: 0x000112A4 File Offset: 0x0000F4A4
|
||||
[Token(Token = "0x6000364")]
|
||||
[Address(RVA = "0x2085FA0", Offset = "0x20849A0", VA = "0x182085FA0")]
|
||||
public void PlayYoutubeCard(YoutubeBulletinCard DCLECJEHOBC)
|
||||
{
|
||||
if (this.CMMLDCLMLNB == (ulong)0L)
|
||||
{
|
||||
YoutubeBulletinBoardUI.MACPGINIMJD macpginimjd;
|
||||
macpginimjd.System.IDisposable.Dispose();
|
||||
macpginimjd.<>1__state = (int)((ulong)0L);
|
||||
macpginimjd.<>4__this = this;
|
||||
macpginimjd.youtubeBulletinCard = DCLECJEHOBC;
|
||||
Coroutine coroutine = base.StartCoroutine(macpginimjd);
|
||||
this.CMMLDCLMLNB = coroutine;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000365 RID: 869 RVA: 0x000112E8 File Offset: 0x0000F4E8
|
||||
[Token(Token = "0x6000365")]
|
||||
[Address(RVA = "0x20858F0", Offset = "0x20842F0", VA = "0x1820858F0")]
|
||||
private IEnumerator CHCACEKHBEN(YoutubeBulletinCard DCLECJEHOBC)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06000365)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator YoutubeBulletinBoardUI::CHCACEKHBEN(YoutubeBulletinCard)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
call:void(MACPGINIMJD::System.IDisposable.Dispose, ldloc:MACPGINIMJD(var_0))
|
||||
stfld:YoutubeBulletinBoardUI(MACPGINIMJD::<>4__this, ldloc:MACPGINIMJD(var_0), ldloc:YoutubeBulletinBoardUI(this))
|
||||
stfld:int32(MACPGINIMJD::<>1__state, ldloc:MACPGINIMJD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
||||
stfld:YoutubeBulletinCard(MACPGINIMJD::youtubeBulletinCard, ldloc:MACPGINIMJD(var_0), ldloc:YoutubeBulletinCard(DCLECJEHOBC))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06000366 RID: 870 RVA: 0x00011314 File Offset: 0x0000F514
|
||||
[Token(Token = "0x6000366")]
|
||||
[Address(RVA = "0x2085880", Offset = "0x2084280", VA = "0x182085880")]
|
||||
public void Button_CloseVideoPlayer()
|
||||
{
|
||||
if (this.videoPlayer.isPlaying)
|
||||
{
|
||||
this.videoPlayer.Stop();
|
||||
}
|
||||
BulletinBoardController bulletinBoardController = this.bulletinBoardController;
|
||||
int num = 0;
|
||||
bulletinBoardController.ShowVisualLayer((BulletinBoardVisualLayer.BNGKNAAJAIA)num);
|
||||
Coroutine cmmldclmlnb = this.CMMLDCLMLNB;
|
||||
if (cmmldclmlnb != 0)
|
||||
{
|
||||
base.StopCoroutine(cmmldclmlnb);
|
||||
this.CMMLDCLMLNB = (ulong)0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000367 RID: 871 RVA: 0x0001136C File Offset: 0x0000F56C
|
||||
[Token(Token = "0x6000367")]
|
||||
[Address(RVA = "0x20860F0", Offset = "0x2084AF0", VA = "0x1820860F0")]
|
||||
public YoutubeBulletinBoardUI()
|
||||
{
|
||||
List<YoutubeBulletinCard> list = new List();
|
||||
this.LHEIAHOIKIO = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x040002F5 RID: 757
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40002F5")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Parent, false, false)]
|
||||
private BulletinBoardController bulletinBoardController;
|
||||
|
||||
// Token: 0x040002F6 RID: 758
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40002F6")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Children, false, false)]
|
||||
private VideoPlayer videoPlayer;
|
||||
|
||||
// Token: 0x040002F7 RID: 759
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40002F7")]
|
||||
[SerializeField]
|
||||
private MeshRenderer largeVideoRenderer;
|
||||
|
||||
// Token: 0x040002F8 RID: 760
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40002F8")]
|
||||
[SerializeField]
|
||||
private GameObject loadingVisual;
|
||||
|
||||
// Token: 0x040002F9 RID: 761
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40002F9")]
|
||||
[SerializeField]
|
||||
private Transform contentRoot;
|
||||
|
||||
// Token: 0x040002FA RID: 762
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40002FA")]
|
||||
[SerializeField]
|
||||
private YoutubeBulletinCard cardPrefab;
|
||||
|
||||
// Token: 0x040002FB RID: 763
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40002FB")]
|
||||
private List<YoutubeBulletinCard> LHEIAHOIKIO;
|
||||
|
||||
// Token: 0x040002FC RID: 764
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40002FC")]
|
||||
private Coroutine CMMLDCLMLNB;
|
||||
}
|
||||
Reference in New Issue
Block a user