Exemplo n.º 1
0
    protected void AsciiArtLineByLine(APPscrollconsole console, string artname, float lineDelay, char color, bool centered)
    {
        string[] lines = SHGUI.current.GetASCIIartByName(artname).Split('\n');

        int centerOffset = (int)(SHGUI.current.resolutionX / 2) - (int)(lines [0].Length / 2);

        for (int i = 0; i < lines.Length; ++i)
        {
            if (centered)
            {
                console.AddTextToQueue(lines[i], lineDelay, color, centerOffset);
            }
            else
            {
                console.AddTextToQueue(lines[i], lineDelay, color);
            }
        }
    }
Exemplo n.º 2
0
    public APPstreamchat()
    {
        if (forumStrings == null)
        {
            LoadForumContent();
        }

        if (currentForumStringIndex == -1)
        {
            currentForumStringIndex = Random.Range(0, forumStrings.Length - 1);
        }

        //LOAD "IS GAME FINISHED" HERE
        allowSecretSystemMessages = false;

        console = new APPscrollconsole();
        console.ShowChatFrames();
        console.killOnEmptyQueue        = false;
        console.showFadeForChatMessages = true;
        console.desiredFrameWidth       = 41;
        console.dontDisplaySender       = false;

        console.defaultConsoleCallback = () => { NextMessage(); };

        console.AddMySystemMessage("", "^m7^CzLISTENING TO #HACKING");

        /*
         * console.AddTextToQueueCentered ("", .1f, 'w');
         * console.AddTextToQueueCentered ("", .1f, 'w');
         * AsciiArtLineByLine (console, "cubes", .075f, 'w', true);
         * console.AddTextToQueueCentered ("", .1f, 'w');
         * console.AddTextToQueueCentered ("WELCOME TO THE FORUM", .1f, 'w');
         */

        (console.appname as SHGUItext).text = "guruGROUPS";
        console.leaveChatLocalizedString    = "LEAVE_GROUP_INPUT";
        this.AddSubView(console);
    }
Exemplo n.º 3
0
    public APPcredits() : base("")
    {
        super = SHGUI.current.GetASCIIartByName("supersmall");
        hot   = SHGUI.current.GetASCIIartByName("hotsmall");

        columns = new List <string>();

        GetColumnsFrom(super);
        columns.Add("");
        columns.Add("");

        GetColumnsFrom(hot);

        APPFRAME.hidden = true;

        Randomize();

        console          = new APPscrollconsole();
        console.y        = 16;
        console.maxlines = 6;

        AddSubView(console);

        console.AddWait(2f);

        AddCreditedLine("game director", "Piotr Iwanicki");
        console.AddWait(1f);
        AddCreditedLine("art director", "Marcin Surma");
        AddCreditedLine("programming", "Krzysztof Tracz");
        AddCreditedLine("programming", "Jakub Ziembiński");
        AddCreditedLine("story", "Cezary Skorupka");
        AddCreditedLine("business", "Tomasz Kaczmarczyk");
        AddCreditedLine("PR", "Marek Bączyński");
        AddCreditedLine("level design", "Panos Rriska");
        AddCreditedLine("3d art", "Tomasz Bolek");
        AddCreditedLine("3d art", "Piotr Kosmala");
        AddCreditedLine("sound", "Artur Walaszczyk");
        AddCreditedLine("additional animations", "fragOut Studio");
        AddCreditedLine("additinal credits", "Łukasz Spierewka|Dawid Adamkiewicz|Konrad Kacperczyk|Maciej Nabiałczyk|Rafał Romanowicz|||||");
        //AddCreditedLine("^Cz(those are just basic credits", "^Czmade quickly for the beta)");

        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);
        console.AddEmptyLine(.01f);

        console.AddPrompterToQueue("^Cw" + "Huge thanks to all you guys, our beta backers :)!", .1f, true);

        console.AddEmptyLine(.1f);
        console.AddEmptyLine(.1f);
        console.AddEmptyLine(.1f);
        console.AddWait(3f);

        AddBackers(Resources.Load("backerlist").ToString());

        console.AddEmptyLine(.5f);
        console.AddEmptyLine(.5f);
        console.AddEmptyLine(.5f);
        console.AddEmptyLine(.5f);
        console.AddEmptyLine(.5f);


        console.AddPrompterToQueue("THANKS FOR YOUR SUPPORT. YOU ARE AWESOME.", .1f, true);
        console.AddPrompterToQueue("THIS GAME WOULDN'T BE POSSIBLE WITHOUT YOU.", .1f, true);
        console.AddPrompterToQueue("SUPERHOT TEAM SALUTES YOU.", .1f, true);


        console.AddEmptyLine(.1f);
        console.AddEmptyLine(.1f);
        console.AddWait(1000000f);

        this.AddSubView(new SHGUIrect(0, 0, SHGUI.current.resolutionX, console.y - 1, '0', ' '));
        this.AddSubView(new SHGUIrect(0, 0, SHGUI.current.resolutionX, console.y - 2, 'r', '░'));
    }