コード例 #1
0
        private void Player_OnDeathThroughToxicGoo()
        {
            string  gooText     = "Ooops, you stepped into the Toxic Goo. I don't know why it is in this Chamber, but keep away from it! You can't swim! ...And it's toxic.";
            UILabel UIdeathText = new UILabel(Fonts.Verdana, gooText, new Vector2(36, 16 * 32 + 8), 15 * 32, Color.Green, 0.225f);

            UIdeathText.AddShadow(Color.Black, new Vector2(1, 1));

            UITextBox textBox = new UITextBox(textboxPosition, "Toxic Goo", gooText, maxLineWidth, textboxBackground, textboxButton);

            textBox.Show();

            player.OnStepOnToxicGoo -= Player_OnDeathThroughToxicGoo;
        }
コード例 #2
0
        private void Player_OnTraversingEmancipationGrill()
        {
            string  grillText   = "Everything traversing an Vaporization Grill will get vaporised (except you). If You pass through it, your portals will be closed.";
            UILabel UIGrillText = new UILabel(Fonts.Verdana, grillText, new Vector2(36, 19.5f * 32), 15 * 32, Color.Cyan, 0.23f);

            UIGrillText.AddShadow(Color.Black, new Vector2(1, 1));

            UITextBox textBox = new UITextBox(textboxPosition, "The Vaporization Grill", grillText, maxLineWidth, textboxBackground, textboxButton);

            textBox.Show();

            player.OnTraversingEmancipationGrill -= Player_OnTraversingEmancipationGrill;
        }
コード例 #3
0
        private void OnTraversingGrillID9()
        {
            string  cubeText   = "Cubes can't swim, too. If you push them into the Toxic Goo, they're gone. If you push them into the Vaporization Grill they'll get vaporised and are gone as well.       Try it!";
            UILabel UICubeText = new UILabel(Fonts.Verdana, cubeText, new Vector2(26 * 32 + 4, 4 * 32 - 4), 13 * 32, Color.LightPink, 0.21f);

            UICubeText.AddShadow(Color.Black, new Vector2(1, 1));

            UITextBox textBox = new UITextBox(textboxPosition, "The Comrade Cube", cubeText, maxLineWidth, textboxBackground, textboxButton);

            textBox.Show();

            player.StandartPosition = player.Position;
            triggeredObjs.Find(c => c.Name.Contains("Grill") && c.ID == 9).OnTraversingEmancipationGrill -= OnTraversingGrillID9;
        }
コード例 #4
0
        private void OnTraversingGrillID2()
        {
            string  buttonText   = "Hey, do you see this Box with the Heart on it? Try pushing it onto that big Red Button to deactivate the Grill below.";
            UILabel UIButtonText = new UILabel(Fonts.Verdana, buttonText, new Vector2(23 * 32 + 4, 36), 16 * 32, Color.Violet, 0.23f);

            UIButtonText.AddShadow(Color.Black, new Vector2(1, 1));

            UITextBox textBox = new UITextBox(textboxPosition, "Buttons and Cubes", buttonText, maxLineWidth, textboxBackground, textboxButton);

            textBox.Show();

            player.StandartPosition = player.Position;
            triggeredObjs.Find(c => c.Name.Contains("Grill") && c.ID == 2).OnTraversingEmancipationGrill -= OnTraversingGrillID2;
        }
コード例 #5
0
        private void SetWelcomeText()
        {
            string  title         = "Welcome to the Test-Facility! ";
            string  welcomeText   = "Use WASD to move and the Left and Right Mouse Button to shoot portals. You always shoot in the direction you last moved into. Portals can only appear on the White Walls.";
            UILabel UITitle       = new UILabel(Fonts.Verdana, title, new Vector2(36, 12 * 32 + 4), 15 * 32, Color.White, 0.225f);
            UILabel UIWelcomeText = new UILabel(Fonts.Verdana, welcomeText, new Vector2(36, 13 * 32), 15 * 32, Color.White, 0.225f);

            UITitle.AddShadow(Color.Black, new Vector2(1, 1));
            UIWelcomeText.AddShadow(Color.Black, new Vector2(1, 1));

            UITextBox textBox = new UITextBox(textboxPosition, title, welcomeText, maxLineWidth, textboxBackground, textboxButton);

            textBox.Show();
        }
コード例 #6
0
        private void OnTraversingGrillID7()
        {
            string    puzzleText = "To finish your first Test, just solve that simple Cube Sliding Puzzle in front of you. (The Red Button in this room resets the cube in front of you.)";
            UITextBox textBox    = new UITextBox(textboxPosition, "Sliding Puzzles", puzzleText, maxLineWidth, textboxBackground, textboxButton);

            if (cube3isVaporised)
            {
                player.StandartPosition = player.Position;

                UILabel UISlidingPuzzleText = new UILabel(Fonts.Verdana, puzzleText, new Vector2(23 * 32 + 4, 8 * 32 - 4), 16 * 32, Color.Red, 0.21f);
                UISlidingPuzzleText.AddShadow(Color.Black, new Vector2(1, 1));
                textBox.Show();

                triggeredObjs.Find(c => c.Name.Contains("Grill") && c.ID == 7).OnTraversingEmancipationGrill -= OnTraversingGrillID7;
            }
            cube3isVaporised = true;
        }