AEFeinstein / AEFeinstein/mtg-familiar
Move/Copy Cards Between Lists
- Ngôn ngữ chính
- HTML
- Star
- 307
- Fork
- 80
- Merge trung bình
- 14 giờ 41 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
Familiar has a number of lists of cards which can each be represented as a `List`:
* Wishlist
* Each deck
* Each trade, both left and right sides
Cards should be able to be moved between two arbitrary lists. The UI for this will appear when long-pressing one or multiple cards. This UI is currently defined in `action_mode_menu.xml` and `decklist_select_menu.xml`, and currently allows deletion of cards. These two files should be unified with buttons for "move to" and "copy to" other lists.
When clicked, the buttons should display a dialog list of other lists (all decks, all trades, and the wishlist). If a trade is selected as the destination, it should display another dialog asking if the destination is the left or the right of the trade. Once a destination is selected, the cards should be moved or copied.
This kind of already exists with `deck_import_selected`, so that should be removed. Look there for where to put the button logic.
Lists of decks and trades can be gotten with the following. There is only one wishlist.
* `final String[] tradeNames = getFiles(TradeFragment.TRADE_EXTENSION);`
* `final String[] deckNames = getFiles(DecklistFragment.DECK_EXTENSION);`
For modification, decklists and wishlists can be read with the following. There is currently no helper to read trades, it's all done in `loadTrade()`.
* `DecklistHelpers.ReadDecklist()`
* `WishlistHelpers.ReadWishlist()`
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.