94 lines
3.0 KiB
C#
94 lines
3.0 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace RRUI.Theme
|
|
{
|
|
// Token: 0x0200080F RID: 2063
|
|
[Token(Token = "0x200080F")]
|
|
[StructLayout(3)]
|
|
public class SurfaceTheme : PaletteThemeReference
|
|
{
|
|
// Token: 0x17000A06 RID: 2566
|
|
// (get) Token: 0x06003960 RID: 14688 RVA: 0x000F2044 File Offset: 0x000F0244
|
|
// (set) Token: 0x06003961 RID: 14689 RVA: 0x000F2058 File Offset: 0x000F0258
|
|
[Token(Token = "0x17000A06")]
|
|
public HKNKJCKPDIH LJEGDBMBIEE
|
|
{
|
|
[Token(Token = "0x6003960")]
|
|
[Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60")]
|
|
get
|
|
{
|
|
return this.color;
|
|
}
|
|
[Token(Token = "0x6003961")]
|
|
[Address(RVA = "0x108FD10", Offset = "0x108E710", VA = "0x18108FD10")]
|
|
set
|
|
{
|
|
this.color = value;
|
|
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003962 RID: 14690 RVA: 0x000F2074 File Offset: 0x000F0274
|
|
[Token(Token = "0x6003962")]
|
|
[Address(RVA = "0x108FB70", Offset = "0x108E570", VA = "0x18108FB70", Slot = "5")]
|
|
public override void Apply()
|
|
{
|
|
Palette palette = this.paletteTheme.palette;
|
|
HKNKJCKPDIH hknkjckpdih = this.color;
|
|
Palette.HPNELBJEPJH hpnelbjepjh = new Palette.HPNELBJEPJH();
|
|
hpnelbjepjh.backgroundColorPaletteType = hknkjckpdih;
|
|
Palette.BackgroundColorPaletteItem[] backgroundColorPalettes = palette.backgroundColorPalettes;
|
|
Func<Palette.BackgroundColorPaletteItem, bool> func = delegate(Palette.BackgroundColorPaletteItem backgroundColorPaletteItem)
|
|
{
|
|
HKNKJCKPDIH backgroundColorPaletteType = hpnelbjepjh.backgroundColorPaletteType;
|
|
return backgroundColorPaletteItem.backgroundColorPaletteType == backgroundColorPaletteType;
|
|
};
|
|
Palette.BackgroundColorPaletteItem backgroundColorPaletteItem2 = Enumerable.FirstOrDefault<Palette.BackgroundColorPaletteItem>(backgroundColorPalettes, func);
|
|
if (backgroundColorPaletteItem2 == 0 || backgroundColorPaletteItem2.gradient != 0)
|
|
{
|
|
Color white = Color.white;
|
|
}
|
|
Gradient gradient = new Gradient();
|
|
Color color = this.image.color;
|
|
UIGradient uigradient = this.gradient;
|
|
int num = 0;
|
|
if (uigradient != num)
|
|
{
|
|
this.gradient.CKIHBOOIIHL = gradient;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003963 RID: 14691 RVA: 0x000F2114 File Offset: 0x000F0314
|
|
[Token(Token = "0x6003963")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public SurfaceTheme()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003245 RID: 12869
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003245")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Image image;
|
|
|
|
// Token: 0x04003246 RID: 12870
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4003246")]
|
|
[SerializeField]
|
|
[OCIDFHDICIP(JIBDPHMGEGO.Self, false, false)]
|
|
private UIGradient gradient;
|
|
|
|
// Token: 0x04003247 RID: 12871
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4003247")]
|
|
[SerializeField]
|
|
private HKNKJCKPDIH color;
|
|
}
|
|
}
|