Files
2026-04-08 23:40:05 +02:00

144 lines
4.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using AGUI.StackedUI;
using Cpp2IlInjected;
using RecRoom.Core.UI;
using UnityEngine;
// Token: 0x0200005F RID: 95
[Token(Token = "0x200005F")]
[StructLayout(3)]
public class BulletinBoardController : MonoBehaviour
{
// Token: 0x060002DE RID: 734 RVA: 0x0000E8EC File Offset: 0x0000CAEC
[Token(Token = "0x60002DE")]
[Address(RVA = "0x120B750", Offset = "0x120A150", VA = "0x18120B750")]
private void Awake()
{
BulletinBoardVisualLayer[] componentsInChildren = base.GetComponentsInChildren<BulletinBoardVisualLayer>(true);
this.JCLMMMOFEJI = componentsInChildren;
}
// Token: 0x060002DF RID: 735 RVA: 0x0000E908 File Offset: 0x0000CB08
[Token(Token = "0x60002DF")]
[Address(RVA = "0x120B9E0", Offset = "0x120A3E0", VA = "0x18120B9E0")]
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: 0x060002E0 RID: 736 RVA: 0x0000E9CC File Offset: 0x0000CBCC
[Token(Token = "0x60002E0")]
[Address(RVA = "0x120B790", Offset = "0x120A190", VA = "0x18120B790")]
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: 0x060002E1 RID: 737 RVA: 0x0000EA94 File Offset: 0x0000CC94
[Token(Token = "0x60002E1")]
[Address(RVA = "0x120B950", Offset = "0x120A350", VA = "0x18120B950")]
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: 0x060002E2 RID: 738 RVA: 0x0000EAE8 File Offset: 0x0000CCE8
[Token(Token = "0x60002E2")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public BulletinBoardController()
{
}
// Token: 0x0400027B RID: 635
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400027B")]
[SerializeField]
private GameObject[] ugcObjects;
// Token: 0x0400027C RID: 636
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400027C")]
[SerializeField]
[Header("Audio")]
private RecRoomAudioClip buttonDownAudio;
// Token: 0x0400027D RID: 637
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400027D")]
[SerializeField]
private RecRoomAudioClip buttonUpAudio;
// Token: 0x0400027E RID: 638
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400027E")]
private BulletinBoardVisualLayer[] JCLMMMOFEJI;
}