internal void Show(Vector3 position, WUITipable wUITipable) { _components.colorGraphic.color = wUITipable.color; _components.colorGraphic2.color = wUITipable.color; base.transform.position = position; _components.nameText.text = wUITipable.name; _components.descriptionText.text = wUITipable.description; _components.descriptionText.gameObject.SetActive(!(wUITipable.description == "" || wUITipable.description == string.Empty)); if (!base.gameObject.activeSelf) { base.gameObject.SetActive(true); } }
private void Stay(RaycastResult raycastResult, Selectable selectable, PointerEventData pointerEventData) { _data.deltaSelectable = selectable; controllableCamera.user.hUD.SetReticleHighlight(selectable.colors.normalColor); WUITipable wUITipable = selectable.gameObject.GetComponentInParent <WUITipable>(); if (wUITipable != null) { controllableCamera.user.editorWUI.ShowTip(wUITipable); } Type selectableType = selectable.GetType(); if (selectableType.BaseType == typeof(WUIChartable)) { WUIChartable wUIChartable = ((WUIChartable)selectable); wUIChartable.ChartPreview((raycastResult.distance * base.transform.forward) + base.transform.position); } }
internal void ShowTip(WUITipable wUITipable) { baseComponents.wUITip.Show(baseData.deltaPosition, wUITipable); }