Beispiel #1
0
        public void SetHotkey(KeyCode hotkey)
        {
            this.hotkey = hotkey;

            this.hotkeyBadge.gameObject.SetActive(true);
            this.hotkeyText.text = KeyCodes.GetLabel(this.hotkey);
        }
Beispiel #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}";
        }
Beispiel #3
0
 protected override void OnPointerEnter()
 {
     Tooltip.Instance.Show(
         $"[{KeyCodes.GetLabel(this.hotkey)}] {I18N.Instance.Get(this.tooltipKey)}",
         GetComponent <RectTransform>());
 }