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