Commit 644bfd87 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

Put the KSNake mode again, documenting it better

* This solve my previous mistake
parent 6d1d2a79
......@@ -185,7 +185,7 @@ menu item.
</chapter>
<chapter id="playing-snake">
<title>Playing &ksnakeduel;</title>
<title>Playing KSnake mode</title>
<sect1 id="playing-snake-rules">
<title>Rules</title>
......@@ -218,7 +218,7 @@ the status bar.
</para>
<para>
When you are moving through the map there will appear obstacles. Hitting them
When you are moving through the map there will also appear obstacles. Hitting them
will also result in a crash. However, every time an obstacle appears and you
survive you'll be rewarded 2 points
</para>
......@@ -494,7 +494,7 @@ which lets you tweak &ksnakeduel;'s behavior.</para>
</varlistentry>
<varlistentry>
<term><guimenuitem>&ksnakeduel;: Single player</guimenuitem></term>
<term><guimenuitem>KSnake mode: Single player</guimenuitem></term>
<listitem><para>A single player &ksnakeduel; game.</para></listitem>
</varlistentry>
</variablelist>
......
......@@ -49,7 +49,7 @@
</item>
<item>
<property name="text">
<string>KSnakeDuel: Single player</string>
<string>KSnake mode: Single player</string>
</property>
</item>
</widget>
......@@ -98,7 +98,7 @@
<item row="0" column="0">
<widget class="QLabel" name="namePlayer1Label">
<property name="text">
<string>Right player / KSnakeDuel:</string>
<string>Right player / KSnake mode:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
......
......@@ -63,25 +63,25 @@ KTron::KTron(QWidget *parent) : KXmlGuiWindow(parent, Qt::WindowFlags()) {
// We must disable the actions, otherwise we don't get the keyPressEvent's
m_player0Up = actionCollection()->addAction( QStringLiteral( "Pl1Up" ));
m_player0Up->setText(i18n("Right Player / KSnakeDuel: Up"));
m_player0Up->setText(i18n("Right Player / KSnake mode: Up"));
actionCollection()->setDefaultShortcut(m_player0Up,Qt::Key_Up);
connect(m_player0Up, &QAction::triggered, this, &KTron::triggerKey0Up);
addAction(m_player0Up);
m_player0Down = actionCollection()->addAction( QStringLiteral( "Pl1Down" ));
m_player0Down->setText(i18n("Right Player / KSnakeDuel: Down"));
m_player0Down->setText(i18n("Right Player / KSnake mode: Down"));
actionCollection()->setDefaultShortcut(m_player0Down,Qt::Key_Down);
connect(m_player0Down, &QAction::triggered, this, &KTron::triggerKey0Down);
addAction(m_player0Down);
m_player0Right = actionCollection()->addAction( QStringLiteral( "Pl1Right" ));
m_player0Right->setText(i18n("Right Player / KSnakeDuel: Right"));
m_player0Right->setText(i18n("Right Player / KSnake mode: Right"));
actionCollection()->setDefaultShortcut(m_player0Right,Qt::Key_Right);
connect(m_player0Right, &QAction::triggered, this, &KTron::triggerKey0Right);
addAction(m_player0Right);
m_player0Left = actionCollection()->addAction( QStringLiteral( "Pl1Left" ));
m_player0Left->setText(i18n("Right Player / KSnakeDuel: Left"));
m_player0Left->setText(i18n("Right Player / KSnake mode: Left"));
actionCollection()->setDefaultShortcut(m_player0Left,Qt::Key_Left);
connect(m_player0Left, &QAction::triggered, this, &KTron::triggerKey0Left);
addAction(m_player0Left);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment