Beispiel #1
0
 void _itemSlot_ItemChanged(PUIItemSlot itemSlot)
 {
     Main.NewText("ItemChanged");
     FillPrefixEntries();
 }
Beispiel #2
0
        private void InitUI()
        {
            _window = new PUIWindow();
            _window.Width.Set(350, 0);
            _window.Height.Set(350, 0);
            _window.Left.Set(100, 0);
            _window.Top.Set(100, 0);
            UIController.Append(_window);

            _itemSlot = new PUIUsableItemSlot();
            _window.Append(_itemSlot);

            _scrollView = new PUIScrollView();
            _scrollView.Top.Set(_itemSlot.Height.Pixels + 5, 0f);
            _scrollView.Width.Set(0, 1f);
            _scrollView.Height.Set(-_scrollView.Top.Pixels, 1f);
            _window.Append(_scrollView);

            _itemSlot.ItemChanged += _itemSlot_ItemChanged;
        }