feat: update tips

This commit is contained in:
rankun 2020-08-02 12:54:32 +08:00
commit bd665bd29e
2 changed files with 2 additions and 1 deletions

View file

@ -494,6 +494,7 @@ void InputConvertGame::stopMouseMoveTimer()
bool InputConvertGame::switchGameMap() bool InputConvertGame::switchGameMap()
{ {
m_gameMap = !m_gameMap; m_gameMap = !m_gameMap;
qInfo() << tr("current keymap mode: %1").arg(m_gameMap ? tr("custom") : tr("normal"));
if (!m_keyMap.isValidMouseMoveMap()) { if (!m_keyMap.isValidMouseMoveMap()) {
return m_gameMap; return m_gameMap;

View file

@ -277,7 +277,7 @@ void KeyMap::loadKeyMap(const QString &json)
} }
// this must be called after m_keyMapNodes is stable // this must be called after m_keyMapNodes is stable
makeReverseMap(); makeReverseMap();
qInfo() << tr("Script updated, Press ~ key to switch the mapping mode"); qInfo() << tr("Script updated, current keymap mode:normal, Press ~ key to switch keymap mode");
parseError: parseError:
if (!errorString.isEmpty()) { if (!errorString.isEmpty()) {