mirror of
https://github.com/overte-org/overte.git
synced 2025-06-16 06:40:14 +02:00
Add tutorialID and tutorialVersion to tutorial progress event
This commit is contained in:
parent
b8cf4e9c0e
commit
9a99cd0ec6
2 changed files with 6 additions and 2 deletions
|
@ -24,8 +24,11 @@ void UserActivityLoggerScriptingInterface::toggledAway(bool isAway) {
|
||||||
logAction("toggled_away", { { "is_away", isAway } });
|
logAction("toggled_away", { { "is_away", isAway } });
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserActivityLoggerScriptingInterface::tutorialProgress(QString stepName, int stepNumber, float secondsToComplete, float tutorialElapsedTime) {
|
void UserActivityLoggerScriptingInterface::tutorialProgress( QString stepName, int stepNumber, float secondsToComplete,
|
||||||
|
float tutorialElapsedTime, QString tutorialRunID, int tutorialVersion) {
|
||||||
logAction("tutorial_progress", {
|
logAction("tutorial_progress", {
|
||||||
|
{ "tutorial_run_id", tutorialRunID },
|
||||||
|
{ "tutorial_version", tutorialVersion },
|
||||||
{ "step", stepName },
|
{ "step", stepName },
|
||||||
{ "step_number", stepNumber },
|
{ "step_number", stepNumber },
|
||||||
{ "seconds_to_complete", secondsToComplete },
|
{ "seconds_to_complete", secondsToComplete },
|
||||||
|
|
|
@ -23,7 +23,8 @@ public:
|
||||||
Q_INVOKABLE void enabledEdit();
|
Q_INVOKABLE void enabledEdit();
|
||||||
Q_INVOKABLE void openedMarketplace();
|
Q_INVOKABLE void openedMarketplace();
|
||||||
Q_INVOKABLE void toggledAway(bool isAway);
|
Q_INVOKABLE void toggledAway(bool isAway);
|
||||||
Q_INVOKABLE void tutorialProgress(QString stepName, int stepNumber, float secondsToComplete, float tutorialElapsedTime);
|
Q_INVOKABLE void tutorialProgress(QString stepName, int stepNumber, float secondsToComplete,
|
||||||
|
float tutorialElapsedTime, QString tutorialRunID = "", int tutorialVersion = 0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void logAction(QString action, QJsonObject details = {});
|
void logAction(QString action, QJsonObject details = {});
|
||||||
|
|
Loading…
Reference in a new issue