mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
[App] First-run tutorial
Took 5 minutes Took 3 minutes Took 2 minutes
This commit is contained in:
parent
46bdb6df32
commit
f4a1e9ff53
33 changed files with 1787 additions and 11 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "../../../client/settings/cache_settings.h"
|
||||
#include "../../../client/settings/shortcuts_settings.h"
|
||||
#include "../general/tutorial/tutorial_controller.h"
|
||||
#include "../settings_page/user_interface_settings_page.h"
|
||||
#include "../tabs/api/commander_spellbook/commander_bracket_widget.h"
|
||||
#include "deck_list_style_proxy.h"
|
||||
|
|
@ -289,6 +290,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"
|
||||
|
|
@ -47,6 +48,8 @@ public:
|
|||
return deckView->selectionModel();
|
||||
}
|
||||
|
||||
TutorialSequence generateTutorialSequence();
|
||||
|
||||
public slots:
|
||||
void selectPrevCard();
|
||||
void selectNextCard();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue