56 note.SetActive(enable:
false);
58 textInfo1.text =
"_DV".lang(
chara.
DV.ToString() ??
"",
chara.
PV.ToString() ??
"");
63 Header(
"resistance",
null);
104 if (list.
items.Count == 0)
106 _header.SetActive(enable:
false);
107 list.SetActive(enable:
false);
109 Header(
"etherDisease",
null);
130 if (list.
items.Count == 0)
132 _header.SetActive(enable:
false);
133 list.SetActive(enable:
false);
135 Header(
"innateFeats",
null);
188 int num = upgrades.
spent;
193 note.SetActive(enable:
true);
202 note.
AddText(
"upgraded".lang(element.
Name.ToTitleCase(), item6.value.ToString() ??
"", item6.cost.ToString() ??
""));
219 uIItem.
button2.SetOnClick(delegate
227 Dialog.YesNo(
"dialog_removeGene", delegate
231 genes.Remove(chara, g);
236 uIItem.button2.SetActive(genes !=
null && genes.
inferior > 0);
253 if (upgrades.count > 0)
257 upgrades.Reset(
chara);
266 note.SetActive(enable:
true);
270 void Header(
string lang,
string lang2)
302 b.button1.interactable =
false;
309 b.button1.icon.material = matItem;
314 b.button1.icon.material =
null;
316 b.button1.icon.color = colorUnequipped;
SourceElement.Row element
ElementContainerCard elements
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)