Summary description for MultiButtonMessageBox.
Inheritance: Window
コード例 #1
0
        static public MultiButtonMessageBox AddMultiButtonMessageBox()
        {
            MultiButtonMessageBox mbmb = new MultiButtonMessageBox(Cursor);

            mbmb.Parent = null;

            mDominantWindows.Add(mbmb);

            return(mbmb);
        }
コード例 #2
0
        public AdvancedShapeCollectionLoadingWindow(Cursor cursor, MultiButtonMessageBox mbmb, TypesToLoad typesToLoad) : base(cursor)
        {
            this.AddWindow(mbmb);

            this.ScaleX = mbmb.ScaleX + 12.5f;
            mbmb.DrawBorders = false;
            mbmb.X = mbmb.ScaleX;

            mbmb.RemoveButton(mbmb.GetButton("Advanced >>"));
            // Maybe one day we want to allow the user to go back to the 
            // basic view?  It's a pain, so I won't do that now

            mbmb.Y = mbmb.ScaleY;
            this.ScaleY = mbmb.ScaleY + 1;


            //Button cancelButton = mbmb.GetButton("Cancel");
            //mbmb.RemoveButton(cancelButton);
            mbmb.HasMoveBar = false;
            mbmb.HasCloseButton = false;
            this.HasMoveBar = true;

            //mbmb.AddButton(cancelButton);

            TextDisplay textDisplay = new TextDisplay(cursor);
            textDisplay.Text = "Offset";
            this.AddWindow(textDisplay);
            textDisplay.X = mbmb.ScaleX * 2;
            textDisplay.Y = 1;

            offsetWindow = new Vector3Display(cursor);
            this.AddWindow(offsetWindow);
            offsetWindow.X = mbmb.ScaleX * 2 + offsetWindow.ScaleX ;
            offsetWindow.Y = offsetWindow.ScaleY + 2;

            mbmb.Closing += new GuiMessage(CloseThis);
            this.Name = "";

            PropertyGrid<TypesToLoad> propertyGrid = new PropertyGrid<TypesToLoad>(cursor);
            propertyGrid.ObjectDisplaying = typesToLoad;
            propertyGrid.HasMoveBar = false;
            propertyGrid.HasCloseButton = false;

            this.AddWindow(propertyGrid);
            propertyGrid.X = mbmb.ScaleX * 2 + propertyGrid.ScaleX - 1; // subtract 1 because we're not going to show the frames
            propertyGrid.Y = propertyGrid.ScaleY + 2 + offsetWindow.ScaleY * 2 + .5f;

            propertyGrid.DrawBorders = false;

        }
コード例 #3
0
ファイル: FileLoader.cs プロジェクト: vchelaru/FlatRedBall
        private static MultiButtonMessageBox CreateMbmb(string fileName)
        {
            MultiButtonMessageBox newMbmb = new MultiButtonMessageBox(GuiManager.Cursor);

            newMbmb.ScaleX = 20;
            newMbmb.Text = "Replace or Insert this file?\n\n" + fileName;

            newMbmb.Name = "";

            newMbmb.AddButton("Replace", ReplaceClicked);
            newMbmb.AddButton("Insert", InsertClicked);
            newMbmb.AddButton("Advanced >>", AdvancedClick);
            newMbmb.AddButton("Cancel", null);
            return newMbmb;
        }
コード例 #4
0
ファイル: FileLoader.cs プロジェクト: vchelaru/FlatRedBall
        public static void LoadShapeCollectionAskReplaceOrInsert(string fileName)
        {
            mFileNameToLoad = fileName;

            MultiButtonMessageBox newMbmb = CreateMbmb(fileName);

            mLastMbmb = newMbmb;
            GuiManager.AddWindow(mLastMbmb);   
        
        }