public override void SetPos(IComponentGroup freeUI, float x, float y, int width, int height, int relative, int parent) { NewSetPos(freeUI, x, y, width, height, relative, parent); _uiObject.width = width; _uiObject.height = height; }
public ElementBuilder AddComponentGroup(IComponentGroup componentGroup) { throw new NotImplementedException(); //ComponentsInternal.AddRange(componentGroup.Components); //return this; }
public override void SetPos(IComponentGroup freeUI, float x, float y, int width, int heigth, int relative, int parent) { base.SetPos(freeUI, x, y, width, heigth, relative, parent); _uiObject.width = 845; _uiObject.height = 142; }
public override void SetPos(IComponentGroup freeUI, float x, float y, int width, int heigth, int relative, int parent) { if (width == -1 && heigth == -1) { FreeLayoutConverter.FullScreen(_uiObject.gameObject.GetComponent <RectTransform>()); FreeLayoutConverter.FullScreen(_image.rectTransform); } else { NewSetPos(freeUI, x, y, width, height, relative, parent); _image.rectTransform.sizeDelta = new Vector2(width, heigth); } }
public override void SetPos(IComponentGroup freeUI, float x, float y, int width, int heigth, int relative, int parent) { RectTransform rt = _uiObject.gameObject.GetComponent <RectTransform>(); FreeLayoutConverter.FullScreen(rt); this.relative = relative; this.parent = parent; this.group = freeUI; this.x = x; this.y = y; this.width = width; this.height = heigth; }
public virtual void SetPos(IComponentGroup freeUI, float x, float y, int width, int height, int relative, int parent) { this.relative = relative; this.parent = parent; this.group = freeUI; this.x = x; this.y = y; this.width = width; this.height = height; var control = ToUI(); control.width = width; control.height = height; float startX = 0; float startY = 0; var rW = 0; var rH = 0; if (parent <= 0) { rW = Screen.width; rH = Screen.height; } else { var fc = freeUI.GetComponent(parent - 1); rW = fc.ToUI().width; rH = fc.ToUI().height; startX = fc.ToUI().x; startY = fc.ToUI().y; } SetXy(control, relative, startX, startY, rW, rH, x, y); if (freeUI is FreeListComponent) { control.y = y; } }
public void NewSetPos(IComponentGroup freeUI, float x, float y, int width, int height, int relative, int parent) { this.group = freeUI; this.relative = relative; this.parent = parent; this.group = freeUI; this.x = x; this.y = y; this.width = width; this.height = height; RectTransform parentTransform = null; if (parent > 0) { parentTransform = freeUI.GetComponent(parent - 1).ToUI().gameObject.GetComponent <RectTransform>(); } FreeLayoutConverter.Convert(relative, x, y, width, height, _uiObject.gameObject.GetComponent <RectTransform>(), parentTransform); }
public SMComponentGroupArgs(ISuperMemo smMgmt, IComponentGroup componentGroup) : base(smMgmt) { ComponentGroup = componentGroup; }