private static void DrawTestPage() { EditorStyleAddOns.DrawHelpBox("HelpBox test!!", MessageType.Info); GUILayout.BeginVertical(); GUILayout.Space(20); EditorStyleAddOns.DrawLink(InstallerStyle.InstallIcon, "TEST BUTTON!!", "", CoreAddOns.InstallTestPackage, null); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); }
private static void DrawTestPage2() { GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); EditorStyleAddOns.DrawLink(InstallerStyle.InstallIcon, "Sub-Button 1", "Test sub-button 1!", CoreAddOns.OpenUrl, "www.google.com"); EditorStyleAddOns.DrawLink(InstallerStyle.TestIcon, "Sub-Button 2", "Test sub-button 2!", CoreAddOns.OpenUrl, "www.youtube.com"); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); }
private void DrawHome() { GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); EditorStyleAddOns.DrawLink(InstallerStyle.InstallIcon, "Install the package", "Install the latest version of the package.", GotoPage, Pages.Install); EditorStyleAddOns.DrawLink(InstallerStyle.TestIcon, "Test page 2", "That's the second page :D", GotoPage, Pages.TestPage); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); }