2using System.Collections.Generic;
69 public Dictionary<string, int>
lastMats =
new Dictionary<string, int>();
75 public List<DropdownRecipe>
dds =
new List<DropdownRecipe>();
95 goInfo.SetActive(value:
true);
102 textName.text = a.
Name;
120 this.SetActive(enable:
true);
121 this.RebuildLayout(recursive:
true);
140 goInfo.SetActive(value:
true);
157 goInfo.SetActive(value:
false);
166 string text2 = (textDetail.text =
"");
176 this.RebuildLayout(recursive:
true);
189 text = text +
"<color=" +
colorCost.ToHex() +
"> -" + summary.money +
"</color>";
204 text = ((num == -1) ?
"-" : (num.ToString() ??
""));
205 DOTweenAnimation component =
textCostSP.GetComponent<DOTweenAnimation>();
206 Transform transform =
textCostSP.Find(
"nerun");
208 if ((
bool)component && !flag)
213 if ((
bool)component && flag)
215 component.tween.Restart();
219 transform.SetActive(flag);
227 if ((
bool)listVariations)
271 text = text +
"(" + recipe.id +
" " + recipe.renderRow.idRenderData +
"/" + ((tiles.Length != 0) ? tiles[0] : (-1)) +
")" + Environment.NewLine;
292 if (!detail.IsEmpty())
294 text = text + detail +
"\n\n";
296 text = text +
"( " + r.
tileType.
LangPlaceType.lang() +
" ) " + (r.tileType.LangPlaceType +
"_hint").lang();
319 goMoney.transform.SetAsLastSibling();
326 bool flag = r.CanRotate && r.renderRow !=
null;
327 int[] array = (flag ? r.renderRow._tiles :
null);
328 if (flag && array.Length <= 1)
332 uIList.SetActive(flag);
351 for (
int j = 0; j < array.Length; j++)
377 this.SetActive(enable:
true);
378 this.RebuildLayout(recursive:
true);
408 _ = reqSkill.Name +
" " + reqSkill.
Value;
409 str =
"reqSkill2".lang(reqSkill.
Name, reqSkill.
Value.ToString() ??
"", value.ToString() ??
"");
410 if (value < reqSkill.
Value)
419 List<GridItem> list =
new List<GridItem>();
428 gridItemCardSource.thing =
factory;
430 list.
Add(gridItemCardSource);
440 ddList.recipeInfo =
this;
462 dropdownRecipe.recipe = r;
463 dds.Add(dropdownRecipe);
465 int num = thingStack.
count;
467 dropdownRecipe.SetList(0,
new List<string> { ingredient.id }, (
string n,
int i) =>
"<color=" + color.ToHex() +
">" + ingredient.GetName() +
" x " + ingredient.req +
" (" + num +
")</color>", delegate
470 dropdownRecipe.textLabel.text = dropdownRecipe.
orgLabel.text;
473 textCost.text = r.
CostMoney.ToString() ??
"";
479 uIList.
Add(ingredient);
BaseTileSelector tileSelector
ElementContainerCard elements
int GetCurrency(string id="money")
Thing Add(string id, int num=1, int lv=1)
void BuildIngredients(Recipe _recipe, Image _icon, Action _onValueChange, StockSearchMode _searchMode)
void Build(List< GridItem > items)
static BaseGameScreen screen
static SourceManager sources
Element GetOrCreateElement(Element ele)
static string _Number(int a)
Dictionary< string, PropSet > cardMap
ThingStack ListThingStack(Recipe.Ingredient ing, StockSearchMode searchMode)
Dictionary< string, int > knownRecipes
int GetSPCost(Card factory)
void SetTextDifficulty(UIText text)
virtual void WriteNote(UINote n)
virtual string GetIdThing()
virtual void SetDir(int d)
virtual TileType tileType
virtual void OnSelected()
virtual RenderRow renderRow
List< Ingredient > ingredients
virtual string GetDetail()
virtual SourceMaterial.Row GetColorMaterial()
int GetColorInt(SourceMaterial.Row mat)
void SetImage(Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0)
static SkinColorProfile CurrentColors
Dictionary< string, CardRow > map
ThingStack GetThingStack(string id, int refVal=-1)
virtual string LangPlaceType
override void Add(object item)
virtual void Refresh(bool highlightLast=false)
UIItem AddText(string text, FontColor color=FontColor.DontChange)
void Space(int sizeY=0, int sizeX=1)
Dictionary< string, int > lastMats
List< DropdownRecipe > dds
StockSearchMode searchMode
void Select(UIButton button, bool check=true)
virtual void Init(int index=0, UnityAction< int > action=null, bool directChildren=false)