1using System.Collections.Generic;
72 Mathf.Clamp((
float)
e.
Potential / 300f, 0.1f, 1f);
80 string text3 = text +
e.
Name;
83 text3 =
"feat_network".lang(text3);
86 subText.horizontalOverflow = HorizontalWrapMode.Overflow;
87 subText.text =
e.
GetDetail().SplitNewline()[0].StripLastPun();
95 case Mode.FeatPurchase:
101 subText.text =
e.
GetDetail().SplitNewline()[0].StripLastPun();
109 if (
e.
source.category ==
"ether")
133 bool flag = e.source.category ==
"skill";
143 int num = (e.Potential - 80) / 20;
144 imagePotential.enabled = e.Potential != 80;
146 imagePotential.color = ((num >= 0) ?
Color.white :
new Color(1f, 0.7f, 0.7f));
170 IList<BodySlot> list = c.
body.
slots.Copy();
174 if (
item.elementId == 44)
182 uIItem.
text1.SetActive(enable:
false);
183 uIItem.image1.color =
Color.white.SetAlpha(0.5f);
190 uIItem.image1.color =
Color.white.SetAlpha(0.5f);
200 uIItem.
text1.SetActive(enable:
false);
201 uIItem.image1.color =
Color.white.SetAlpha(0.5f);
207 uIItem.
text1.SetActive(enable:
false);
208 uIItem.image1.color =
Color.white.SetAlpha(0.5f);
210 text = (e.IsFlag ?
"✓" : (Mathf.Abs(num).ToString() ??
""));
233 text = text +
" (" + (flag ?
"?" : (e.IsFlag ?
"✓" : (value.ToString() ??
""))) +
")";
235 if (sprite !=
null && (
bool)
icon)
237 icon.sprite = sprite;
ElementContainerCard elements
int GetCurrency(string id="money")
int GetSortVal(BodySlot slot)
List< Sprite > spritesPotential
static ColorProfile Colors
static FactionBranch Branch
int ValueWithoutLink(int ele)
bool IsFactionElement(Chara c)
virtual bool IsPurchaseFeatReqMet(ElementContainer owner, int lv=-1)
virtual Sprite GetIcon(string suffix="")
static int GetResistLv(int v)
void WriteNoteWithRef(UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle)
virtual void SetTextValue(UIText text)
static Element Create(int id, int v=0)
virtual bool CanLink(ElementContainer owner)
void WriteNote(UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
virtual string GetDetail()
int GetTechUpgradeCost(Element e)
ElementContainerZone elements
static string[] GetList(string id)
HashSet< int > trackedElements
static WindowChara Instance