Beispiel #1
0
 public HtmlImage()
 {
     loader = (GLoader)UIObjectFactory.NewObject("loader");
     loader.gameObjectName = "HtmlImage";
     loader.fill           = FillType.ScaleFree;
     loader.touchable      = false;
 }
Beispiel #2
0
        public HtmlInput()
        {
            textInput = (GTextInput)UIObjectFactory.NewObject("inputtext");
            textInput.verticalAlign = VertAlignType.Middle;

            _border = new Shape();
        }
Beispiel #3
0
        public HtmlInput()
        {
            textInput = (GTextInput)UIObjectFactory.NewObject(ObjectType.InputText);
            textInput.verticalAlign = VertAlignType.Middle;

            _border = new Shape();
            _border.graphics.dontClip = true;
            ((InputTextField)textInput.displayObject).AddChildAt(_border, 0);
        }
Beispiel #4
0
 public UIFollowManager()
 {
     _agent = (GComponent)UIObjectFactory.NewObject(ObjectType.Component);
     _agent.gameObjectName = "UIFollowAgent";
     GRoot.inst.onRightClick.Add(End);
     _agent.SetHome(GRoot.inst);
     _agent.touchable = false; //important
     _agent.draggable = true;
     _agent.SetSize(0, 0);
     _agent.SetPivot(0.5f, 0.5f, true);
     _agent.sortingOrder = int.MaxValue;
 }
Beispiel #5
0
        public static FLoader NewLoader(LoaderArgs loaderArgs = null)
        {
            var fLoader = NewT <FLoader>(UIObjectFactory.NewObject(ObjectType.Loader), loaderArgs);

            InitBaseArgs(fLoader, loaderArgs);
            if (loaderArgs != null)
            {
                fLoader.SetUrl(loaderArgs.url);
            }

            return(fLoader);
        }
Beispiel #6
0
 public DragDropManager()
 {
     _agent = (GLoader)UIObjectFactory.NewObject(ObjectType.Loader);
     _agent.gameObjectName = "DragDropAgent";
     _agent.SetHome(GRoot.inst);
     _agent.touchable = false;            //important
     _agent.draggable = true;
     _agent.SetSize(100, 100);
     _agent.SetPivot(0.5f, 0.5f, true);
     _agent.align         = AlignType.Center;
     _agent.verticalAlign = VertAlignType.Middle;
     _agent.sortingOrder  = int.MaxValue;
     _agent.onDragEnd.Add1(__dragEnd);
 }
Beispiel #7
0
 public HtmlImage()
 {
     loader           = (GLoader)UIObjectFactory.NewObject(ObjectType.Loader);
     loader.fill      = FillType.ScaleFree;
     loader.touchable = false;
 }
Beispiel #8
0
 public HtmlImage()
 {
     loader      = (GLoader)UIObjectFactory.NewObject("loader");
     loader.fill = FillType.ScaleFree;
 }
Beispiel #9
0
 public HtmlInput()
 {
     textInput = (GTextInput)UIObjectFactory.NewObject(ObjectType.InputText);
     textInput.gameObjectName = "HtmlInput";
     textInput.verticalAlign  = VertAlignType.Middle;
 }