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

257 lines
6.9 KiB
C#

using System;
using System.Collections.Generic;
using AGUI.StackedUI;
using Cpp2IlInjected;
using RecRoom.Core;
using TMPro;
using UnityEngine;
namespace RecRoom.AGUI.ToolUIs
{
// Token: 0x020029D6 RID: 10710
[Token(Token = "0x20029D6")]
public class InventionButton : MonoBehaviour
{
// Token: 0x1700320F RID: 12815
// (get) Token: 0x06011D73 RID: 73075 RVA: 0x00409310 File Offset: 0x00407510
[Token(Token = "0x1700320F")]
public OBBBPCBIMME EFMJFNLPHEM
{
[Token(Token = "0x6011D73")]
[Address(RVA = "0x1860F30", Offset = "0x185FF30", VA = "0x181860F30")]
get
{
return this.inventionPreview.<AMJMPBKMMMJ>k__BackingField;
}
}
// Token: 0x17003210 RID: 12816
// (get) Token: 0x06011D74 RID: 73076 RVA: 0x00409330 File Offset: 0x00407530
[Token(Token = "0x17003210")]
public RadioButton3D LCGJPCMMFLN
{
[Token(Token = "0x6011D74")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this._selectInventnionButton;
}
}
// Token: 0x17003211 RID: 12817
// (get) Token: 0x06011D75 RID: 73077 RVA: 0x00409344 File Offset: 0x00407544
[Token(Token = "0x17003211")]
public RadioButton3D.OnRadioButton3DClick JDMNDCHMHNH
{
[Token(Token = "0x6011D75")]
[Address(RVA = "0x1860F50", Offset = "0x185FF50", VA = "0x181860F50")]
get
{
return this._selectInventnionButton.OnClick;
}
}
// Token: 0x17003212 RID: 12818
// (get) Token: 0x06011D76 RID: 73078 RVA: 0x00409364 File Offset: 0x00407564
[Token(Token = "0x17003212")]
public Button3D.OnButton3DClick HBPBKENMNJB
{
[Token(Token = "0x6011D76")]
[Address(RVA = "0x13258E0", Offset = "0x13248E0", VA = "0x1813258E0")]
get
{
return this.infoButton.OnClick;
}
}
// Token: 0x06011D77 RID: 73079 RVA: 0x00409384 File Offset: 0x00407584
[Token(Token = "0x6011D77")]
[Address(RVA = "0x1860B30", Offset = "0x185FB30", VA = "0x181860B30")]
public void SetInvention(OBBBPCBIMME LDNFNNNHPPB, bool NJDEACDENDA = true)
{
int num;
for (;;)
{
num = 0;
InventionPreviewUI inventionPreviewUI = this.inventionPreview;
if (inventionPreviewUI.<AMJMPBKMMMJ>k__BackingField == LDNFNNNHPPB && LDNFNNNHPPB != 0)
{
return;
}
if (NJDEACDENDA)
{
inventionPreviewUI.SetInvention(LDNFNNNHPPB);
}
List<GameObject> list = this.hasInventionObjects;
if (LDNFNNNHPPB != 0)
{
break;
}
bool flag;
if (flag)
{
}
if (num != 0)
{
goto IL_9D;
}
if (num != -1)
{
}
List<GameObject> list2 = this.getMoreInventionsObjects;
bool flag2;
if (flag2)
{
}
if (num == 0)
{
goto Block_6;
}
}
bool flag3;
if (flag3)
{
}
if (num != 0)
{
throw new NullReferenceException();
}
if (num != -1)
{
}
List<GameObject> list3 = this.getMoreInventionsObjects;
bool flag4;
if (flag4)
{
}
if (num != 0)
{
goto IL_9D;
}
string <LGACIEKBLBM>k__BackingField = this.inventionPreview.<AMJMPBKMMMJ>k__BackingField.<LGACIEKBLBM>k__BackingField;
PLDMAFINLJO.FANDNIHFMNM(this.inventionName, <LGACIEKBLBM>k__BackingField);
return;
Block_6:
throw new NullReferenceException();
IL_9D:
throw new NullReferenceException();
}
// Token: 0x06011D78 RID: 73080 RVA: 0x00409434 File Offset: 0x00407634
[Token(Token = "0x6011D78")]
[Address(RVA = "0x18609E0", Offset = "0x185F9E0", VA = "0x1818609E0")]
public void OnEnable()
{
Action anbajlmkkll;
Delegate @delegate;
do
{
InventionPreviewUI inventionPreviewUI = this.inventionPreview;
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField = inventionPreviewUI.<AMJMPBKMMMJ>k__BackingField;
if (<AMJMPBKMMMJ>k__BackingField != 0)
{
int num = 0;
this.SetInvention(<AMJMPBKMMMJ>k__BackingField, num != 0);
}
Action action = new Action(this.PJJJMGDALBF);
anbajlmkkll = inventionPreviewUI.ANBAJLMKKLL;
@delegate = Delegate.Combine(anbajlmkkll, action);
}
while (@delegate != 0 && @delegate == 0);
while (@delegate != anbajlmkkll)
{
}
}
// Token: 0x06011D79 RID: 73081 RVA: 0x00409494 File Offset: 0x00407694
[Token(Token = "0x6011D79")]
[Address(RVA = "0x18608F0", Offset = "0x185F8F0", VA = "0x1818608F0")]
public void OnDisable()
{
Action anbajlmkkll;
Delegate @delegate;
do
{
InventionPreviewUI inventionPreviewUI = this.inventionPreview;
Action action = new Action(this.PJJJMGDALBF);
anbajlmkkll = inventionPreviewUI.ANBAJLMKKLL;
@delegate = Delegate.Remove(anbajlmkkll, action);
}
while (@delegate != 0 && @delegate == 0);
while (@delegate != anbajlmkkll)
{
}
}
// Token: 0x06011D7A RID: 73082 RVA: 0x004094D8 File Offset: 0x004076D8
[Token(Token = "0x6011D7A")]
[Address(RVA = "0x1860B00", Offset = "0x185FB00", VA = "0x181860B00")]
private void PJJJMGDALBF()
{
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField = this.inventionPreview.<AMJMPBKMMMJ>k__BackingField;
int num = 0;
this.SetInvention(<AMJMPBKMMMJ>k__BackingField, num != 0);
}
// Token: 0x06011D7B RID: 73083 RVA: 0x00409504 File Offset: 0x00407704
[Token(Token = "0x6011D7B")]
[Address(RVA = "0x18606A0", Offset = "0x185F6A0", VA = "0x1818606A0")]
public void Button_GetMoreInventions()
{
WatchUI <JNBAANDJIAD>k__BackingField = Player.<EGKJPJKLEAI>k__BackingField.playerUI.<JNBAANDJIAD>k__BackingField;
<JNBAANDJIAD>k__BackingField.PopAllFlows();
<JNBAANDJIAD>k__BackingField.OHPDNGENFJL.AuthorityOpenMenuDetached(true);
RRUIRootScreen flowByType = <JNBAANDJIAD>k__BackingField.GetFlowByType<RRUIRootScreen>();
int num = 0;
if (flowByType != num)
{
flowByType.ShowScreenAndGoToStoreInventions();
}
Player.<EGKJPJKLEAI>k__BackingField.ReleaseToolsFromBothHands();
}
// Token: 0x06011D7C RID: 73084 RVA: 0x00409560 File Offset: 0x00407760
[Token(Token = "0x6011D7C")]
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
public InventionButton()
{
}
// Token: 0x0400B6DD RID: 46813
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400B6DD")]
[SerializeField]
public RadioButton3D _selectInventnionButton;
// Token: 0x0400B6DE RID: 46814
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400B6DE")]
[SerializeField]
private TextMeshProUGUI inventionName;
// Token: 0x0400B6DF RID: 46815
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400B6DF")]
[SerializeField]
private Button3D infoButton;
// Token: 0x0400B6E0 RID: 46816
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400B6E0")]
[SerializeField]
private InventionPreviewUI inventionPreview;
// Token: 0x0400B6E1 RID: 46817
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400B6E1")]
[SerializeField]
private List<GameObject> hasInventionObjects;
// Token: 0x0400B6E2 RID: 46818
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400B6E2")]
[SerializeField]
private List<GameObject> getMoreInventionsObjects;
}
}