示例#1
0
        public SkillSlot(CoreInteractiveObject AssociatedInteractiveObject, InteractiveObjectActionPlayerSystem interactiveObjectActionPlayerSystem, ref SKillSlotUIPositionInput SKillSlotUIPositionInput,
                         InputID AssociatedInput)
        {
            this.AssociatedInteractiveObject          = AssociatedInteractiveObject;
            this._interactiveObjectActionPlayerSystem = interactiveObjectActionPlayerSystem;
            this.AssociatedInput = AssociatedInput;
            this.SkillSlotUI     = new SkillSlotUI(ref SKillSlotUIPositionInput);
            this.CurrentPlayerActionInherentData = new ObjectVariable <InteractiveObjectActionInherentData>(this.OnCurrentPlayerActionInherentDataChanged);

            this.SkillSlotUI.SetInputText(InputControlLookup.GetInputControlRawName(InputControlLookup.FindTheFirstInputControlForInputID(this.AssociatedInput)));
        }
示例#2
0
        public ProjectileDeflectionFeedbackIcon(GameObject instanciatedGameObject, InputID DisplayedInput)
        {
            InstanciatedGameObject = instanciatedGameObject;
            this.Transform         = this.InstanciatedGameObject.transform as RectTransform;
            this.mainCamera        = Camera.main;
            this.inputText         = this.Transform.GetComponentInChildren <TMPro.TextMeshProUGUI>();

            var feedbackInputControl = InputControlLookup.FindTheFirstInputControlForInputID(DisplayedInput);

            if (feedbackInputControl != null)
            {
                this.inputText.text = InputControlLookup.GetInputControlRawName(feedbackInputControl);
            }
        }
示例#3
0
 public static string GetInputControlName(InputControl inputControl)
 {
     return("<b><color=\"red\">" + InputControlLookup.GetInputControlRawName(inputControl) + "</color></b>");
 }