mirror of
https://github.com/glest/glest-source.git
synced 2025-09-08 23:10:42 +02:00
no screenshots when using hotkeys for listboxes
This commit is contained in:
@@ -1053,6 +1053,7 @@ void MenuStateCustomGame::mouseClick(int x, int y, MouseButton mouseButton) {
|
|||||||
//printf("lastKey = %d [%c]\n",lastKey,lastKey);
|
//printf("lastKey = %d [%c]\n",lastKey,lastKey);
|
||||||
advanceToItemStartingWith = lastKey;
|
advanceToItemStartingWith = lastKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(activeInputLabel!=NULL && !(activeInputLabel->mouseClick(x,y))){
|
if(activeInputLabel!=NULL && !(activeInputLabel->mouseClick(x,y))){
|
||||||
setActiveInputLabel(NULL);
|
setActiveInputLabel(NULL);
|
||||||
}
|
}
|
||||||
@@ -1380,7 +1381,7 @@ void MenuStateCustomGame::mouseClick(int x, int y, MouseButton mouseButton) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(listBoxFactions[i].mouseClick(x, y)) {
|
else if(listBoxFactions[i].mouseClick(x, y,advanceToItemStartingWith)) {
|
||||||
// Disallow CPU players to be observers
|
// Disallow CPU players to be observers
|
||||||
if(factionFiles[listBoxFactions[i].getSelectedItemIndex()] == formatString(GameConstants::OBSERVER_SLOTNAME) &&
|
if(factionFiles[listBoxFactions[i].getSelectedItemIndex()] == formatString(GameConstants::OBSERVER_SLOTNAME) &&
|
||||||
(listBoxControls[i].getSelectedItemIndex() == ctCpuEasy || listBoxControls[i].getSelectedItemIndex() == ctCpu ||
|
(listBoxControls[i].getSelectedItemIndex() == ctCpuEasy || listBoxControls[i].getSelectedItemIndex() == ctCpu ||
|
||||||
@@ -3936,7 +3937,8 @@ void MenuStateCustomGame::keyDown(SDL_KeyboardEvent key) {
|
|||||||
if(hasNetworkGameSettings() == true) {
|
if(hasNetworkGameSettings() == true) {
|
||||||
chatManager.keyDown(key);
|
chatManager.keyDown(key);
|
||||||
}
|
}
|
||||||
if(chatManager.getEditEnabled() == false) {
|
if(chatManager.getEditEnabled() == false &&
|
||||||
|
(Shared::Platform::Window::isKeyStateModPressed(KMOD_SHIFT) == false) ) {
|
||||||
Config &configKeys = Config::getInstance(std::pair<ConfigType,ConfigType>(cfgMainKeys,cfgUserKeys));
|
Config &configKeys = Config::getInstance(std::pair<ConfigType,ConfigType>(cfgMainKeys,cfgUserKeys));
|
||||||
|
|
||||||
//if(key == configKeys.getCharKey("ShowFullConsole")) {
|
//if(key == configKeys.getCharKey("ShowFullConsole")) {
|
||||||
|
Reference in New Issue
Block a user