Elin Modding Docs Doc
Loading...
Searching...
No Matches
ColorProfile.cs
1using System;
2using UnityEngine;
3
4// Token: 0x02000169 RID: 361
6{
7 // Token: 0x170002B1 RID: 689
8 // (get) Token: 0x06000AA9 RID: 2729 RVA: 0x0004225D File Offset: 0x0004045D
9 public SkinColorProfile Skin
10 {
11 get
12 {
13 return SkinManager.CurrentColors;
14 }
15 }
16
17 // Token: 0x170002B2 RID: 690
18 // (get) Token: 0x06000AAA RID: 2730 RVA: 0x00042264 File Offset: 0x00040464
19 public SkinColorProfile Dark
20 {
21 get
22 {
23 return SkinManager.Instance.skinDark.colors._default;
24 }
25 }
26
27 // Token: 0x170002B3 RID: 691
28 // (get) Token: 0x06000AAB RID: 2731 RVA: 0x0004227A File Offset: 0x0004047A
29 public SkinColorProfile Light
30 {
31 get
32 {
33 return SkinManager.Instance.skinLight.colors._default;
34 }
35 }
36
37 // Token: 0x06000AAC RID: 2732 RVA: 0x00042290 File Offset: 0x00040490
38 public void Init()
39 {
40 this.blockColors.Init();
41 }
42
43 // Token: 0x06000AAD RID: 2733 RVA: 0x000422A0 File Offset: 0x000404A0
44 public Color GetRarityColor(int r, bool light = false)
45 {
46 ColorProfile.RarityColors rarityColors = this.rarityColors;
47 Color color = rarityColors.colorC;
48 switch (r)
49 {
50 case 2:
51 color = rarityColors.colorR;
52 break;
53 case 3:
54 color = rarityColors.colorSR;
55 break;
56 case 4:
57 color = rarityColors.colorSSR;
58 break;
59 case 5:
60 color = rarityColors.colorLE;
61 break;
62 }
63 if (light)
64 {
65 color *= rarityColors.lightMod;
66 }
67 return color;
68 }
69
70 // Token: 0x06000AAE RID: 2734 RVA: 0x00042308 File Offset: 0x00040508
71 private void OnValidate()
72 {
73 if (!Application.isPlaying || !EClass.core.IsGameStarted)
74 {
75 return;
76 }
77 EClass._map.RefreshFOVAll();
78 }
79
80 // Token: 0x0400098C RID: 2444
81 public UD_String_MatData matColors;
82
83 // Token: 0x0400098D RID: 2445
84 public UD_String_LightData lightColors;
85
86 // Token: 0x0400098E RID: 2446
87 public UD_String_Color elementColors;
88
89 // Token: 0x0400098F RID: 2447
90 public ColorProfile.RarityColors rarityColors;
91
92 // Token: 0x04000990 RID: 2448
93 public ColorProfile.BlockColors blockColors;
94
95 // Token: 0x04000991 RID: 2449
96 public ColorProfile.TextColors textColors;
97
98 // Token: 0x04000992 RID: 2450
99 public Gradient gradientLVComparison;
100
101 // Token: 0x04000993 RID: 2451
102 public ColorProfile.PCLights pcLights;
103
104 // Token: 0x04000994 RID: 2452
105 public Color colorIngCost;
106
107 // Token: 0x04000995 RID: 2453
108 public Color colorIngPredict;
109
110 // Token: 0x04000996 RID: 2454
111 public Color colorIngReq;
112
113 // Token: 0x04000997 RID: 2455
114 public Color colorNew;
115
116 // Token: 0x04000998 RID: 2456
117 public Color colorAct;
118
119 // Token: 0x04000999 RID: 2457
120 public Color colorActWarnning;
121
122 // Token: 0x0400099A RID: 2458
123 public Color colorActCriticalWarning;
124
125 // Token: 0x0400099B RID: 2459
126 public Color colorHostileAct;
127
128 // Token: 0x0400099C RID: 2460
129 public Color colorFriend;
130
131 // Token: 0x0400099D RID: 2461
132 public Color colorHostile;
133
134 // Token: 0x0400099E RID: 2462
135 public Color colorBuff;
136
137 // Token: 0x0400099F RID: 2463
138 public Color colorDebuff;
139
140 // Token: 0x0200087C RID: 2172
141 [Serializable]
142 public class RarityColors
143 {
144 // Token: 0x04002440 RID: 9280
145 public Color colorC;
146
147 // Token: 0x04002441 RID: 9281
148 public Color colorR;
149
150 // Token: 0x04002442 RID: 9282
151 public Color colorSR;
152
153 // Token: 0x04002443 RID: 9283
154 public Color colorSSR;
155
156 // Token: 0x04002444 RID: 9284
157 public Color colorLE;
158
159 // Token: 0x04002445 RID: 9285
160 public float lightMod;
161 }
162
163 // Token: 0x0200087D RID: 2173
164 [Serializable]
165 public class BlockColors
166 {
167 // Token: 0x06003A4E RID: 14926 RVA: 0x001359CC File Offset: 0x00133BCC
168 public void Init()
169 {
170 this.Valid = this.GetColor(ref this._valid);
171 this.Warning = this.GetColor(ref this._warning);
172 this.Inactive = this.GetColor(ref this._inactive);
173 this.Active = this.GetColor(ref this._active);
174 this.InactiveOpacity = this.GetColor(ref this._inactiveOpacity);
175 this.ActiveOpacity = this.GetColor(ref this._activeOpacity);
176 this.Passive = this.GetColor(ref this._passive);
177 this.MapHighlight = this.GetColor(ref this._mapHighlight);
178 }
179
180 // Token: 0x06003A4F RID: 14927 RVA: 0x00135A6C File Offset: 0x00133C6C
181 public int GetColor(ref Color c)
182 {
183 return -((int)(c.a * 10f) * 262144 + (int)(c.r * 64f) * 4096 + (int)(c.g * 64f) * 64 + (int)(c.b * 64f));
184 }
185
186 // Token: 0x04002446 RID: 9286
187 public const int DefColor = 104025;
188
189 // Token: 0x04002447 RID: 9287
190 public const int DefColorInactive = -1214986;
191
192 // Token: 0x04002448 RID: 9288
193 public const int DefColorActive = -1173751;
194
195 // Token: 0x04002449 RID: 9289
196 public const int DefColorValid = -2747875;
197
198 // Token: 0x0400244A RID: 9290
199 public const int DefColorWarning = -2828814;
200
201 // Token: 0x0400244B RID: 9291
202 public Color _valid;
203
204 // Token: 0x0400244C RID: 9292
205 public Color _warning;
206
207 // Token: 0x0400244D RID: 9293
208 public Color _active;
209
210 // Token: 0x0400244E RID: 9294
211 public Color _inactive;
212
213 // Token: 0x0400244F RID: 9295
214 public Color _activeOpacity;
215
216 // Token: 0x04002450 RID: 9296
217 public Color _inactiveOpacity;
218
219 // Token: 0x04002451 RID: 9297
220 public Color _passive;
221
222 // Token: 0x04002452 RID: 9298
223 public Color _mapHighlight;
224
225 // Token: 0x04002453 RID: 9299
226 public int Valid;
227
228 // Token: 0x04002454 RID: 9300
229 public int Warning;
230
231 // Token: 0x04002455 RID: 9301
232 public int Inactive;
233
234 // Token: 0x04002456 RID: 9302
235 public int Active;
236
237 // Token: 0x04002457 RID: 9303
238 public int ActiveOpacity;
239
240 // Token: 0x04002458 RID: 9304
241 public int InactiveOpacity;
242
243 // Token: 0x04002459 RID: 9305
244 public int Passive;
245
246 // Token: 0x0400245A RID: 9306
247 public int MapHighlight;
248 }
249
250 // Token: 0x0200087E RID: 2174
251 [Serializable]
252 public class TextColors
253 {
254 // Token: 0x0400245B RID: 9307
255 public Color damage;
256
257 // Token: 0x0400245C RID: 9308
258 public Color damagePC;
259
260 // Token: 0x0400245D RID: 9309
261 public Color damagePCParty;
262
263 // Token: 0x0400245E RID: 9310
264 public Color damageMana;
265
266 // Token: 0x0400245F RID: 9311
267 public Color damageStamina;
268 }
269
270 // Token: 0x0200087F RID: 2175
271 [Serializable]
272 public class PCLights
273 {
274 // Token: 0x04002460 RID: 9312
275 public LightData torch;
276
277 // Token: 0x04002461 RID: 9313
278 public LightData cateye;
279 }
280}