public LabeledAreaUI() { var left = new AreaUI { transform = { RightPercent = 0.6f, RightMargin = Theme.MediumMargin }, PanelColor = Theme.PanelColor }; label = new LabelUI { transform = { UniformMargins = Theme.SmallMargin, LeftMargin = Theme.MediumMargin }, Align = LabelUI.Alignment.left }; Add(left); left.Add(label); }
public static LabelUI NewLabelUI(string text, string name = UIBaser.UIDefaultName, string description = "") { LabelUI label = new LabelUI(text) { Name = name, Description = description }; return(label); }
public static LabelUI NewLabelUI(DynamicSpriteFont font, string name = UIBaser.UIDefaultName, string description = "") { LabelUI label = new LabelUI(font) { Name = name, Description = description }; return(label); }
void Awake() { Instance = this; showUIAnim = GetComponent <ShowUIAnim>(); labelUI = GetComponent <LabelUI>(); playerStatus = PlayerStatus._instance; InventoryItem.BeginDrag += OnItemBeginDrag; InventoryItem.Draging += OnItemDraging; InventoryItem.EndDrag += OnItemEndDrag; InventoryItem.PointerEnter += OnItemPointerEnter; InventoryItem.PointerExit += OnItemPointerExit; }
/// <summary> /// Sets the L&F object that renders this component. /// </summary> public void setUI(LabelUI @ui) { }