1using System.Collections.Generic;
34 window.SetActive(enable:
false);
51 textHeader.text =
"knownRecipe".lang();
53 if (recipes.Count == 0)
64 for (
int i = 0; i < crafter.
numIng; i++)
70 string[] array2 = i
switch
80 string[] array3 = array2;
81 foreach (
string text2
in array3)
83 if (text2 != array2[0])
106 note.SetActive(traitRollingFortune !=
null);
107 if (traitRollingFortune !=
null)
111 window.SetActive(enable:
true);
112 window.RebuildLayout(recursive:
true);
113 void AddThing(
string id)
115 if (
id.IsEmpty() ||
id ==
"notImplemented" ||
id ==
"any")
121 id =
id.Replace(
"%",
"@");
122 string[] array =
id.Split(
'@');
125 if (
id.StartsWith(
'#'))
127 text =
id.Replace(
"#",
"");
132 if (array.Length >= 2)
137 Image componentInChildren = transform.GetComponentInChildren<Image>();
143 Transform obj =
Util.Instantiate(
moldCat, transform);
145 obj.GetComponentInChildren<
UIText>().SetText(
"category".lang());
146 s =
"ingCat".
lang(@ref);
148 component.tooltip.lang = s.ToTitleCase();
156 textHeader.text =
"knownFuel".lang();
185 window.SetActive(enable:
true);
186 window.RebuildLayout(recursive:
true);
187 void AddThing(
string id)
189 if (
id.IsEmpty() ||
id ==
"notImplemented" ||
id ==
"any")
195 id =
id.Replace(
"%",
"@");
196 string[] array =
id.Split(
'@');
199 if (
id.StartsWith(
'#'))
201 cat =
id.Replace(
"#",
"");
208 if (array.Length >= 2)
213 Image componentInChildren = transform.GetComponentInChildren<Image>();
219 Transform obj2 =
Util.Instantiate(
moldCat, transform);
221 obj2.GetComponentInChildren<
UIText>().SetText(
"(" +
"category".lang() +
")");
222 s =
"ingCat".
lang(@ref);
224 component.tooltip.lang = s.ToTitleCase();
virtual string GetName(int i)
static SourceManager sources
HashSet< int > knownCraft
int GetColorInt(SourceMaterial.Row mat)
void SetImage(Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0)
SourceCategory.Row Category
SourceMaterial.Row DefaultMaterial
Dictionary< string, CardRow > map
SourceCategory categories
void InitFuel(Card _owner)
override void Add(object item)
FortuneRollData GetOrCreateFortuneRollData(bool refresh=true)