mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 12:56:42 +00:00 
			
		
		
		
	Do not display weight or value in tooltip for zero-weight items (Fixes #2047)
This commit is contained in:
		
							parent
							
								
									925fa8d193
								
							
						
					
					
						commit
						fa746b8e54
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -191,8 +191,11 @@ namespace MWClass | |||
| 
 | ||||
|         std::string text; | ||||
| 
 | ||||
|         text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight); | ||||
|         text += MWGui::ToolTips::getValueString(ref->mBase->mData.mValue, "#{sValue}"); | ||||
|         if (ref->mBase->mData.mWeight != 0) | ||||
|         { | ||||
|             text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight); | ||||
|             text += MWGui::ToolTips::getValueString(ref->mBase->mData.mValue, "#{sValue}"); | ||||
|         } | ||||
| 
 | ||||
|         if (MWBase::Environment::get().getWindowManager()->getFullHelp()) { | ||||
|             text += MWGui::ToolTips::getCellRefString(ptr.getCellRef()); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue