oh dear
This commit is contained in:
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using AGUI.StackedUI;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.UI;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000042 RID: 66
|
||||
[Token(Token = "0x2000042")]
|
||||
public class BulletinBoardController : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600020A RID: 522 RVA: 0x0000B354 File Offset: 0x00009554
|
||||
[Token(Token = "0x600020A")]
|
||||
[Address(RVA = "0xA0FF70", Offset = "0xA0ED70", VA = "0x180A0FF70")]
|
||||
private void Awake()
|
||||
{
|
||||
BulletinBoardVisualLayer[] componentsInChildren = base.GetComponentsInChildren<BulletinBoardVisualLayer>(true);
|
||||
this.JCLMMMOFEJI = componentsInChildren;
|
||||
}
|
||||
|
||||
// Token: 0x0600020B RID: 523 RVA: 0x0000B370 File Offset: 0x00009570
|
||||
[Token(Token = "0x600020B")]
|
||||
[Address(RVA = "0xA10200", Offset = "0xA0F000", VA = "0x180A10200")]
|
||||
private void Start()
|
||||
{
|
||||
Canvas[] componentsInChildren = base.GetComponentsInChildren<Canvas>(true);
|
||||
int num = 0;
|
||||
int length = componentsInChildren.Length;
|
||||
if (num < length)
|
||||
{
|
||||
UIInputModule instance = UIInputModule.Instance;
|
||||
Canvas canvas = componentsInChildren[num];
|
||||
Camera <MCLKPPFJMIH>k__BackingField = instance.<MCLKPPFJMIH>k__BackingField;
|
||||
canvas.worldCamera = <MCLKPPFJMIH>k__BackingField;
|
||||
num++;
|
||||
}
|
||||
if (this.ugcObjects != num && !EIMGAFPPJFD.AFFHLKBCIGM())
|
||||
{
|
||||
GameObject[] array = this.ugcObjects;
|
||||
if (num < array.Length)
|
||||
{
|
||||
GameObject gameObject = array[num];
|
||||
int num2 = 0;
|
||||
if (gameObject != num2)
|
||||
{
|
||||
GameObject gameObject2 = this.ugcObjects[num];
|
||||
int num3 = 0;
|
||||
gameObject2.SetActive(num3 != 0);
|
||||
}
|
||||
GameObject[] array2 = this.ugcObjects;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
GameObject gameObject3 = base.gameObject;
|
||||
this.SetupButtons(gameObject3);
|
||||
}
|
||||
|
||||
// Token: 0x0600020C RID: 524 RVA: 0x0000B434 File Offset: 0x00009634
|
||||
[Token(Token = "0x600020C")]
|
||||
[Address(RVA = "0xA0FFB0", Offset = "0xA0EDB0", VA = "0x180A0FFB0")]
|
||||
public void SetupButtons(GameObject DFEIOJDNOGD)
|
||||
{
|
||||
Button3DBase[] componentsInChildren = DFEIOJDNOGD.GetComponentsInChildren<Button3DBase>(true);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
int length = componentsInChildren.Length;
|
||||
if (num < length)
|
||||
{
|
||||
Button3DBase button3DBase = componentsInChildren[num2];
|
||||
RecRoomAudioClip recRoomAudioClip = this.buttonDownAudio;
|
||||
button3DBase.ButtonDownAudio = recRoomAudioClip;
|
||||
RecRoomAudioClip recRoomAudioClip2 = this.buttonUpAudio;
|
||||
button3DBase.ButtonUpAudio = recRoomAudioClip2;
|
||||
CustomUIMask[] componentsInChildren2 = button3DBase.GetComponentsInChildren<CustomUIMask>(true);
|
||||
int num3 = 0;
|
||||
if (num3 < componentsInChildren2.Length)
|
||||
{
|
||||
componentsInChildren2[num3].SetStencilToWorldSpace();
|
||||
num3++;
|
||||
}
|
||||
MeshRenderer[] componentsInChildren3 = button3DBase.GetComponentsInChildren<MeshRenderer>(true);
|
||||
int num4 = 0;
|
||||
if (num4 < componentsInChildren3.Length)
|
||||
{
|
||||
MeshRenderer meshRenderer = componentsInChildren3[num4];
|
||||
Material[] sharedMaterialArray = meshRenderer.GetSharedMaterialArray();
|
||||
ButtonUIMaskWriter buttonUIMaskWriter = meshRenderer.gameObject.AddComponent<ButtonUIMaskWriter>();
|
||||
num4++;
|
||||
}
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600020D RID: 525 RVA: 0x0000B4FC File Offset: 0x000096FC
|
||||
[Token(Token = "0x600020D")]
|
||||
[Address(RVA = "0xA10170", Offset = "0xA0EF70", VA = "0x180A10170")]
|
||||
public void ShowVisualLayer(BulletinBoardVisualLayer.BNGKNAAJAIA PIILNBGNIAJ)
|
||||
{
|
||||
BulletinBoardVisualLayer[] jclmmmofeji = this.JCLMMMOFEJI;
|
||||
int num = 0;
|
||||
int length = jclmmmofeji.Length;
|
||||
if (num < length)
|
||||
{
|
||||
BulletinBoardVisualLayer bulletinBoardVisualLayer = jclmmmofeji[num];
|
||||
GameObject gameObject = bulletinBoardVisualLayer.gameObject;
|
||||
bool flag = bulletinBoardVisualLayer.Layer == PIILNBGNIAJ;
|
||||
gameObject.SetActive(flag);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600020E RID: 526 RVA: 0x0000B550 File Offset: 0x00009750
|
||||
[Token(Token = "0x600020E")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public BulletinBoardController()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400019F RID: 415
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400019F")]
|
||||
[SerializeField]
|
||||
private GameObject[] ugcObjects;
|
||||
|
||||
// Token: 0x040001A0 RID: 416
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40001A0")]
|
||||
[SerializeField]
|
||||
[Header("Audio")]
|
||||
private RecRoomAudioClip buttonDownAudio;
|
||||
|
||||
// Token: 0x040001A1 RID: 417
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40001A1")]
|
||||
[SerializeField]
|
||||
private RecRoomAudioClip buttonUpAudio;
|
||||
|
||||
// Token: 0x040001A2 RID: 418
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40001A2")]
|
||||
private BulletinBoardVisualLayer[] JCLMMMOFEJI;
|
||||
}
|
||||
Reference in New Issue
Block a user