Merge pull request #578 from ZobyTwo/deck_viewer_1
Reset positions and filters when reopening the editor. These changes are trivial so I will merge them.
This commit is contained in:
@@ -70,6 +70,8 @@ bool DeckView::ButtonPressed(Buttons button)
|
|||||||
void DeckView::SetDeck(DeckDataWrapper *toShow)
|
void DeckView::SetDeck(DeckDataWrapper *toShow)
|
||||||
{
|
{
|
||||||
mCurrentDeck = toShow;
|
mCurrentDeck = toShow;
|
||||||
|
dirtyCardPos = true;
|
||||||
|
dirtyFilters = true;
|
||||||
reloadIndexes();
|
reloadIndexes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ void GameStateDeckViewer::Start()
|
|||||||
myCollection = NEW DeckDataWrapper(playerdata->collection);
|
myCollection = NEW DeckDataWrapper(playerdata->collection);
|
||||||
myCollection->Sort(WSrcCards::SORT_ALPHA);
|
myCollection->Sort(WSrcCards::SORT_ALPHA);
|
||||||
setupView(mCurrentView, myCollection);
|
setupView(mCurrentView, myCollection);
|
||||||
|
toggleDeckButton->setText("View Deck");
|
||||||
|
|
||||||
//Icons
|
//Icons
|
||||||
mIcons = manaIcons;
|
mIcons = manaIcons;
|
||||||
|
|||||||
Reference in New Issue
Block a user