Esempio n. 1
0
        public void SetHotkey(KeyCode hotkey)
        {
            this.hotkey = hotkey;

            this.hotkeyBadge.gameObject.SetActive(true);
            this.hotkeyText.text = KeyCodes.GetLabel(this.hotkey);
        }
Esempio n. 2
0
        public void Construct(DialogueAction action, KeyCode hotkey)
        {
            this.action = action;
            this.hotkey = hotkey;

            this.text.text = $"{KeyCodes.GetLabel(this.hotkey)}. {this.action.Text}";
        }
Esempio n. 3
0
 protected override void OnPointerEnter()
 {
     Tooltip.Instance.Show(
         $"[{KeyCodes.GetLabel(this.hotkey)}] {I18N.Instance.Get(this.tooltipKey)}",
         GetComponent <RectTransform>());
 }