mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Use aggregate and QList
Took 8 minutes Took 6 seconds
This commit is contained in:
parent
96b331746b
commit
0155d2b2bc
2 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ HomeWidget::HomeWidget(QWidget *parent, TabSupervisor *_tabSupervisor)
|
||||||
}
|
}
|
||||||
auto sequence = TutorialSequence();
|
auto sequence = TutorialSequence();
|
||||||
sequence.addStep({connectButton, "Connect to a server to play here!"});
|
sequence.addStep({connectButton, "Connect to a server to play here!"});
|
||||||
auto vdeStep = TutorialStep(visualDeckEditorButton, "Create a new deck from cards in the database here!");
|
auto vdeStep = TutorialStep{visualDeckEditorButton, "Create a new deck from cards in the database here!"};
|
||||||
vdeStep.requiresInteraction = true;
|
vdeStep.requiresInteraction = true;
|
||||||
vdeStep.allowClickThrough = true;
|
vdeStep.allowClickThrough = true;
|
||||||
vdeStep.validationHint = "Open the deck editor to try it out!";
|
vdeStep.validationHint = "Open the deck editor to try it out!";
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
#include "tutorial_overlay.h"
|
#include "tutorial_overlay.h"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QVector>
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
enum class ValidationTiming
|
enum class ValidationTiming
|
||||||
|
|
@ -43,7 +43,7 @@ struct TutorialStep
|
||||||
struct TutorialSequence
|
struct TutorialSequence
|
||||||
{
|
{
|
||||||
QString name;
|
QString name;
|
||||||
QVector<TutorialStep> steps;
|
QList<TutorialStep> steps;
|
||||||
|
|
||||||
void addStep(const TutorialStep &step)
|
void addStep(const TutorialStep &step)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue