コード例 #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
ファイル: Inventory.cs プロジェクト: 1085069832/HAZG_RPG
    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)
 {
 }