Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Oct 22, 2024
1 parent cebfe7c commit 1091714
Show file tree
Hide file tree
Showing 6 changed files with 5,741 additions and 5,696 deletions.
11 changes: 11 additions & 0 deletions coreengine/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,16 @@ void Settings::setKey_ShowIndirectAttackFields2(const Qt::Key key_ShowIndirectAt
m_key_ShowIndirectAttackFields2 = key_ShowIndirectAttackFields2;
}

Qt::Key Settings::getKey_toggleGridLayout()
{
return m_key_toggleGridLayout;
}

void Settings::setKey_toggleGridLayout(const Qt::Key key_toggleGridLayout)
{
m_key_toggleGridLayout = key_toggleGridLayout;
}

Qt::Key Settings::getKey_ShowAttackFields2()
{
return m_key_ShowAttackFields2;
Expand Down Expand Up @@ -1304,6 +1314,7 @@ void Settings::setup()
MemoryManagement::create<Value<Qt::Key>>("Keys", "key_EditorPreviousTeam", &m_key_EditorPreviousTeam, Qt::Key_Asterisk, static_cast<Qt::Key>(0), Qt::Key_unknown),
MemoryManagement::create<Value<Qt::Key>>("Keys", "key_EditorSelectionRight", &m_key_EditorSelectionRight, Qt::Key_R, static_cast<Qt::Key>(0), Qt::Key_unknown),
MemoryManagement::create<Value<Qt::Key>>("Keys", "key_EditorSelectionLeft", &m_key_EditorSelectionLeft, Qt::Key_T, static_cast<Qt::Key>(0), Qt::Key_unknown),
MemoryManagement::create<Value<Qt::Key>>("Keys", "key_toggleGridLayout", &m_key_toggleGridLayout, Qt::Key_G, static_cast<Qt::Key>(0), Qt::Key_unknown),
// sound
MemoryManagement::create<Value<qint32>>("Sound", "TotalVolume", &m_TotalVolume, 100, 0, 100),
MemoryManagement::create<Value<qint32>>("Sound", "MusicVolume", &m_MusicVolume, 80, 0, 100),
Expand Down
3 changes: 3 additions & 0 deletions coreengine/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ class Settings final : public QObject
Q_INVOKABLE void setKey_ShowAttackFields2(const Qt::Key key_ShowAttackFields2);
Q_INVOKABLE Qt::Key getKey_ShowIndirectAttackFields2();
Q_INVOKABLE void setKey_ShowIndirectAttackFields2(const Qt::Key key_ShowIndirectAttackFields2);
Q_INVOKABLE Qt::Key getKey_toggleGridLayout();
Q_INVOKABLE void setKey_toggleGridLayout(const Qt::Key key_toggleGridLayout);
Q_INVOKABLE Qt::Key getKey_up2();
Q_INVOKABLE void setKey_up2(const Qt::Key key_up2);
Q_INVOKABLE Qt::Key getKey_down2();
Expand Down Expand Up @@ -886,6 +888,7 @@ class Settings final : public QObject
Qt::Key m_key_MapZoomIn2{Qt::Key(0)};
Qt::Key m_key_ShowAttackFields2{Qt::Key(0)};
Qt::Key m_key_ShowIndirectAttackFields2{Qt::Key(0)};
Qt::Key m_key_toggleGridLayout{Qt::Key_G};

Qt::Key m_key_EditorPlaceTerrain{Qt::Key_1};
Qt::Key m_key_EditorPlaceBuilding{Qt::Key_2};
Expand Down
Loading

0 comments on commit 1091714

Please sign in to comment.