mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Expand tutorial again.
Took 46 minutes Took 6 seconds
This commit is contained in:
parent
bec4ae3aa0
commit
80075e4089
7 changed files with 112 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "deck_editor_deck_dock_widget.h"
|
||||
|
||||
#include "../../../client/settings/cache_settings.h"
|
||||
#include "../general/tutorial/tutorial_controller.h"
|
||||
#include "deck_list_style_proxy.h"
|
||||
#include "deck_state_manager.h"
|
||||
|
||||
|
|
@ -280,6 +281,22 @@ void DeckEditorDeckDockWidget::createDeckDock()
|
|||
}
|
||||
}
|
||||
|
||||
TutorialSequence DeckEditorDeckDockWidget::generateTutorialSequence()
|
||||
{
|
||||
TutorialSequence sequence;
|
||||
sequence.name = tr("The Deck Info Widget");
|
||||
|
||||
TutorialStep introStep;
|
||||
introStep.targetWidget = this;
|
||||
introStep.text = tr("This is the deck info widget.\n\nHere, you can adjust all kinds of metadata such as the name, "
|
||||
"the comments, or the tags of a deck.\nIt also displays the contents of your deck in a list "
|
||||
"and provides buttons to manipulate the decklist.");
|
||||
|
||||
sequence.addStep(introStep);
|
||||
|
||||
return sequence;
|
||||
}
|
||||
|
||||
void DeckEditorDeckDockWidget::initializeFormats()
|
||||
{
|
||||
QStringList allFormats = CardDatabaseManager::query()->getAllFormatsWithCount().keys();
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "../../../interface/widgets/tabs/abstract_tab_deck_editor.h"
|
||||
#include "../../key_signals.h"
|
||||
#include "../general/tutorial/tutorial_controller.h"
|
||||
#include "../utility/custom_line_edit.h"
|
||||
#include "../visual_deck_storage/deck_preview/deck_preview_deck_tags_display_widget.h"
|
||||
#include "deck_list_history_manager_widget.h"
|
||||
|
|
@ -46,6 +47,8 @@ public:
|
|||
return deckView->selectionModel();
|
||||
}
|
||||
|
||||
TutorialSequence generateTutorialSequence();
|
||||
|
||||
public slots:
|
||||
void selectPrevCard();
|
||||
void selectNextCard();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue