31 lines
1.4 KiB
C#
31 lines
1.4 KiB
C#
using System;
|
|
using Manager;
|
|
using UI;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000138 RID: 312
|
|
public class TakeOverButtonController : ButtonControllerBase
|
|
{
|
|
// Token: 0x06000A85 RID: 2693 RVA: 0x0002C41C File Offset: 0x0002B61C
|
|
public override void Initialize(int monitorIndex)
|
|
{
|
|
base.Initialize(monitorIndex);
|
|
this.CommonButtons = new CommonButtonObject[this._positions.Length];
|
|
this.CommonButtons[3] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[3]);
|
|
this.CommonButtons[3].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button04, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).LedColor);
|
|
this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Image, false);
|
|
this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Next).Cue);
|
|
}
|
|
|
|
// Token: 0x06000A86 RID: 2694 RVA: 0x0002C4B0 File Offset: 0x0002B6B0
|
|
public void ChangeFlatButtonSymbol(int index, int spriteNum)
|
|
{
|
|
if (this.CommonButtons[index] != null)
|
|
{
|
|
this.CommonButtons[index].SetSymbol(ButtonControllerBase.GetFlatButtonParam(spriteNum).Image, false);
|
|
this.CommonButtons[index].ChangeColor(ButtonControllerBase.GetFlatButtonParam(spriteNum).LedColor, false);
|
|
this.CommonButtons[index].SetSE(ButtonControllerBase.GetFlatButtonParam(spriteNum).Cue);
|
|
}
|
|
}
|
|
}
|