예제 #1
0
        private void DrawActionListChangeLog(DropDownList list, Addon addon)
        {
            if (String.IsNullOrEmpty(addon.RemoteInfo.ChangeLog) || !GUILayout.Button("Change Log", this.buttonStyle))
            {
                return;
            }

            var changeLogGui = this.gameObject.AddComponent<ChangeLogGui>();
            changeLogGui.Name = addon.RemoteInfo.Name;
            changeLogGui.Text = addon.RemoteInfo.ChangeLog;
            list.ShowList = false;
        }
예제 #2
0
        private void DrawActionListDownload(DropDownList list, Addon addon)
        {
            if (String.IsNullOrEmpty(addon.RemoteInfo.Download))
            {
                return;
            }

            if (GUILayout.Button("Download", this.buttonStyle))
            {
                Application.OpenURL(addon.RemoteInfo.Download);
                list.ShowList = false;
            }
            if (Event.current.type == EventType.repaint)
            {
                list.ToolTip.Text = GUILayoutUtility.GetLastRect().Contains(Event.current.mousePosition) ? list.ToolTip.Text = addon.RemoteInfo.Download : String.Empty;
            }
        }
예제 #3
0
 private void DrawActionList(DropDownList list, Addon addon)
 {
     this.DrawActionListChangeLog(list, addon);
     this.DrawActionListDownload(list, addon);
 }