Elin Decompiled Documentation EA 23.102 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
153 public void Init()
154 {
156 }
157
158 public Color GetRarityColor(int r, bool light = false)
159 {
161 Color result = rarityColors.colorC;
162 switch (r)
163 {
164 case 2:
165 result = rarityColors.colorR;
166 break;
167 case 3:
168 result = rarityColors.colorSR;
169 break;
170 case 4:
171 result = rarityColors.colorSSR;
172 break;
173 case 5:
174 result = rarityColors.colorLE;
175 break;
176 }
177 if (light)
178 {
179 result *= rarityColors.lightMod;
180 }
181 return result;
182 }
183
184 private void OnValidate()
185 {
186 if (Application.isPlaying && EClass.core.IsGameStarted)
187 {
189 }
190 }
191}
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 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:5
static Core core
Definition: EClass.cs:6
static Map _map
Definition: EClass.cs:18
void RefreshFOVAll()
Definition: Map.cs:943
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