diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-03-07 13:11:00 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2023-04-08 18:59:17 -0400 |
commit | 296385e6fe6f9ec543d96ba7ed068e793a12c3f3 (patch) | |
tree | c3ed93aad6abca94f22de1f50d6db1f165ca9812 /src/CommandCompleter.cpp | |
parent | Implement unknown msgtype functionality (diff) | |
download | nheko-296385e6fe6f9ec543d96ba7ed068e793a12c3f3.tar.xz |
Add rainfall effect
This is a proof-of-concept example of inplementing a msgtype not found in the spec.
Diffstat (limited to 'src/CommandCompleter.cpp')
-rw-r--r-- | src/CommandCompleter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CommandCompleter.cpp b/src/CommandCompleter.cpp index 2ec427d6..a0fb101d 100644 --- a/src/CommandCompleter.cpp +++ b/src/CommandCompleter.cpp @@ -87,6 +87,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return QStringLiteral("/confetti "); case RainbowConfetti: return QStringLiteral("/rainbowconfetti "); + case Rainfall: + return QStringLiteral("/rainfall "); + case RainbowRain: + return QStringLiteral("/rainbowrain "); case Goto: return QStringLiteral("/goto "); case ConvertToDm: @@ -156,6 +160,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return tr("/confetti [message]"); case RainbowConfetti: return tr("/rainbowconfetti [message]"); + case Rainfall: + return tr("/rainfall [message]"); + case RainbowRain: + return tr("/rainbowrain [message]"); case Goto: return tr("/goto <message reference>"); case ConvertToDm: @@ -225,6 +233,10 @@ CommandCompleter::data(const QModelIndex &index, int role) const return tr("Send a message with confetti."); case RainbowConfetti: return tr("Send a message in rainbow colors with confetti."); + case Rainfall: + return tr("Send a message with rain."); + case RainbowRain: + return tr("Send a message in rainbow colors with rain."); case Goto: return tr("Go to a specific message using an event id, index or matrix: link"); case ConvertToDm: |