public override void ShowTooltip(Vector3 mousePosition)
        {
            CheckForTutorialEvent eventInstance = new CheckForTutorialEvent();

            TooltipShowBehaviour.EngineService.Engine.ScheduleEvent(eventInstance, TooltipShowBehaviour.EngineService.EntityStub);
            if (!eventInstance.TutorialIsActive)
            {
                base.tooltipShowed = true;
                string[] data = new string[] { this.HeaderTipText, base.TipText };
                TooltipController.Instance.ShowTooltip(mousePosition, data, !base.customContentPrefab ? null : base.customPrefab, true);
            }
        }
예제 #2
0
        public virtual void ShowTooltip(Vector3 mousePosition)
        {
            CheckForTutorialEvent eventInstance = new CheckForTutorialEvent();

            EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub);
            if (!eventInstance.TutorialIsActive)
            {
                this.tooltipShowed = true;
                if (!this.customContentPrefab)
                {
                    TooltipController.Instance.ShowTooltip(mousePosition, this.tipText, null, this.defaultBackground);
                }
                else
                {
                    object customData = this.customData;
                    if (this.customData == null)
                    {
                        object local1 = this.customData;
                        customData = this.tipText;
                    }
                    TooltipController.Instance.ShowTooltip(mousePosition, customData, this.customPrefab, this.defaultBackground);
                }
            }
        }