Пример #1
0
        private void DrawDownloadButton()
        {
            if (String.IsNullOrEmpty(this.Addon.RemoteInfo.Download))
            {
                return;
            }

            if (GUILayout.Button("DOWNLOAD", this.buttonStyle))
            {
                Application.OpenURL(this.Addon.RemoteInfo.Download);
            }

            if (this.toolTipGui == null)
            {
                this.toolTipGui = this.gameObject.AddComponent <ToolTipGui>();
            }
            this.toolTipGui.Text = GUILayoutUtility.GetLastRect().Contains(Event.current.mousePosition) ? this.Addon.RemoteInfo.Download : String.Empty;
        }
Пример #2
0
        private void DrawDownloadButton()
        {
            if (String.IsNullOrEmpty(this.Addon.RemoteInfo.Download))
            {
                return;
            }

            if (GUILayout.Button("DOWNLOAD", this.buttonStyle))
            {
                Application.OpenURL(this.Addon.RemoteInfo.Download);
            }

            if (this.toolTipGui == null)
            {
                this.toolTipGui = this.gameObject.AddComponent<ToolTipGui>();
            }
            this.toolTipGui.Text = GUILayoutUtility.GetLastRect().Contains(Event.current.mousePosition) ? this.Addon.RemoteInfo.Download : String.Empty;
        }