mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
refactor method for positioning cards in ZoneViewZone (#5203)
* refactor out method for positioning cards in zone view * rename some variables * use max/min * some small formatting stuff
This commit is contained in:
parent
24b5dab456
commit
37bb1367db
2 changed files with 63 additions and 42 deletions
|
|
@ -35,6 +35,14 @@ private:
|
|||
bool sortByName, sortByType;
|
||||
bool pileView;
|
||||
|
||||
struct GridSize
|
||||
{
|
||||
int rows;
|
||||
int cols;
|
||||
};
|
||||
|
||||
GridSize positionCardsForDisplay(CardList &cards, bool groupByType = false);
|
||||
|
||||
public:
|
||||
ZoneViewZone(Player *_p,
|
||||
CardZone *_origZone,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue