Пример #1
0
        internal static void DrawResetBackNext(IWizardPage wizardPage, bool isResetButton, string nextLabel)
        {
            var top       = ((EditorWindow)wizardPage).maxSize.y - 30;
            var resetRect = new Rect(20, top, ButtonWidth, ButtonHeight);
            var backRect  = new Rect((isResetButton ? resetRect.xMax : 0) + 20, top, ButtonWidth, ButtonHeight);
            var nextRect  = new Rect(backRect.xMax + 20, top, ButtonWidth, ButtonHeight);

            if (isResetButton)
            {
                if (GUI.Button(resetRect, "Reset"))
                {
                    wizardPage.OnReset();
                }
            }
            if (GUI.Button(backRect, "Back"))
            {
                wizardPage.OnBack();
            }
            if (GUI.Button(nextRect, nextLabel))
            {
                wizardPage.OnNext();
            }
        }