mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-30 02:56:44 +00:00 
			
		
		
		
	Closes #1078: Show stat bar text even when 0
This commit is contained in:
		
							parent
							
								
									299690631f
								
							
						
					
					
						commit
						eba60858dd
					
				
					 1 changed files with 3 additions and 8 deletions
				
			
		|  | @ -527,16 +527,11 @@ namespace MWGui | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|             if (mBarTextWidget) |             if (mBarTextWidget) | ||||||
|             { |  | ||||||
|                 if (mValue >= 0 && mMax > 0) |  | ||||||
|             { |             { | ||||||
|                 std::stringstream out; |                 std::stringstream out; | ||||||
|                 out << mValue << "/" << mMax; |                 out << mValue << "/" << mMax; | ||||||
|                 static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption(out.str().c_str()); |                 static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption(out.str().c_str()); | ||||||
|             } |             } | ||||||
|                 else |  | ||||||
|                     static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption(""); |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|         void MWDynamicStat::setTitle(const std::string& text) |         void MWDynamicStat::setTitle(const std::string& text) | ||||||
|         { |         { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue