Files
NobetaSource/Cpp2IL/Assembly-CSharp/UISettingsGamepad.cs
2023-09-06 22:09:22 +02:00

75 lines
2.2 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000250 RID: 592
[Token(Token = "0x2000250")]
public class UISettingsGamepad : UIKeyBindingBase
{
// Token: 0x170000DA RID: 218
// (get) Token: 0x060016AF RID: 5807 RVA: 0x00036524 File Offset: 0x00034724
[Token(Token = "0x170000DA")]
protected override bool IsGamepad
{
[Token(Token = "0x60016AF")]
[Address(RVA = "0x497D00", Offset = "0x496500", VA = "0x180497D00", Slot = "22")]
get
{
return true;
}
}
// Token: 0x060016B0 RID: 5808 RVA: 0x00036534 File Offset: 0x00034734
[Token(Token = "0x60016B0")]
[Address(RVA = "0xDE1670", Offset = "0xDDFE70", VA = "0x180DE1670", Slot = "11")]
public override void Init(CanvasGroup mainCanvasGroup, Action cancelHandler, Text title)
{
base.Init(mainCanvasGroup, cancelHandler, title);
Game.AddDeviceChangedHandler(new Action(this.OnControllerChanged));
}
// Token: 0x060016B1 RID: 5809 RVA: 0x0003655C File Offset: 0x0003475C
[Token(Token = "0x60016B1")]
[Address(RVA = "0xDE17B0", Offset = "0xDDFFB0", VA = "0x180DE17B0")]
private void OnControllerChanged(ControllerDevice device)
{
if (device != ControllerDevice.Keyboard)
{
UIKeyBindingPage[] pages = this.pages;
int num = 0;
int length = pages.Length;
if (num < length)
{
pages[num].UpdateIcon(true);
num++;
}
}
}
// Token: 0x060016B2 RID: 5810 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60016B2")]
[Address(RVA = "0xDE1420", Offset = "0xDDFC20", VA = "0x180DE1420")]
private string GetInvalidKeyName(string effectivePath)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060016B3 RID: 5811 RVA: 0x00036598 File Offset: 0x00034798
[Token(Token = "0x60016B3")]
[Address(RVA = "0xDE1750", Offset = "0xDDFF50", VA = "0x180DE1750", Slot = "20")]
public override void Localize(LocalizationData data)
{
string text = data.systemText.GetText(95);
this.titleText = text;
base.UpdateTextAndFont(data);
}
// Token: 0x060016B4 RID: 5812 RVA: 0x000365C8 File Offset: 0x000347C8
[Token(Token = "0x60016B4")]
[Address(RVA = "0x3CB890", Offset = "0x3CA090", VA = "0x1803CB890")]
public UISettingsGamepad()
{
}
}