//totalbars - maxShown = max topBar
        internal BarracksScrollList(Barracks b, Vector2f start)
        {
            //int x = (overallRect.Height - 2 * 25) / champBarRect.Height;
            //scroll = overallRect.Height - (x * champBarRect.Height);
            maxShown = (int)((overallRect.Height - 2 * scroll) / champBarRect.Height - 1);
            totalBars = b.getTotalChamps();
            mBarracks = b;
            this.start = start;

            disabledButtons = new List<int>();
            champsItemIcons = new List<IconToolTip>();
            for(int i=0;i<totalBars;i++){
                ItemID item = mBarracks.getChamps()[i].item;
                Sprite itemS = new Sprite(Item.getItemTexture(item), new IntRect(0, 0, Item.ICON_WIDTH, Item.ICON_WIDTH));
                if (item == ItemID.none) {
                    IconToolTip itt = new IconToolTip(itemS, "none", "none");
                    champsItemIcons.Add(itt);
                } else {
                    Item ite = new Item(item);
                    champsItemIcons.Add(new IconToolTip(itemS, ite.name, ite.description));
                }
            }

            champBarSprite = new Sprite(champBarTexture);
            unitIconSprite = new Sprite();

            topBarDebugText = new Text(topBar + " ",GameBox.corbalFont,30U);
            topBarDebugText.Color = Color.Yellow;
            playerClassText = new Text("playerclass", GameBox.corbalFont, 15U);
            playerItemText = new Text("playeritem", GameBox.corbalFont, 15U);
        }
 internal void drawChampBar(RenderWindow window, ChampItemPair champ,IconToolTip toolTip, Vector2f start, bool disabled)
 {
     Texture unitIcon = null;
     switch(champ.hero){
         case PlayerClassNum.vang:
             unitIcon = vang; break;
         case PlayerClassNum.assa:
             unitIcon = assa; break;
         case PlayerClassNum.mage:
             unitIcon = pyro ;break;
         case PlayerClassNum.puri:
             unitIcon = puri; break;
         case PlayerClassNum.archer:
             unitIcon = arch; break;
         case PlayerClassNum.bard:
             unitIcon = bard; break;
     }
     champBarSprite.Position = start;
     window.Draw(champBarSprite);
     if (unitIcon != null) {
         unitIconSprite.Texture = unitIcon;
         unitIconSprite.Position = new Vector2f(start.X + 8, start.Y);
         window.Draw(unitIconSprite);
     }
     //spriteBatch.Draw(Item.getItemTexture(champ.item), new Vector2f(start.X + itemIconStart.X, start.Y + itemIconStart.Y), Color.White);
     //new icondraw
     toolTip.draw(window);
     playerClassText.DisplayedString = PlayerClassI.getClassName(champ.hero).ToUpper();
     playerClassText.Position = new Vector2f(start.X + 57, start.Y + 5);
     playerClassText.Color = disabled ? new Color(128,128,128) : Color.White;
     window.Draw(playerClassText);
     playerItemText.DisplayedString = Item.getItemName(champ.item);
     playerItemText.Position = new Vector2f(start.X + 57, start.Y + 28);
     playerItemText.Color = disabled ? new Color(128, 128, 128) : Color.White;
     window.Draw(playerItemText);
 }