コード例 #1
0
        public override void LoadContent(Resources res)
        {
            this.font            = res.Menu_Font;
            this.mousePointerTex = res.Menu_MousePointer;

            this.titleTex = res.Menu_Title;

            this.backgroundTex        = res.Menu_Background;
            this.backgroundSourceRect = new Rectangle(0, 0, (int)Window.resolution.X * 2, (int)Window.resolution.Y * 2);

            int yCoord = 300;

            foreach (String option in this.options)
            {
                this.optionRects.Add(new Rectangle(35, yCoord, (int)font.MeasureString(option).X, (int)font.MeasureString(option).Y));
                yCoord += 30;
            }

            worldCreator.LoadContent(res, this.font);
            continueMenu.LoadContent(res, this.font);
        }