1using System.Collections.Generic;
3using UnityEngine.Events;
24 public List<MenuItem>
items =
new List<MenuItem>();
28 foreach (
Thing thing
in things)
48 if (Input.GetMouseButtonDown(0))
81 b.mainText.text = a.
text;
115 List<MenuItem>
list =
new List<MenuItem>();
121 foreach (
Card item in point.ListCards())
128 if (point.area !=
null)
132 text = point.area.Name,
138 if (point.cell.HasLiquid)
142 text = point.cell.GetLiquidName(),
147 renderRow = point.cell.sourceEffect
150 if (point.matBlock.id != 0)
154 text = point.cell.GetBlockName(),
159 renderRow = point.cell.sourceBlock
162 if (point.matFloor.id != 0)
166 text = point.cell.GetFloorName(),
171 renderRow = point.cell.sourceFloor
174 if (point.cell.obj != 0)
178 text = point.sourceObj.GetName(),
183 renderRow = point.cell.sourceObj
void SetItemsOnHitPoint()
static List< MenuItem > GetMenuItems()
override void OnUpdateInput()
static MenuItem GetItem(Card t)
void SetItems(List< Thing > things)
void SetImage(Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0)
override void Add(object item)
void AddCollection(ICollection collection)
virtual void Refresh(bool highlightLast=false)