diff --git a/lolautoaccept.pro b/lolautoaccept.pro
index 45a3854..86e1238 100644
--- a/lolautoaccept.pro
+++ b/lolautoaccept.pro
@@ -20,6 +20,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+DEFINES += LOLAA_VERSION=\\\"0.0.6\\\"
+
# parameters: var, prepend, append
defineReplace(prependAll) {
for(a,$$1):result += $$2$${a}$$3
diff --git a/resources/ts/de_DE.ts b/resources/ts/de_DE.ts
index 6e2bfdd..f8b0b01 100644
--- a/resources/ts/de_DE.ts
+++ b/resources/ts/de_DE.ts
@@ -22,59 +22,93 @@
LoL-Auto-Accept
-
+
Hauptschalter
-
+
Spiel automatisch annehmen
-
+
Wenn nicht genau 1 Spieler Smite ausgewählt hat, wird "smite" in den Chat gespammt
-
+
+
+ Einen Text schreiben, sobald du in der Champion Auswahl bist.
+
+
+
+
+ Automatisch Schreiben
+
+
+
Smite Warnung
-
+
+
+ Entwickelt von MrBesen
+
+
+
+
+ Zu schreibender Text
+
+
+
Dieser Tab wird verwendet, wenn der Gamemode keine festen Rollen hat
-
+
Default
-
+
Top
-
+
Jungle
-
+
-
+
-
+
-
+ Support
+
+
+
+
+ <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a>
+
+
+
+ <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a>
+
+
+
+
+ Version:
@@ -89,22 +123,27 @@
Bannen
-
+
+
+ Version: %1
+
+
+
League of Legends Client nicht gefunden!
-
+
-
+
Auto Acceptor gestoppt!
-
+
Auto-Acceptor fehlgeschlagen!
@@ -161,7 +200,7 @@ ID: %4
Champion:
-
+
Aktiviere %1
diff --git a/resources/ts/en.ts b/resources/ts/en.ts
index 9c7f7ae..8dd32e3 100644
--- a/resources/ts/en.ts
+++ b/resources/ts/en.ts
@@ -22,59 +22,93 @@
LoL-Auto-Accept
-
+
Mainswitch
-
+
Automatically accept game
-
+
Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select
-
+
+
+ Write a Text as soon as you are in the champ select lobby.
+
+
+
+
+ Auto write
+
+
+
Enable Smite Warning
-
+
+
+ Developed by MrBesen
+
+
+
+
+ Text to autowrite
+
+
+
This Tab is used, when you are in a gamemode with no fixed roles
-
+
Default
-
+
Top
-
+
Jungle
-
+
-
+
-
+
-
+ Support
+
+
+
+
+ <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a>
+
+
+
+ <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a>
+
+
+
+
+ Version:
@@ -89,22 +123,27 @@
Ban
-
+
+
+ Version: %1
+
+
+
League of Legends Client not found!
-
+
Auto-Acceptor started!
-
+
Auto-Acceptor stopped!
-
+
Auto-Acceptor failed!
@@ -161,7 +200,7 @@ ID: %4
Champion:
-
+
Enable %1
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2bddfba..601caa2 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -7,6 +7,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
lolaa(conf.getConfig(), dd, std::bind(&MainWindow::onFail, this), std::bind(&MainWindow::onPosChange, this, std::placeholders::_1)) {
ui->setupUi(this);
+ ui->versionLabel->setText(tr("Version: %1").arg(LOLAA_VERSION));
+
lolaa.setOnRuneChangeFunc(std::bind(&RuneDisplay::setRunes, ui->runedisplay, std::placeholders::_1));
conf.load();
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
index 5077a5d..918eefa 100644
--- a/ui/mainwindow.ui
+++ b/ui/mainwindow.ui
@@ -6,8 +6,8 @@
0
0
- 465
- 635
+ 482
+ 629
@@ -31,29 +31,47 @@
0
0
- 465
+ 475
581
-
+
QLayout::SetDefaultConstraint
- -
+
+ 6
+
+
+ 6
+
+
+ 6
+
+
+ 6
+
+
+ 9
+
+
-
Mainswitch
- -
-
+
-
+
+
+ Write a Text as soon as you are in a champ select lobby.
+
- Enable LoL-Auto-Accept
+ Auto Write
- -
+
-
Spam "smite" in the chat when there is not exactly 1 player with smite equiped in champ select
@@ -66,14 +84,30 @@
- -
-
+
-
+
+
+ -
+
- Auto Write
+ Enable LoL-Auto-Accept
- -
+
-
+
+
+ Developed by MrBesen
+
+
+ Qt::PlainText
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
@@ -113,7 +147,7 @@
- -
+
-
QTabWidget::North
@@ -186,8 +220,37 @@
- -
-
+
-
+
+
+ <a href="https://git.mrbesen.de/MrBesen/lolautoaccept/releases">Webseite</a>
+
+
+ Qt::RichText
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+ true
+
+
+ Qt::TextBrowserInteraction
+
+
+
+ -
+
+
+ Version:
+
+
+ Qt::PlainText
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
@@ -197,7 +260,7 @@
0
0
- 465
+ 482
24
@@ -224,6 +287,10 @@
mainswitch
enableAll
+ enableSmiteWarning
+ enableAutoWrite
+ autoWriteText
+ tabWidget
@@ -234,8 +301,8 @@
aatoggled(bool)
- 19
- 61
+ 25
+ 88
393
@@ -282,8 +349,8 @@
applyRunes()
- 270
- 599
+ 232
+ 598
452
@@ -314,8 +381,8 @@
autoWriteChanged()
- 182
- 130
+ 188
+ 156
441
@@ -346,8 +413,8 @@
setEnabled(bool)
- 88
- 131
+ 94
+ 156
86