Exemplo n.º 1
0
        }   // end of MainMenu Deactivate()

        public void LoadContent(bool immediate)
        {
            BokuGame.Load(shared, immediate);
            BokuGame.Load(noCommunityMessage, immediate);
            BokuGame.Load(noSharingMessage, immediate);
            BokuGame.Load(newWorldDialog, immediate);
        }   // end of MainMenu LoadContent()
Exemplo n.º 2
0
        }   // end of VictoryOverlay Render()

        public static void LoadContent(bool immediate)
        {
            if (effect == null)
            {
                // Use the help overlay shader since it does what we want.
                effect = BokuGame.Load <Effect>(BokuGame.Settings.MediaPath + @"Shaders\HelpOverlay");
            }

            // Read in the textures.
            try
            {
                textureTeam       = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\WinTeam");
                textureOptions    = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\WinOptions");
                textureOptionsKey = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\WinOptionsKey");
                textureWinner     = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\Winner");
                textureGameOver   = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\GameOver");
            }
            catch (ContentLoadException e)
            {
                if (e != null)
                {
                    Debug.Assert(false, "Missing content.");
                }
            }
        }   // end of VictoryOverlay LoadContent()
Exemplo n.º 3
0
 public void LoadContent(bool immediate)
 {
     BokuGame.Load(shared, immediate);
     BokuGame.Load(renderObj, immediate);
     BokuGame.Load(openingSharingRoomMessage, immediate);
     BokuGame.Load(openingInviteGuideMessage, immediate);
 }
Exemplo n.º 4
0
            }   // end of ChangeExpression()

            public void LoadContent(bool immediate)
            {
                if (backgroundTexture == null)
                {
                    if (BokuGame.bMarsMode)
                    {
                        backgroundTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenuWidescreenMars");
                        //jplTexture = BokuGame.Load<Texture2D>(BokuGame.Settings.MediaPath + @"Textures\nasajpl");
                    }
                    else
                    {
#if NETFX_CORE
                        backgroundTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenuWidescreenMG");
#else
                        backgroundTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenuWidescreen");
#endif
                    }
                }

                if (blueArrowTexture == null)
                {
                    blueArrowTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\GridElements\BlueArrow");
                }

                BokuGame.Load(boku, immediate);
                BokuGame.Load(menu, immediate);
                BokuGame.Load(optionsMenu, immediate);
                BokuGame.Load(liveFeed, immediate);
            }   // end of MainMenu Shared LoadContent()
Exemplo n.º 5
0
        public GateBot()
            : base()
        {
            this.classification = new Classification("gatebot",
                                                     Classification.Colors.White,
                                                     Classification.Shapes.Ball,
                                                     Classification.Tastes.None,
                                                     Classification.Smells.None,
                                                     Classification.Physicalities.Collectable);
            this.classification.audioImpression = Classification.AudioImpression.Noisy;
            this.classification.audioVolume     = Classification.AudioVolume.Soft;
            this.classification.emitter         = ExpressModifier.Emitters.None;
            this.classification.expression      = Face.FaceState.None;

            StaticPropChassis staticChassis = new StaticPropChassis();

            Chassis            = staticChassis;
            staticChassis.Mass = 500.0f;
            staticChassis.DefaultEditHeight = 0.0f;

            renderObj = new RenderObj(this, GateBotSRO.GetInstance);
            InitGameActorParams();

            BokuGame.Load(this);

            // Set holding position after loading model so that BoundingSphere is initialized.
            this.holdingPosition = new Vector3(0.6f, 0.0f, 0.6f);
        }   // end of GateBot c'tor
Exemplo n.º 6
0
            }   // end of DrawText()

            public void LoadGraphicsContent(GraphicsDeviceManager graphics)
            {
                BokuGame.Load(missionsGrid);
                BokuGame.Load(myWorldsGrid);
                BokuGame.Load(starterWorldsGrid);
                BokuGame.Load(downloadsGrid);

                BokuGame.Load(missionsTab);
                BokuGame.Load(myWorldsTab);
                BokuGame.Load(starterWorldsTab);
                BokuGame.Load(downloadsTab);

                BokuGame.Load(bottomBar);

                if (backgroundTexture == null)
                {
                    // Load different frames based on whether we're (approximately) widescreen or not.
                    if (camera.AspectRatio > 1.5f)
                    {
                        backgroundTexture = BokuGame.ContentManager.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\UI2D\BigBinFrame");
                    }
                    else
                    {
                        backgroundTexture = BokuGame.ContentManager.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\UI2D\BigBinFrame_800");
                    }
                }

                // Force a redraw of the bottom bar texture.
                bottomBarDirty = true;
            }   // end of LoadLevelMenu Shared LoadGraphicsContent()
Exemplo n.º 7
0
        }   // end of ModalHint LoadContent()

        public void InitDeviceResources(GraphicsDevice device)
        {
            if (backgroundTexture == null)
            {
                backgroundTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\TextEditor\SmallTextDisplayBackground");
            }
        }   // end of ModalHint InitDeviceResources()
 /// <summary>
 /// Helper function to save some typing...
 /// </summary>
 /// <param name="tex"></param>
 /// <param name="path"></param>
 public void LoadTexture(ref Texture2D tex, string path)
 {
     if (tex == null)
     {
         tex = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + path);
     }
 }   // end of LoadTexture()
