using System; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.AGUI.Expresso { // Token: 0x0200296B RID: 10603 [Token(Token = "0x200296B")] public class ExpressoButtonSpawner : PrefabSpawner { // Token: 0x06011C56 RID: 72790 RVA: 0x0040BDD0 File Offset: 0x00409FD0 [Token(Token = "0x6011C56")] [Address(RVA = "0xD5C9A0", Offset = "0xD5B7A0", VA = "0x180D5C9A0", 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: 0x06011C57 RID: 72791 RVA: 0x0040BEF0 File Offset: 0x0040A0F0 [Token(Token = "0x6011C57")] [Address(RVA = "0xD5C950", Offset = "0xD5B750", VA = "0x180D5C950", 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: 0x06011C58 RID: 72792 RVA: 0x0040BF2C File Offset: 0x0040A12C [Token(Token = "0x6011C58")] [Address(RVA = "0xD5CCF0", Offset = "0xD5BAF0", VA = "0x180D5CCF0")] public ExpressoButtonSpawner() { } // Token: 0x0400B6E1 RID: 46817 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400B6E1")] public MeshRenderer proxyMeshRenderer; // Token: 0x0400B6E2 RID: 46818 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400B6E2")] public bool CloseMenuOnInteraction = true; // Token: 0x0400B6E3 RID: 46819 [FieldOffset(Offset = "0x40")] [Token(Token = "0x400B6E3")] public ExpressoButton.ExpressoButtonInteraction OnInteractionEnter; // Token: 0x0400B6E4 RID: 46820 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400B6E4")] public ExpressoButton.ExpressoButtonInteraction OnInteractionStay; // Token: 0x0400B6E5 RID: 46821 [FieldOffset(Offset = "0x50")] [Token(Token = "0x400B6E5")] public ExpressoButton.ExpressoButtonInteraction OnInteractionExit; // Token: 0x0400B6E6 RID: 46822 [FieldOffset(Offset = "0x58")] [Token(Token = "0x400B6E6")] public ExpressoButton.ExpressoButtonInteraction OnButtonActivated; // Token: 0x0400B6E7 RID: 46823 [FieldOffset(Offset = "0x60")] [Token(Token = "0x400B6E7")] public ExpressoButton.ExpressoButtonInteraction OnButtonDeactivated; // Token: 0x0400B6E8 RID: 46824 [FieldOffset(Offset = "0x68")] [Token(Token = "0x400B6E8")] public Sprite iconSprite; // Token: 0x0400B6E9 RID: 46825 [FieldOffset(Offset = "0x70")] [Token(Token = "0x400B6E9")] public string labelText; // Token: 0x0400B6EA RID: 46826 [FieldOffset(Offset = "0x78")] [Token(Token = "0x400B6EA")] public float exitAnimationDuration = 0.25f; // Token: 0x0400B6EB RID: 46827 [FieldOffset(Offset = "0x80")] [Token(Token = "0x400B6EB")] [Header("Audio")] public RecRoomAudioClip EnterAudio; // Token: 0x0400B6EC RID: 46828 [FieldOffset(Offset = "0x88")] [Token(Token = "0x400B6EC")] public RecRoomAudioClip StayAudio; // Token: 0x0400B6ED RID: 46829 [FieldOffset(Offset = "0x90")] [Token(Token = "0x400B6ED")] public RecRoomAudioClip ExitAudio; } }