Esempio n. 1
0
 internal void SaveApplicationParameters(SunbirdMBWindow window)
 {
     WindowHeight = window.Height;
     WindowWidth  = window.Width;
     WindowLeft   = window.Left;
     WindowTop    = window.Top;
 }
Esempio n. 2
0
 internal void LoadApplicationParameters(SunbirdMBWindow window)
 {
     window.Height = WindowHeight;
     window.Width  = WindowWidth;
     window.Left   = WindowLeft;
     window.Top    = WindowTop;
 }
Esempio n. 3
0
 internal void OnAfterContentBuild()
 {
     SunbirdMBWindow.PumpToSplash(() => SunbirdMBSplash.ViewModel.Message = "Importing Deco Content...");
     // Import all decos into their deco catalogs from the Content\Decos folder.
     ImportAll();
     // Initial current selections are set here.
     // TODO: Currently we just pick the first item in our tabs.
     SelectDeco(DecoCatalog1x1x1.DecoCollection[0]);
     SelectDeco(DecoCatalog1x1x2.DecoCollection[0]);
     SelectDeco(DecoCatalog1x1x3.DecoCollection[0]);
     SelectDeco(DecoCatalog2x2x2.DecoCollection[0]);
     SelectDeco(DecoCatalog3x3x3.DecoCollection[0]);
     // Current metadata to display in the deco catalog properties window.
     CurrentMetadata = DecoCatalog1x1x1.DecoCollection[0].DecoMetadata;
 }
Esempio n. 4
0
        internal void OnAfterContentBuild()
        {
            SunbirdMBWindow.PumpToSplash(() => SunbirdMBSplash.ViewModel.Message = "Importing Cube Content...");
            // Import all cube parts into the cube designer from the Content\Cubes folder.
            ImportAll();

            //SunbirdMBWindow.PumpToSplash(() => SunbirdMBSplash.ViewModel.Message = "Building Cube Designer Library...");
            // Build our cube factory library by creating textures from paths.
            //CubeFactory.BuildLibrary(MainGame);

            // Initial current selections are set here.
            // TODO: Currently we just pick the first item in our tabs.
            SelectTop(CubeTopCollection[0]);
            SelectBase(CubeBaseCollection[0]);
            // Currently our metadata to display in the Properties window is just the current cube top.
            // This just depends on which tab is selected on start-up.
            CurrentMetadata = CurrentCubeTopMetadata;
        }