Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/AGUI/Expresso/ExpressoButtonSpawner.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

147 lines
4.6 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.AGUI.Expresso
{
// Token: 0x02002A54 RID: 10836
[Token(Token = "0x2002A54")]
public class ExpressoButtonSpawner : PrefabSpawner<ExpressoButton>
{
// Token: 0x06012092 RID: 73874 RVA: 0x004157A0 File Offset: 0x004139A0
[Token(Token = "0x6012092")]
[Address(RVA = "0x185CCC0", Offset = "0x185BCC0", VA = "0x18185CCC0", Slot = "5")]
protected override void OJNLKINBMIN()
{
base.OJNLKINBMIN();
bool closeMenuOnInteraction = this.CloseMenuOnInteraction;
ExpressoButton.ExpressoButtonInteraction onInteractionEnter = this.OnInteractionEnter;
this.proxyMeshRenderer = onInteractionEnter;
ExpressoButton.ExpressoButtonInteraction onInteractionStay = this.OnInteractionStay;
this.CloseMenuOnInteraction = onInteractionStay != null;
ExpressoButton.ExpressoButtonInteraction onInteractionExit = this.OnInteractionExit;
this.OnInteractionEnter = onInteractionExit;
ExpressoButton.ExpressoButtonInteraction onButtonActivated = this.OnButtonActivated;
this.OnInteractionStay = onButtonActivated;
ExpressoButton.ExpressoButtonInteraction onButtonDeactivated = this.OnButtonDeactivated;
this.OnInteractionExit = onButtonDeactivated;
RecRoomAudioClip enterAudio = this.EnterAudio;
this.OnButtonActivated = enterAudio;
RecRoomAudioClip stayAudio = this.StayAudio;
this.OnButtonDeactivated = stayAudio;
RecRoomAudioClip exitAudio = this.ExitAudio;
this.iconSprite = exitAudio;
Sprite sprite = this.iconSprite;
int num = 0;
if (sprite != num)
{
Sprite sprite2 = this.iconSprite;
}
if (!string.IsNullOrEmpty(this.labelText))
{
}
MeshRenderer meshRenderer = this.proxyMeshRenderer;
int num2 = 0;
if (meshRenderer != num2)
{
Transform transform = this.proxyMeshRenderer.transform;
Vector3 vector;
float z = vector.z;
Transform transform2 = this.proxyMeshRenderer.transform;
Transform transform3 = this.proxyMeshRenderer.transform;
Vector3 vector2;
float z2 = vector2.z;
}
float num3 = this.exitAnimationDuration;
}
// Token: 0x06012093 RID: 73875 RVA: 0x004158C0 File Offset: 0x00413AC0
[Token(Token = "0x6012093")]
[Address(RVA = "0x185CC70", Offset = "0x185BC70", VA = "0x18185CC70", Slot = "6")]
protected override void Awake()
{
base.Awake();
if (Application.isPlaying)
{
GameObject gameObject = this.proxyMeshRenderer.gameObject;
int num = 0;
gameObject.SetActive(num != 0);
return;
}
}
// Token: 0x06012094 RID: 73876 RVA: 0x004158FC File Offset: 0x00413AFC
[Token(Token = "0x6012094")]
[Address(RVA = "0x185D010", Offset = "0x185C010", VA = "0x18185D010")]
public ExpressoButtonSpawner()
{
}
// Token: 0x0400B8F1 RID: 47345
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400B8F1")]
public MeshRenderer proxyMeshRenderer;
// Token: 0x0400B8F2 RID: 47346
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400B8F2")]
public bool CloseMenuOnInteraction = true;
// Token: 0x0400B8F3 RID: 47347
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400B8F3")]
public ExpressoButton.ExpressoButtonInteraction OnInteractionEnter;
// Token: 0x0400B8F4 RID: 47348
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400B8F4")]
public ExpressoButton.ExpressoButtonInteraction OnInteractionStay;
// Token: 0x0400B8F5 RID: 47349
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400B8F5")]
public ExpressoButton.ExpressoButtonInteraction OnInteractionExit;
// Token: 0x0400B8F6 RID: 47350
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400B8F6")]
public ExpressoButton.ExpressoButtonInteraction OnButtonActivated;
// Token: 0x0400B8F7 RID: 47351
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400B8F7")]
public ExpressoButton.ExpressoButtonInteraction OnButtonDeactivated;
// Token: 0x0400B8F8 RID: 47352
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400B8F8")]
public Sprite iconSprite;
// Token: 0x0400B8F9 RID: 47353
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400B8F9")]
public string labelText;
// Token: 0x0400B8FA RID: 47354
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x400B8FA")]
public float exitAnimationDuration = 0.25f;
// Token: 0x0400B8FB RID: 47355
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x400B8FB")]
[Header("Audio")]
public RecRoomAudioClip EnterAudio;
// Token: 0x0400B8FC RID: 47356
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x400B8FC")]
public RecRoomAudioClip StayAudio;
// Token: 0x0400B8FD RID: 47357
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x400B8FD")]
public RecRoomAudioClip ExitAudio;
}
}