示例#1
0
        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);
        }
示例#2
0
        public static LabelUI NewLabelUI(string text, string name = UIBaser.UIDefaultName, string description = "")
        {
            LabelUI label = new LabelUI(text)
            {
                Name        = name,
                Description = description
            };

            return(label);
        }
示例#3
0
        public static LabelUI NewLabelUI(DynamicSpriteFont font, string name = UIBaser.UIDefaultName, string description = "")
        {
            LabelUI label = new LabelUI(font)
            {
                Name        = name,
                Description = description
            };

            return(label);
        }
示例#4
0
    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;
    }
示例#5
0
 /// <summary>
 /// Sets the L&F object that renders this component.
 /// </summary>
 public void setUI(LabelUI @ui)
 {
 }