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; }
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; } }
private void DrawActionList(DropDownList list, Addon addon) { this.DrawActionListChangeLog(list, addon); this.DrawActionListDownload(list, addon); }