Elin Decompiled Documentation EA 23.240 Nightly
Loading...
Searching...
No Matches
ColorProfile.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
5{
6 [Serializable]
7 public class RarityColors
8 {
9 public Color colorC;
10
11 public Color colorR;
12
13 public Color colorSR;
14
16
17 public Color colorLE;
18
19 public float lightMod;
20 }
21
22 [Serializable]
23 public class BlockColors
24 {
25 public const int DefColor = 104025;
26
27 public const int DefColorInactive = -1214986;
28
29 public const int DefColorActive = -1173751;
30
31 public const int DefColorValid = -2747875;
32
33 public const int DefColorWarning = -2828814;
34
35 public Color _valid;
36
38
39 public Color _active;
40
42
44
46
48
50
51 public int Valid;
52
53 public int Warning;
54
55 public int Inactive;
56
57 public int Active;
58
59 public int ActiveOpacity;
60
61 public int InactiveOpacity;
62
63 public int Passive;
64
65 public int MapHighlight;
66
67 public void Init()
68 {
69 Valid = GetColor(ref _valid);
72 Active = GetColor(ref _active);
77 }
78
79 public int GetColor(ref Color c)
80 {
81 return -((int)(c.a * 10f) * 262144 + (int)(c.r * 64f) * 4096 + (int)(c.g * 64f) * 64 + (int)(c.b * 64f));
82 }
83 }
84
85 [Serializable]
86 public class TextColors
87 {
88 public Color damage;
89
91
93
95
97 }
98
99 [Serializable]
100 public class PCLights
101 {
103
105 }
106
108
110
112
114
116
118
119 public Gradient gradientLVComparison;
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
155 public void Init()
156 {
158 }
159
160 public Color GetRarityColor(int r, bool light = false)
161 {
163 Color result = rarityColors.colorC;
164 switch (r)
165 {
166 case 2:
167 result = rarityColors.colorR;
168 break;
169 case 3:
170 result = rarityColors.colorSR;
171 break;
172 case 4:
173 result = rarityColors.colorSSR;
174 break;
175 case 5:
176 result = rarityColors.colorLE;
177 break;
178 }
179 if (light)
180 {
181 result *= rarityColors.lightMod;
182 }
183 return result;
184 }
185
186 private void OnValidate()
187 {
188 if (Application.isPlaying && EClass.core.IsGameStarted)
189 {
191 }
192 }
193}
int GetColor(ref Color c)
Definition: ColorProfile.cs:79
SkinColorProfile Dark
BlockColors blockColors
UD_String_LightData lightColors
Color colorActWarnning
RarityColors rarityColors
SkinColorProfile Light
Color colorHostile
void OnValidate()
Color colorIngPredict
Color colorBlood
Color colorDebuff
Color colorFriend
UD_String_Color elementColors
SkinColorProfile Skin
Color colorHostileAct
Color GetRarityColor(int r, bool light=false)
PCLights pcLights
Color colorIngReq
TextColors textColors
Color colorIngCost
UD_String_MatData matColors
Gradient gradientLVComparison
Color colorActCriticalWarning
bool IsGameStarted
Definition: Core.cs:84
Definition: EClass.cs:6
static Core core
Definition: EClass.cs:7
static Map _map
Definition: EClass.cs:19
void RefreshFOVAll()
Definition: Map.cs:949
static SkinColorProfile CurrentColors
Definition: SkinManager.cs:84
SkinRootStatic skinDark
Definition: SkinManager.cs:59
static SkinManager Instance
Definition: SkinManager.cs:78
SkinRootStatic skinLight
Definition: SkinManager.cs:57
SkinColorProfile _default
SkinColors colors