public HtmlImage() { loader = (GLoader)UIObjectFactory.NewObject("loader"); loader.gameObjectName = "HtmlImage"; loader.fill = FillType.ScaleFree; loader.touchable = false; }
public HtmlInput() { textInput = (GTextInput)UIObjectFactory.NewObject("inputtext"); textInput.verticalAlign = VertAlignType.Middle; _border = new Shape(); }
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); }
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; }
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); }
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); }
public HtmlImage() { loader = (GLoader)UIObjectFactory.NewObject(ObjectType.Loader); loader.fill = FillType.ScaleFree; loader.touchable = false; }
public HtmlImage() { loader = (GLoader)UIObjectFactory.NewObject("loader"); loader.fill = FillType.ScaleFree; }
public HtmlInput() { textInput = (GTextInput)UIObjectFactory.NewObject(ObjectType.InputText); textInput.gameObjectName = "HtmlInput"; textInput.verticalAlign = VertAlignType.Middle; }