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))); }
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); } }
public static string GetInputControlName(InputControl inputControl) { return("<b><color=\"red\">" + InputControlLookup.GetInputControlRawName(inputControl) + "</color></b>"); }