2using System.Collections.Generic;
54 EClass.game.config.autoCollectCard = a;
75 b.subText.text = a.
numCard.ToString() ??
"";
81 int idSkin = ((EClass.core.config.game.antiSpider && a.source.race ==
"spider" && a.source.tiles.Length > 1) ? 1 : 0);
86 List<CodexCreature>
list =
new List<CodexCreature>();
102 bool flag = list.objects.Count > 0;
116 if (codexCreature !=
null)
121 UIItem uIItem = uINote.
AddHeader(
"HeaderCodex", codexCreature.
Name.Replace(
"『", Environment.NewLine +
"『"));
122 int idSkin = ((EClass.core.config.game.antiSpider && codexCreature.source.race ==
"spider" && codexCreature.source.tiles.Length > 1) ? 1 : 0);
124 uIItem.text2.text =
"Lv." + source.LV + Environment.NewLine +
EClass.
sources.
races.map[source.
race].GetName().ToTitleCase(wholeText:
true) + Environment.NewLine +
EClass.
sources.
jobs.map[source.
job].GetName().ToTitleCase(wholeText:
true);
125 uIItem.image1.rectTransform.pivot =
pivot;
126 uIItem.image1.rectTransform.localPosition =
localPos;
127 uIItem.image1.rectTransform.localScale =
new Vector3(0f - uIItem.
image1.transform.localScale.x, uIItem.
image1.transform.localScale.y, 1f);
129 textOwn.text = codexCreature.
numCard.ToString() ??
"";
130 textValue.text = codexCreature.
source.value.ToString() ??
"";
131 textKills.text = codexCreature.
kills.ToString() ??
"";
133 textSpawns.text = codexCreature.
spawns.ToString() ??
"";
153 Msg.
Say(
"addedCards", num, num.ToString() ??
"");
177 EClass.game.config.autoCollectCard =
false;
179 EClass.game.config.autoCollectCard = autoCollectCard;
void MakeFigureFrom(string id)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
void SetImage(Image image, int idSkin=0, bool nativeSize=true)
void AddCard(string id, int num=1)
Dictionary< string, CodexCreature > creatures
static void Collect(Thing t)
override void OnSwitchContent(int idTab)
CodexCreature currentCodex
UIButton buttonToggleCollect
static SourceManager sources
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
static Thing Create(string id, int idMat=-1, int lv=-1)
override void Add(object o)
bool Select(object o, bool invoke=false)
UIItem AddHeader(string text, Sprite sprite=null)