protected override bool DrawWizardGUI() { // Reapply title if needed if (titleContent != Title) { titleContent = Title; } // Layout window Vector2 size = Vector2.zero; WitEditorUI.LayoutWindow(ContentHeaderLabel, HeaderIcon, HeaderUrl, LayoutContent, ref scrollOffset, out size); // Set wizard to max width size.x = WitStyles.WindowMaxWidth; // Wizards add additional padding size.y += 70f; // Clamp wizard sizes maxSize = minSize = size; // True if valid server token return(false); }
// Handle Layout protected virtual void OnGUI() { Vector2 size; WitEditorUI.LayoutWindow(titleContent.text, HeaderIcon, HeaderUrl, LayoutContent, ref ScrollOffset, out size); }