Example #1
0
    static public void title(bs.A <string> s)
    {
        bs.go(bs.COM.Gtexture, "name", "logo",
              bs.G.texture, "title", bs.G.uv, bs.rect(512f, 0f, 230f, 87f),
              bs.G.x, bs.G.center, "y", -87f,
              "t(", "y", 10f, "time", .5f, "delay", .5f, ")"
              );

        /*
         * bs.go( bs.COM.Gtexture, "name", "facebook",
         *      bs.G.texture, "title", bs.G.uv, bs.rect(512f,87f,230f,62f),
         *      bs.G.x, bs.G.center, bs.G.y, bs.G.middle,
         *      bs.G.up0, f,
         *      "sx", 0f, "sy", 0f,
         *      "t(", "sx", 1f, "sy", 1f, "time", 1f, "delay", .5f, "easetype", iTween.EaseType.easeOutElastic, ")"
         * );
         */
        bs.go(bs.COM.Gtexture, "name", "start",
              bs.G.texture, "title", bs.G.uv, bs.rect(512f, 149f, 230f, 62f),
              bs.G.x, bs.G.center, "y", 700f,
              bs.G.up0, s,
              "t(", "y", 700f - 200f, "time", .5f, "delay", .5f, "easetype", iTween.EaseType.easeOutBack, ")"
              );
        bs.go(bs.COM.Gtexture, "name", "title",
              bs.G.texture, "title", bs.G.uv, bs.rect(0f, 0f, 512f, 512f), bs.G.pixel,
              "x", 0f, "y", 0f,
              bs.G.width, Screen.width, bs.G.height, Screen.height
              );
    }
Example #2
0
 static public void map(bs.A <string> s)
 {
     bs.go(bs.COM.Gtexture, "name", "s1",
           bs.G.texture, "title", bs.G.uv, bs.rect(742f, 0f, 141f, 94f), bs.G.screenSize,
           "x", 88f - 70f * .5f, "y", 304f - 47f * .5f,
           bs.G.width, 70, bs.G.height, 47,
           bs.G.up0, s
           );
     bs.go(bs.COM.Gtexture, "name", "map",
           bs.G.texture, "map", bs.G.uv, bs.rect(0f, 0f, 1024f, 512f), bs.G.screenSize,
           "x", 0f, "y", 0f,
           bs.G.width, 1400, bs.G.height, 700
           );
     _mapX     = 0f;
     bs.move0 += mapSlide;
     bs.up0   += mapSlideUp;
 }
Example #3
0
 static public void menu(bs.A <string> s)
 {
     bs.go(bs.COM.Gtexture, "name", "s1",
           bs.G.texture, "menu" + M.loc, bs.G.uv, bs.rect(806f, 0f, 215f, 139f), bs.G.screenSize,
           "x", 83f - 215f * .5f, "y", 370f - 139f * .5f,
           bs.G.up0, s
           );
     bs.go(bs.COM.Gtexture, "name", "s2",
           bs.G.texture, "menu" + M.loc, bs.G.uv, bs.rect(806f, 139f, 178f, 137f), bs.G.screenSize,
           "x", 560f - 178f * .5f, "y", 225f - 137f * .5f,
           bs.G.up0, s
           );
     bs.go(bs.COM.Gtexture, "name", "menu",
           bs.G.texture, "menu" + M.loc, bs.G.uv, bs.rect(0f, 0f, 806f, 512f), bs.G.screenSize,
           "x", 0f, "y", 0f,
           bs.G.width, 700 * 806 / 512, bs.G.height, 700
           );
     _menuX    = 0f;
     bs.move0 += menuSlide;
     bs.up0   += menuSlideUp;
 }
Example #4
0
    public void x(object v)
    {
        if (v == null)
        {
            _calX = noneX;
        }
        else if (v is bs.G)
        {
            switch ((bs.G)v)
            {
            case bs.G.left: _calX = leftX; break;

            case bs.G.right: _calX = rightX; break;

            case bs.G.center: _calX = centerX; break;
            }
        }
        else
        {
            rx    = (float)v;
            _calX = perX;
        }
    }
Example #5
0
 public void up2(bs.A <string> v)
 {
     _isMouse = v != null; _up2 = v;
 }
Example #6
0
 public void down2(bs.A <string> v)
 {
     _isMouse = v != null; _down2 = v;
 }
Example #7
0
 public void ou(bs.A <string> v)
 {
     _isMouse = v != null; _out = v;
 }
Example #8
0
 public void ov(bs.A <string> v)
 {
     _isMouse = v != null; _over = v;
 }
Example #9
0
 public void init()
 {
     _calX = noneX;
     _calY = noneY;
 }