Ejemplo n.º 1
0
        public ListViewItem CreateListViewItem(Brush brush)
        {
            ListViewItem lvItem = new ListViewItem();

            lvItem.Text = brush.getName() + ":" + brush.getLookID();
            if (brush.getLookID() != 0)
            {
                int lookid = brush.getLookID();
                lvItem.ImageIndex = Global.gfx.getImageIndex(Global.items.items[lookid].SpriteId);
            }
            if (brush.getSpriteLookID() != 0)
            {
                lvItem.ImageIndex = Global.gfx.getCreatureImageIndex((int)brush.getSpriteLookID());
            }
            lvItem.Tag = brush;
            return(lvItem);
        }