1using System.Collections.Generic;
40 if ((
bool)componentOf && componentOf.transform.IsChildOf(base.transform))
49 if (Input.GetMouseButton(0))
52 if ((
bool)componentOf2 && componentOf2.transform.IsChildOf(base.transform) && ELayer.player.waitingInput && ELayer.pc.HasNoGoal && componentOf2.recipe.id ==
idLastRecipe)
116 b.
Attach(
"recipe_new", rightAttach:
false);
118 b.onRightClick = delegate
142 UIContextMenu uIContextMenu = ((a.ingredients.Count == 1) ? i : i.
AddChild(ing.GetName() +
"x" + ing.req));
143 List<Thing>
list =
new List<Thing>();
148 for (
int j = point.
x - 1; j < point.
x + 2; j++)
154 for (
int k = point.
z - 1; k < point.
z + 2; k++)
174 uIContextMenu.AddGameObject(uIButton);
177 uIButton.onClick.AddListener(delegate
210 if (recipeSource !=
null)
216 b.
mainText.SetActive(enable:
false);
234 RectTransform rectTransform =
windows[0].Rect();
235 float x = rectTransform.sizeDelta.x;
236 float num =
list.Rect().sizeDelta.y;
242 rectTransform.RebuildLayout();
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
void SetTurbo(int mtp=-1)
UIList.ICallback callbacks
void SetImage(Image image, int dir, int idSkin=0)
static LayerCraftFloat Instance
void RefreshDisassemble()
override void OnSwitchContent(Window window)
UIButton moldButtonContext
void ShowContextMenu(Recipe a)
void EndTurn(bool consume=true)
static RecipeSource Get(string id)
HashSet< string > hoveredRecipes
void Build(Point _p, Mode _mode=Mode.Passive)
static HashSet< Recipe > recipes
static List< Thing > listD
List< Ingredient > ingredients
static Recipe Create(RecipeSource _source, int idMat=-1, Thing ing=null)
virtual void OnChangeIngredient()
bool IsIngredientsValid(bool destoryResources=false, int numCraft=1)
void GetIngredients(Recipe.Ingredient ing, List< Thing > list)
override void Add(object o)
void Space(int sizeY=0, int sizeX=1)