Browse Source

Fix menu selector positioning

master
C. J. Howard 5 years ago
parent
commit
b7369ac43e
Signed by: cjhoward GPG Key ID: 03E1FABA9C3EC195
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/game.cpp
  2. +1
    -1
      src/states/language-select-state.cpp

+ 1
- 1
src/game.cpp View File

@ -369,7 +369,7 @@ void Game::selectMenuItem(int index, bool tween)
}
// Determine target position of menu item selector
Vector2 itemTranslation = currentMenuItem->getContainer()->getTranslation();
Vector2 itemTranslation = currentMenuItem->getContainer()->getPosition() - currentMenu->getContainer()->getPosition();
Vector2 itemDimensions = currentMenuItem->getContainer()->getDimensions();
float spacing = fontSizePX;
Vector2 translation;

+ 1
- 1
src/states/language-select-state.cpp View File

@ -78,7 +78,7 @@ void Game::exitLanguageSelectState()
closeCurrentMenu();
// Show menu item selector
menuSelectorImage->setVisible(false);
menuSelectorImage->setVisible(true);
// Set standard menu item colors
menuItemActiveColor = standardMenuActiveColor;

Loading…
Cancel
Save