Exemplo n.º 9
0
        // c'tor
        public LiveFeedDisplay()
        {
            this.msNewsFeed = new NewsFeeds();
            this.smallblob  = new TextBlob(UI2D.Shared.GetGameFont18Bold, Strings.Localize("mainMenu.news"), 300);
            this.smallblob.Justification = UIGridElement.Justification.Left;
            this.flagMoreBlob            = new TextBlob(expandFlagFont, Strings.Localize("mainMenu.more"), 80);
            this.flagLessBlob            = new TextBlob(expandFlagFont, Strings.Localize("mainMenu.less"), 80);


            this.newsScroller = new ItemScroller(scrollBoxPos, FeedSize, new Color(0.0f, 0.0f, 0.0f, 0.0f), null, null);
            this.hitBox       = new AABB2D(new Vector2(0, 0), FeedSize);
            // this.Header_bg = BokuGame.Load<Texture2D>(BokuGame.Settings.MediaPath + @"Textures\twitter_Icon");
            this.cloudTR = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudTR");
            this.cloudBR = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudBR");

            this.cloudTL = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudTL");
            this.cloudBL = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudBL");

            this.cloudTC = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudTC");
            this.cloudBC = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudBC");

            this.cloudLC     = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudLC");
            this.cloudRC     = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudRC");
            this.cloudCenter = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MainMenu\cloudCenter");

            newsScroller.Clear();
            FeedMs item = new FeedMs(FeedSize, "Getting News feed...", TitleFont, DateFont, BodyFont);

            newsScroller.AddItem(item);

            //Twitter.GetTweets();
            msNewsFeed.BeginFetchNews();

            gettingFeeds = true;
        }   // end of c'tor
Exemplo n.º 10
0
        //
        //  Saucer
        //

        public Saucer()
            : base("saucer", new SaucerChassis(), SaucerSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Saucer c'tor
Exemplo n.º 11
0
        //
        //  Flower
        //

        public Flower()
            : base("flower", new DynamicPropChassis(), FlowerSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Flower c'tor
Exemplo n.º 12
0
        //
        //  BigYucca1
        //

        #region Public

        public BigYucca1()
            : base("tree", new StaticPropChassis(), BigYucca1SRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        }   // end of BigYucca1 c'tor
Exemplo n.º 13
0
        //
        //  Cloud
        //

        public Cloud()
            : base("cloud", new FloatInAirChassis(), CloudSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Cloud c'tor
Exemplo n.º 14
0
        public PushPad()
            : base("pushpad", new HoverChassis(), PushPadSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of PushPad c'tor
Exemplo n.º 15
0
        //
        //  Star
        //

        public Star()
            : base("star", new DynamicPropChassis(), StarSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Star c'tor
Exemplo n.º 16
0
        //
        //  Sputnik
        //

        public Sputnik()
            : base("sputnik", new HoverChassis(), SputnikSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        }
Exemplo n.º 17
0
        //
        //  Mine
        //
        public Mine()
            : base("mine", new HoverChassis(), MineSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Mine c'tor
Exemplo n.º 18
0
        //
        //  Heart
        //

        public Heart()
            : base("heart", new DynamicPropChassis(), HeartSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Heart c'tor
Exemplo n.º 19
0
        //
        //  Castle
        //

        public Castle()
            : base("castle", new StaticPropChassis(), CastleSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Castle c'tor
Exemplo n.º 20
0
        //
        //  StickBoy
        //

        public StickBoy()
            : base("stick", new SitAndSpinChassis(), StickBoySRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of StickBoy c'tor
Exemplo n.º 21
0
        //
        //  Puck
        //
        #region Public
        public Puck()
            : base("puck", new PuckChassis(), PuckSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        }   // end of Puck c'tor
Exemplo n.º 22
0
        //
        //  Bullet
        //

        public Bullet()
            : base("bullet", new DynamicPropChassis(), BulletSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Bullet c'tor
Exemplo n.º 23
0
        //
        //  Fruit
        //

        public Fruit()
            : base("fruit", new DynamicPropChassis(), FruitSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Fruit c'tor
Exemplo n.º 24
0
        //
        //  Hut
        //

        public Hut()
            : base("hut", new StaticPropChassis(), HutSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Hut c'tor
Exemplo n.º 25
0
        //
        //  Coin
        //

        public Coin()
            : base("coin", new DynamicPropChassis(), CoinSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Coin c'tor
Exemplo n.º 26
0
        //
        //  Factory
        //

        public Factory()
            : base("factory", new StaticPropChassis(), FactorySRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Factory c'tor
        }   // end of ModularMessageDialog RefreshTexture()

        public void LoadContent(bool immediate)
        {
            // Load the textures.
            if (background == null)
            {
                background = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\MessageBox\MessageBoxBackground");
            }
        }   // end of ModularMessageDialog LoadContent();
Exemplo n.º 28
0
        //
        //  Rock
        //

        public Rock()
            : base("rock", new DynamicPropChassis(), RockSRO.GetInstance)
        {
            BokuGame.Load(this);

            XmlConstruct();
            InitDefaults();
        } // end of Rock c'tor
Exemplo n.º 29
0
        public void LoadContent(bool immediate)
        {
            BokuGame.Load(brushPicker, immediate);
            BokuGame.Load(materialPicker, immediate);
            BokuGame.Load(waterPicker, immediate);

            BokuGame.Load(EditObjectsToolInstance, immediate);
            BokuGame.Load(EditPathsToolInstance, immediate);
        }   // end of MouseEditToolBox LoadContent()
Exemplo n.º 30
0
        public void LoadContent(bool immediate)
        {
            BokuGame.Load(grid, immediate);

            if (dropShadowTexture == null)
            {
                dropShadowTexture = BokuGame.Load <Texture2D>(BokuGame.Settings.MediaPath + @"Textures\ToolMEnu\DropShadow");
            }
        }   // end of ToolMenu LoadContent()