public SlotList(float width, float height) { _width = width; _height = height; touchableRect = new Rect(-_width / 2, -10000, _width - Config.SLOT_HEIGHT * 2 - Config.PADDING_XS * 2, 20000);//infinite height because thaat's how i doooo _scroller = new RXScroller(0, _minScrollY, _maxScrollY); _touchSlot = Futile.touchManager.GetTouchSlot(0); AddChild(slotContainer = new FContainer()); List <Player> players = SKDataManager.GetPlayers(); for (int p = 0; p < players.Count; p++) { AddSlotForPlayer(players[p], false); } Reorder(false, false); ListenForUpdate(HandleUpdate); _isInitializing = false; }
public SlotList(float width, float height) { _width = width; _height = height; touchableRect = new Rect(-_width/2,-10000,_width-Config.SLOT_HEIGHT*2-Config.PADDING_XS*2,20000);//infinite height because thaat's how i doooo _scroller = new RXScroller(0,_minScrollY,_maxScrollY); _touchSlot = Futile.touchManager.GetTouchSlot(0); AddChild(slotContainer = new FContainer()); List<Player> players = SKDataManager.GetPlayers(); for(int p = 0; p<players.Count; p++) { AddSlotForPlayer(players[p], false); } Reorder(false,false); ListenForUpdate(HandleUpdate); _isInitializing = false; }