57 note.SetActive(enable:
false);
59 textInfo1.text =
"_DV".lang(
chara.
DV.ToString() ??
"",
chara.
PV.ToString() ??
"");
64 Header(
"resistance",
null);
105 if (list.
items.Count == 0)
107 _header.SetActive(enable:
false);
108 list.SetActive(enable:
false);
110 Header(
"etherDisease",
null);
131 if (list.
items.Count == 0)
133 _header.SetActive(enable:
false);
134 list.SetActive(enable:
false);
136 Header(
"innateFeats",
null);
189 int num = upgrades.
spent;
194 note.SetActive(enable:
true);
198 string text = (chara.isScaled ?
"feat_pet_type2_hint" :
"feat_pet_type1_hint").lang();
201 text = text + Environment.NewLine + (
chara.
CanBloom() ?
"petawaken2" :
"petawaken1").lang();
203 componentInChildren.tooltip.lang = text;
210 note.
AddText(
"upgraded".lang(element.
Name.ToTitleCase(), item6.value.ToString() ??
"", item6.cost.ToString() ??
""));
227 uIItem.
button2.SetOnClick(delegate
235 Dialog.YesNo(
"dialog_removeGene", delegate
239 genes.Remove(chara, g);
241 chara.RemoveAllStances();
245 uIItem.button2.SetActive(genes !=
null && genes.
inferior > 0);
262 if (upgrades.count > 0)
266 upgrades.Reset(
chara);
275 note.SetActive(enable:
true);
279 void Header(
string lang,
string lang2)
311 b.button1.interactable =
false;
318 b.button1.icon.material = matItem;
323 b.button1.icon.material =
null;
325 b.button1.icon.color = colorUnequipped;
SourceElement.Row element
ElementContainerCard elements
bool HasElement(int ele, int req=1)
void SetImage(Image image, int dir, int idSkin=0)
AttackStyle GetAttackStyle()
int GetWeight(bool armorOnly=false)
override int GetArmorSkill()
void TryUpgrade(bool msg=true)
static SourceManager sources
List< Element > ListElements(Func< Element, bool > shoudList=null, Comparison< Element > comparison=null)
Element GetOrCreateElement(Element ele)
int GetSortVal(UIList.SortMode m)
static Element Create(int id, int v=0)
static int[] List_MainAttributesMajor
static string _weight(int a, int b, bool showUnit=true, int unitSize=0)
static Sprite Get(string id)
override void WriteNote(UINote n, Action< UINote > onWriteNote=null, IInspect.NoteMode mode=IInspect.NoteMode.Default, Recipe recipe=null)
static void AddAttackEvaluation(UINote n, Chara chara, Thing current=null)
override void Add(object item)
void ChangeSort(SortMode m)
UIItem AddItem(string id)
UIItem AddHeader(string text, Sprite sprite=null)
UIButton AddButton(string text, Action onClick)
UIItem AddText(string text, FontColor color=FontColor.DontChange)
void Space(int sizeY=0, int sizeX=1)
static Transform Instantiate(string path, Component parent=null)
override void OnSwitchContent(Window window)
static void RefreshNote(Chara chara, UINote n, bool shortMode=false)