m
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RRUI.Theme
|
||||
{
|
||||
// Token: 0x0200084F RID: 2127
|
||||
[Token(Token = "0x200084F")]
|
||||
public class SurfaceTheme : PaletteThemeReference
|
||||
{
|
||||
// Token: 0x17000A76 RID: 2678
|
||||
// (get) Token: 0x06003B02 RID: 15106 RVA: 0x000F2C9C File Offset: 0x000F0E9C
|
||||
// (set) Token: 0x06003B03 RID: 15107 RVA: 0x000F2CB0 File Offset: 0x000F0EB0
|
||||
[Token(Token = "0x17000A76")]
|
||||
public HKNKJCKPDIH LJEGDBMBIEE
|
||||
{
|
||||
[Token(Token = "0x6003B02")]
|
||||
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
|
||||
get
|
||||
{
|
||||
return this.color;
|
||||
}
|
||||
[Token(Token = "0x6003B03")]
|
||||
[Address(RVA = "0x15A0CE0", Offset = "0x159FCE0", VA = "0x1815A0CE0")]
|
||||
set
|
||||
{
|
||||
if (this.color != value)
|
||||
{
|
||||
this.color = value;
|
||||
base.Apply();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B04 RID: 15108 RVA: 0x000F2CD4 File Offset: 0x000F0ED4
|
||||
[Token(Token = "0x6003B04")]
|
||||
[Address(RVA = "0x15A0A70", Offset = "0x159FA70", VA = "0x1815A0A70", 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.ignoreGradient)
|
||||
{
|
||||
UIGradient uigradient2 = this.gradient;
|
||||
Gradient gradient2 = uigradient2.gradient;
|
||||
if (gradient2 != gradient)
|
||||
{
|
||||
Gradient gradient3;
|
||||
if (gradient == 0)
|
||||
{
|
||||
gradient3 = new Gradient();
|
||||
uigradient2.gradient = gradient3;
|
||||
}
|
||||
Gradient gradient4;
|
||||
if (gradient2 == 0)
|
||||
{
|
||||
gradient4 = new Gradient();
|
||||
uigradient2.gradient = gradient4;
|
||||
}
|
||||
GradientColorKey[] colorKeys = gradient3.colorKeys;
|
||||
GradientAlphaKey[] alphaKeys = gradient3.alphaKeys;
|
||||
gradient4.SetKeys(colorKeys, alphaKeys);
|
||||
Gradient gradient5 = uigradient2.gradient;
|
||||
GradientMode mode = gradient3.mode;
|
||||
uigradient2.LEEFJJKFHJH = true;
|
||||
uigradient2.BFFMPHOGMMA();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B05 RID: 15109 RVA: 0x000F2DF8 File Offset: 0x000F0FF8
|
||||
[Token(Token = "0x6003B05")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public SurfaceTheme()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040032BE RID: 12990
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40032BE")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private Image image;
|
||||
|
||||
// Token: 0x040032BF RID: 12991
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40032BF")]
|
||||
[SerializeField]
|
||||
[OAGJHJAIMMP(FHBJCBPFODN.Self, false, false, false)]
|
||||
private UIGradient gradient;
|
||||
|
||||
// Token: 0x040032C0 RID: 12992
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40032C0")]
|
||||
[SerializeField]
|
||||
private HKNKJCKPDIH color;
|
||||
|
||||
// Token: 0x040032C1 RID: 12993
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x40032C1")]
|
||||
[SerializeField]
|
||||
[JEAMMEGEDDJ("gradient")]
|
||||
private bool ignoreGradient;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user