public void UpdateInteraction(InteractionInfo current) { _LastInteraction = current; this.ToolTip.enabled = current != null; if (current != null) { Sprite sprite = current.interactable.GetInteractionIcon(current.interaction); iconImage.sprite = sprite; iconImage.color = (sprite == null ? emptyColor : Color.white); backgroundImage.color = backgroundColor; frameImage.color = Color.white; Pair <string, string>[] substitutions = new Pair <string, string>[] { new Pair <string, string>("keyBinding", Helper.GetKeyCodeName(SettingsHandler.GetCurrentSettings().keybindings[Keybinding.MultipleOrders])) }; String tooltipTitle = current.interactable.GetInteractionName(current.interaction, this.Human); String tooltipText = Helper.SubstituteCode("interactionChainIconDesc", substitutions); this.ToolTip.Init(tooltipTitle, tooltipText); } else { iconImage.color = emptyColor; backgroundImage.color = emptyColor; frameImage.color = emptyColor; } }