77 lines
2.3 KiB
C#
77 lines
2.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x02000681 RID: 1665
|
|
[Token(Token = "0x2000681")]
|
|
[Serializable]
|
|
public class ButtonPaletteBlock : ScriptableObject
|
|
{
|
|
// Token: 0x0600305D RID: 12381 RVA: 0x000C4BB8 File Offset: 0x000C2DB8
|
|
[Token(Token = "0x600305D")]
|
|
[Address(RVA = "0x150D740", Offset = "0x150C740", VA = "0x18150D740")]
|
|
public ButtonPaletteBlock()
|
|
{
|
|
ColorBlock defaultColorBlock = ColorBlock.defaultColorBlock;
|
|
int num = 0;
|
|
Color highlightedColor = defaultColorBlock.m_HighlightedColor;
|
|
this.SelectionColorModifiers.m_HighlightedColor = highlightedColor;
|
|
Color pressedColor = defaultColorBlock.m_PressedColor;
|
|
this.SelectionColorModifiers.m_PressedColor = pressedColor;
|
|
Color selectedColor = defaultColorBlock.m_SelectedColor;
|
|
this.SelectionColorModifiers.m_SelectedColor = selectedColor;
|
|
Color disabledColor = defaultColorBlock.m_DisabledColor;
|
|
this.SelectionColorModifiers.m_DisabledColor = disabledColor;
|
|
ButtonPaletteBlock.ButtonPalette[] array = new ButtonPaletteBlock.ButtonPalette[num];
|
|
this.paletteBlock = array;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400281D RID: 10269
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400281D")]
|
|
[Header("Shared")]
|
|
public ColorBlock SelectionColorModifiers;
|
|
|
|
// Token: 0x0400281E RID: 10270
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400281E")]
|
|
[Header("Palettes")]
|
|
public ButtonPaletteBlock.ButtonPalette[] paletteBlock;
|
|
|
|
// Token: 0x02000682 RID: 1666
|
|
[Token(Token = "0x2000682")]
|
|
[Serializable]
|
|
public class ButtonPalette
|
|
{
|
|
// Token: 0x0600305E RID: 12382 RVA: 0x000C4C34 File Offset: 0x000C2E34
|
|
[Token(Token = "0x600305E")]
|
|
[Address(RVA = "0x150D7D0", Offset = "0x150C7D0", VA = "0x18150D7D0")]
|
|
public ButtonPalette()
|
|
{
|
|
string empty = string.Empty;
|
|
this.name = empty;
|
|
Color white = Color.white;
|
|
int num = 0;
|
|
this.ToggleColor = num;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400281F RID: 10271
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400281F")]
|
|
public string name;
|
|
|
|
// Token: 0x04002820 RID: 10272
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002820")]
|
|
public Color BaseColor;
|
|
|
|
// Token: 0x04002821 RID: 10273
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002821")]
|
|
public Color ToggleColor;
|
|
}
|
|
}
|