예제 #1
0
    public SHGUItempviewprogressbar(int X, int Y, int length)
    {
        Init();

        x = X;
        y = Y;

        bar = new SHGUIprogressbar(0, 0, length, "", "");
        bar.SetFrameHidden(true);

        bar.SetStyle("z█z░z█");

        AddSubView(bar);
    }
예제 #2
0
    public APPtreedude() : base("TREE-DUDE-TREE-DUDE-DUDE-by-piotr")
    {
        //AddSubView (new SHGUItext (SHGUI.current.GetASCIIartByName ("APPtreedudeback"), 0, 0, 'z'));


        timeToDie = timeToDieMax * .5f;
        GenerateDifficulty();

        trees = new List <SHGUIsprite> ();
        dude  = new SHGUIsprite().AddFramesFromFile("APPtreedudedude", 6);
        AddSubView(dude);


        AddTreeOnTop(true);
        AddTreeOnTop(true);
        AddTreeOnTop(true);

        for (int i = 0; i < 10; ++i)
        {
            AddTreeOnTop(false);
            AddTreeOnTop(true);
        }

        timeToDieBar = new SHGUIprogressbar(20, 3, 21, "", "").SetBlinkingLabel("WATCH-TIME!", .2f);
        timeToDieBar.SetStyle("z█z░z█");
        AddSubView(timeToDieBar);

        tutorialView = new SHGUIview();
        AddSubView(tutorialView);

        SHGUIblinkview b1        = new SHGUIblinkview(.75f).SetFlipped();
        int            tutorialy = 15;

        b1.AddSubView(new SHGUItext("CHOP-LEFT-->", 13, tutorialy, 'w'));
        tutorialView.AddSubView(b1);

        SHGUIblinkview b2 = new SHGUIblinkview(.75f).SetFlipped();

        b2.AddSubView(new SHGUItext("<--CHOP-RIGHT", 40, tutorialy, 'w'));
        tutorialView.AddSubView(b2);
    }