Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
DropdownRecipe.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public static Color colorCost;
6
7 public static Color colorPredict;
8
9 public Recipe recipe;
10
12
14
16
17 public void RefreshLabel()
18 {
20 }
21
22 public string GetLabel(Thing t, bool showColor)
23 {
24 if (t == null)
25 {
26 return " <color=" + colorCost.ToHex() + ">" + "noMaterial".lang() + "</color>";
27 }
29 int num = t.Num;
30 return string.Concat((showColor ? ("<color=" + t.material.matColor.ToHex() + ">■</color> ") : "") + t.NameSimple + " (" + num + ")", (summary.countValid == 0) ? "" : (" <color=" + colorCost.ToHex() + "> -" + ingredient.req * summary.countValid + "</color>"));
31 }
32}
BaseTileSelector tileSelector
SourceMaterial.Row material
Definition: Card.cs:1927
string NameSimple
Definition: Card.cs:2015
int Num
Definition: Card.cs:154
Definition: Core.cs:14
static new Core Instance
Definition: Core.cs:15
BaseGameScreen screen
Definition: Core.cs:67
static Color colorPredict
Recipe.Ingredient ingredient
string GetLabel(Thing t, bool showColor)
static Color colorCost
int countValid
Definition: HitSummary.cs:10
Definition: Recipe.cs:7
RecipeSource source
Definition: Recipe.cs:187
List< Ingredient > ingredients
Definition: Recipe.cs:164
Definition: Thing.cs:8
Definition: UIText.cs:6
void SetText(string s)
Definition: UIText.cs:159