コード例 #1
0
ファイル: WizardController.cs プロジェクト: johndpope/FaceX
        internal static void DrawNext(IWizardPage wizardPage, string nextLabel)
        {
            var top       = ((EditorWindow)wizardPage).maxSize.y - 30;
            var firstRect = new Rect(150, top, ButtonWidth, ButtonHeight);


            if (GUI.Button(firstRect, nextLabel))
            {
                wizardPage.OnNext();
            }
        }
コード例 #2
0
ファイル: WizardController.cs プロジェクト: johndpope/FaceX
        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();
            }
        }