10 public void SetItems(List<Thing> things)
12 foreach (
Thing t
in things)
20 public void SetItemsOnHitPoint()
22 this.inspectMap =
true;
28 public override void OnUpdateInput()
34 if (Input.GetMouseButtonDown(0))
36 if (!
ELayer.ui.isPointerOverUI &&
Scene.HitPoint.IsValid)
38 this.SetItemsOnHitPoint();
44 bool anyKeyDown = Input.anyKeyDown;
52 BaseList baseList = this.list;
65 b.SetCard(a.card, FontColor.Ignore);
68 b.mainText.text = a.text;
69 if (a.renderRow !=
null)
71 a.renderRow.SetImage(b.icon,
null, 0,
true, 0, 0);
74 baseList.callbacks = callback;
75 this.list.AddCollection(this.items);
76 this.list.Refresh(
false);
107 foreach (
Card card
in point.ListCards(
false))
114 if (point.area !=
null)
118 menuItem.text = point.area.Name;
119 menuItem.action = delegate()
124 if (point.cell.HasLiquid)
128 text = point.cell.GetLiquidName(),
131 ELayer.ui.AddLayer<LayerInfo>().SetLiquid(point.cell);
133 renderRow = point.cell.sourceEffect
136 if (point.matBlock.id != 0)
140 text = point.cell.GetBlockName(),
143 ELayer.ui.AddLayer<LayerInfo>().SetBlock(point.cell);
145 renderRow = point.cell.sourceBlock
148 if (point.matFloor.id != 0)
152 text = point.cell.GetFloorName(),
155 ELayer.ui.AddLayer<LayerInfo>().SetFloor(point.cell);
157 renderRow = point.cell.sourceFloor
160 if (point.cell.obj != 0)
164 text = point.sourceObj.GetName(),
167 ELayer.ui.AddLayer<LayerInfo>().SetObj(point.cell);
169 renderRow = point.cell.sourceObj
176 public bool inspectMap;
194 public UnityAction action;