8 public override void OnAfterInit()
11 TooltipManager.Instance.HideTooltips(
true);
15 public void SetElement(
Element e)
17 this.windows[0].SetCaption(e.Name);
18 this.info.SetElement(e);
22 public void Set(
object o,
bool _examine =
false)
26 this.SetThing(o as
Thing, _examine);
31 public void SetThing(
Thing t,
bool _examine =
false)
33 this.examine = _examine;
34 this.windows[0].SetCaption(t.NameSimple.ToTitleCase(
false));
35 this.info.SetThing(t);
39 public void SetBlock(
Cell cell)
41 this.windows[0].SetCaption(cell.GetBlockName());
42 this.info.SetBlock(cell);
46 public void SetFloor(
Cell cell)
48 this.windows[0].SetCaption(cell.GetFloorName());
49 this.info.SetFloor(cell);
53 public void SetLiquid(
Cell cell)
55 this.windows[0].SetCaption(cell.GetLiquidName());
56 this.info.SetLiquid(cell);
60 public void SetZone(
Zone z)
63 this.note.AddHeader(z.Name,
null);
64 this.note.AddText(z.source.GetDetail(), FontColor.DontChange);
69 public void SetObj(
Cell cell)
71 this.windows[0].SetCaption(cell.sourceObj.GetName());
72 this.info.SetObj(cell);
76 public override void OnKill()
79 TweenUtil.Tween(0.2f, delegate()
81 UIButton.TryShowTip<UIButton>(
null,
true,
false);
86 public override void OnUpdateInput()
89 if (this.examine &&
ELayer.core.config.input.altExamine)
91 if (!Input.GetKey(EInput.keys.examine.key))
97 else if (Input.GetKeyDown(EInput.keys.examine.key))