mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Merge branch 'master' into 'master'
Fixed a bug which made the Qty and New columns disappear in Quest Deck Editor. See merge request core-developers/forge!1238
This commit is contained in:
@@ -392,16 +392,19 @@ public final class CEditorQuest extends CDeckEditor<Deck> {
|
|||||||
//Fixes null pointer error on switching tabs while quest deck editor is open. TODO: Find source of bug possibly?
|
//Fixes null pointer error on switching tabs while quest deck editor is open. TODO: Find source of bug possibly?
|
||||||
if(sectionMode == null) sectionMode = DeckSection.Main;
|
if(sectionMode == null) sectionMode = DeckSection.Main;
|
||||||
|
|
||||||
|
final Map<ColumnDef, ItemTableColumn> colOverridesCatalog = new HashMap<ColumnDef, ItemTableColumn>();
|
||||||
|
ItemTableColumn.addColOverride(ItemManagerConfig.QUEST_EDITOR_POOL, colOverridesCatalog, ColumnDef.NEW, this.questData.getCards().getFnNewCompare(), this.questData.getCards().getFnNewGet());
|
||||||
|
|
||||||
//Based on which section the editor is in, display the remaining card pool (or applicable card pool if in
|
//Based on which section the editor is in, display the remaining card pool (or applicable card pool if in
|
||||||
//Commander) and the current section's cards
|
//Commander) and the current section's cards
|
||||||
switch(sectionMode){
|
switch(sectionMode){
|
||||||
case Main :
|
case Main :
|
||||||
this.getCatalogManager().setup(ItemManagerConfig.CARD_CATALOG);
|
this.getCatalogManager().setup(ItemManagerConfig.QUEST_EDITOR_POOL, colOverridesCatalog);
|
||||||
this.getCatalogManager().setPool(getRemainingCardPool());
|
this.getCatalogManager().setPool(getRemainingCardPool());
|
||||||
this.getDeckManager().setPool(this.controller.getModel().getMain());
|
this.getDeckManager().setPool(this.controller.getModel().getMain());
|
||||||
break;
|
break;
|
||||||
case Sideboard :
|
case Sideboard :
|
||||||
this.getCatalogManager().setup(ItemManagerConfig.CARD_CATALOG);
|
this.getCatalogManager().setup(ItemManagerConfig.QUEST_EDITOR_POOL, colOverridesCatalog);
|
||||||
this.getCatalogManager().setPool(getRemainingCardPool());
|
this.getCatalogManager().setPool(getRemainingCardPool());
|
||||||
this.getDeckManager().setPool(getDeck().getOrCreate(DeckSection.Sideboard));
|
this.getDeckManager().setPool(getDeck().getOrCreate(DeckSection.Sideboard));
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user