コード例 #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);
 }