35 lines
1.9 KiB
C#
35 lines
1.9 KiB
C#
using System;
|
|
using Manager;
|
|
using UI;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000085 RID: 133
|
|
public class ContinueButtonController : ButtonControllerBase
|
|
{
|
|
// Token: 0x060004D2 RID: 1234 RVA: 0x00011C5C File Offset: 0x00010E5C
|
|
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.Yes).LedColor);
|
|
this.CommonButtons[3].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Image, false);
|
|
this.CommonButtons[3].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.Yes).Cue);
|
|
this.CommonButtons[4] = Object.Instantiate<CommonButtonObject>(CommonPrefab.GetFlatButtonObject(), this._positions[4]);
|
|
this.CommonButtons[4].Initialize(this.MonitorIndex, InputManager.ButtonSetting.Button05, ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).LedColor);
|
|
this.CommonButtons[4].SetSymbol(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Image, true);
|
|
this.CommonButtons[4].SetSE(ButtonControllerBase.GetFlatButtonParam(ButtonControllerBase.FlatButtonType.No).Cue);
|
|
}
|
|
|
|
// Token: 0x060004D3 RID: 1235 RVA: 0x00011D58 File Offset: 0x00010F58
|
|
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);
|
|
}
|
|
}
|
|
}
|