protected override void OnLoad() { base.OnLoad(); SelectedStage = null; input = new MenuInputResolver(); input.Up = Key.W; input.Down = Key.S; input.Right = Key.D; input.Left = Key.A; load = MMW.FindGameComponent <InitLoading>(); if (load.State != InitLoading.LoadingState.Finished) { load.LoadCompleted += Load_LoadCompleted; } transit = new TransitControl(); transit.LocalLocation = new Vector2(MMW.ClientSize.Width * 2.0f, 0); transit.Size = new Vector2(MMW.ClientSize.Width, MMW.ClientSize.Height); transit.Target = Vector2.Zero; tabCtr = new TabControl() { Parent = transit, LocalLocation = new Vector2(100, 164), Size = new Vector2((MMW.ClientSize.Width / 2) - 100 - 64, MMW.ClientSize.Height - 164 - 48), Tabs = new Tab[] { new Tab() { Name = "PRESET", Items = load.PresetStages, }, new Tab() { Name = "FREE", Items = load.FreeStages, }, }, Focus = true, }; label = new Label() { Parent = transit, Alignment = ContentAlignment.TopCenter, Text = "STAGE SELECT", Font = new Font("Yu Gothic UI Light", 40.0f), LocalLocation = new Vector2(0.0f, 32.0f), }; }
protected override void OnLoad() { base.OnLoad(); MMW.FindGameComponent <BackgroundScript>().Trans(new Color4(222, 216, 148, 255), 0.25); SelectedPlayer = null; input = new MenuInputResolver(); input.Up = Key.W; input.Down = Key.S; input.Right = Key.D; input.Left = Key.A; transit = new TransitControl(); transit.LocalLocation = new Vector2(MMW.ClientSize.Width * 2.0f, 0); transit.Size = new Vector2(MMW.ClientSize.Width, MMW.ClientSize.Height); transit.Target = Vector2.Zero; load = MMW.FindGameComponent <InitLoading>(); tabCtr = new TabControl() { Parent = transit, LocalLocation = new Vector2(100, 164), Size = new Vector2((MMW.ClientSize.Width / 2) - 100 - 64, MMW.ClientSize.Height - 164 - 48), Tabs = new Tab[] { new Tab() { Name = "PRESET", Items = load.PresetCharacters, }, new Tab() { Name = "FREE", Items = load.FreeCharacters, }, }, Focus = true, }; label = new Label() { Parent = transit, Alignment = ContentAlignment.TopCenter, Text = "PLAYER SELECT", Font = new Font("Yu Gothic UI Light", 40.0f), LocalLocation = new Vector2(0.0f, 32.0f), }; MMW.MainCamera.GameObject.Transform.Position = new Vector3(0.6f, 1.1f, -1.7f); //MMW.MainCamera.GameObject.Transform.Position = new Vector3(0.3f, 1.4f, -0.6f); MMW.MainCamera.ShadowMapping = false; MMW.GlobalAmbient = new Color4(0.8f, 0.8f, 0.8f, 0.0f); //MMW.DirectionalLight.Transform.Rotate.Y = (float)Math.PI; MMW.DirectionalLight.Transform.Rotate = new Vector3(-MathHelper.PiOver3, 0.0f, 0.0f); MMW.DirectionalLight.Intensity = 1.0f; MMW.IBLIntensity = 0.0f; if (load.State != InitLoading.LoadingState.Finished) { load.LoadCompleted += Load_LoadCompleted; } }