mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 14:56:38 +00:00 
			
		
		
		
	Right mouse button click now stops Container GuiMode.
This commit is contained in:
		
							parent
							
								
									f19fbaa293
								
							
						
					
					
						commit
						bba024d6ad
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		|  | @ -579,10 +579,14 @@ namespace MWInput | |||
|         // Toggle between game mode and inventory mode
 | ||||
|         if(gameMode) | ||||
|             mWindows.pushGuiMode(MWGui::GM_Inventory); | ||||
|         else if(mWindows.getMode() == MWGui::GM_Inventory) | ||||
|             mWindows.popGuiMode(); | ||||
|         else | ||||
|         { | ||||
|             MWGui::GuiMode mode = mWindows.getMode(); | ||||
|             if(mode == MWGui::GM_Inventory || mode == MWGui::GM_Container) | ||||
|                 mWindows.popGuiMode(); | ||||
|         } | ||||
| 
 | ||||
|         // .. but don't touch any other mode.
 | ||||
|         // .. but don't touch any other mode, except container.
 | ||||
|     } | ||||
| 
 | ||||
|     void InputManager::toggleConsole() | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue