Ejemplo n.º 1
0
        private void ready()
        {
            var elem = Document.GetElementById("loading");
            elem.ParentNode.RemoveChild(elem);

            var stats = new XStats();
            Document.Body.AppendChild(stats.Element);
            Window.SetTimeout(() =>
                              {
                                  jQuery.Select(".xstats").CSS("right", "0px");
                                  jQuery.Select(".xstats").CSS("position", "absolute");
                                  jQuery.Select(".xstats").CSS("z-index", "9998!important");
                                  jQuery.Select(".xstats").Children().CSS("z-index", "9998!important");
                              },
                1000);
            Window.Instance.AddEventListener("scroll", (e) =>
                                                       {
                                                           Window.ScrollTo(0, 0);
                                                           e.StopImmediatePropagation();
                                                       });


            Document.Body.Style["overflow"] = "hidden";

            Document.Body.AddEventListener("contextmenu",
                e =>
                {
                    //  e.PreventDefault();
                    //todo: Special right click menu;
                },
                false);


            BuildAngular.Setup(gatewayServerAddress);


            angular.Bootstrap(Window.Document, "acg");

            /*




        var chatArea = shuffUIManager.createWindow({
            title: "Chat",
            x: 600,
            y: 100,
            width: 300,
            height: 275,
            allowClose: true,
            allowMinimize: true,
            visible: false

        });
             */
        }
Ejemplo n.º 2
0
        private void ready()
        {
            var elem = Document.GetElementById("loading");
            elem.ParentNode.RemoveChild(elem);

            var stats = new XStats();
            Document.Body.AppendChild(stats.Element);
            Window.SetTimeout(() => {
                                  jQuery.Select(".xstats").CSS("right", "0px");
                                  jQuery.Select(".xstats").CSS("position", "absolute");
                                  jQuery.Select(".xstats").CSS("z-index", "9998!important");
                                  jQuery.Select(".xstats").Children().CSS("z-index", "9998!important");
                              },
                              1000);
            Window.Instance.AddEventListener("scroll", (e) =>
            {
                Window.ScrollTo(0, 0);
                e.StopImmediatePropagation();
            });
            Document.Body.AddEventListener("scroll", (e) => {

             Window.ScrollTo(0,0);
                                                           e.StopImmediatePropagation();
                                                       }, true);

            Element dvGame = Document.CreateElement("div");
            jQuery.Select("body").Append(dvGame);
            dvGame.ID = "dvGame";
            dvGame.Style.Left = "0%";
            dvGame.Style.Position = "absolute";
            dvGame.Style.Top = "0";
            dvGame.Style.Right = "0";
            dvGame.Style.Bottom = "0";
            dvGame.Style["-webkit-transform"] = "scale(1.2)";
            Document.Body.Style["overflow"] = "hidden";

            Document.Body.AddEventListener("contextmenu",
                                           e => {
                                             //  e.PreventDefault();
                                               //todo: Special right click menu;
                                           },
                                           false);

            var pageHandler = new PageHandler(gatewayServerAddress);

            /*

            var chatArea = shuffUIManager.createWindow({
            title: "Chat",
            x: 600,
            y: 100,
            width: 300,
            height: 275,
            allowClose: true,
            allowMinimize: true,
            visible: false

            });
             */
        }