mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 14:56:38 +00:00 
			
		
		
		
	a few tweaks
This commit is contained in:
		
							parent
							
								
									de995e3a69
								
							
						
					
					
						commit
						4ce50c503b
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -230,7 +230,9 @@ void StatsWindow::setBirthSign (const std::string& signId) | |||
| 
 | ||||
| void StatsWindow::addSeparator(MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) | ||||
| { | ||||
|     MyGUI::ImageBox* separator = skillClientWidget->createWidget<MyGUI::ImageBox>("MW_HLine", MyGUI::IntCoord(10, coord1.top, coord1.width + coord2.width - 4, 18), MyGUI::Align::Default); | ||||
|     MyGUI::ImageBox* separator = skillClientWidget->createWidget<MyGUI::ImageBox>("MW_HLine", | ||||
|         MyGUI::IntCoord(10, coord1.top, coord1.width + coord2.width - 4, 18), | ||||
|         MyGUI::Align::Left | MyGUI::Align::Top | MyGUI::Align::HStretch); | ||||
|     skillWidgets.push_back(separator); | ||||
| 
 | ||||
|     coord1.top += separator->getHeight(); | ||||
|  | @ -239,7 +241,9 @@ void StatsWindow::addSeparator(MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) | |||
| 
 | ||||
| void StatsWindow::addGroup(const std::string &label, MyGUI::IntCoord &coord1, MyGUI::IntCoord &coord2) | ||||
| { | ||||
|     MyGUI::TextBox* groupWidget = skillClientWidget->createWidget<MyGUI::TextBox>("SandBrightText", MyGUI::IntCoord(0, coord1.top, coord1.width + coord2.width, coord1.height), MyGUI::Align::Default); | ||||
|     MyGUI::TextBox* groupWidget = skillClientWidget->createWidget<MyGUI::TextBox>("SandBrightText", | ||||
|         MyGUI::IntCoord(0, coord1.top, coord1.width + coord2.width, coord1.height), | ||||
|         MyGUI::Align::Left | MyGUI::Align::Top | MyGUI::Align::HStretch); | ||||
|     groupWidget->setCaption(label); | ||||
|     skillWidgets.push_back(groupWidget); | ||||
| 
 | ||||
|  | @ -251,7 +255,7 @@ MyGUI::TextBox* StatsWindow::addValueItem(const std::string& text, const std::st | |||
| { | ||||
|     MyGUI::TextBox *skillNameWidget, *skillValueWidget; | ||||
| 
 | ||||
|     skillNameWidget = skillClientWidget->createWidget<MyGUI::TextBox>("SandText", coord1, MyGUI::Align::Default); | ||||
|     skillNameWidget = skillClientWidget->createWidget<MyGUI::TextBox>("SandText", coord1, MyGUI::Align::Left | MyGUI::Align::Top | MyGUI::Align::HStretch); | ||||
|     skillNameWidget->setCaption(text); | ||||
|     skillNameWidget->setUserString("ToolTipType", "Text"); | ||||
|     skillNameWidget->setUserString("ToolTipText", tooltip); | ||||
|  |  | |||
|  | @ -103,8 +103,8 @@ void ToolTips::onFrame(float frameDuration) | |||
| 
 | ||||
|             // adjust tooltip size to fit its content, position it above the crosshair
 | ||||
|             /// \todo Slide the tooltip along the bounding box of the focused object (like in Morrowind)
 | ||||
|             setCoord(viewSize.width/2 - (tooltipSize.width)/2.f, | ||||
|                     viewSize.height/2 - (tooltipSize.height) - 32, | ||||
|             setCoord(std::max(0, viewSize.width/2 - (tooltipSize.width)/2), | ||||
|                     std::max(0, viewSize.height/2 - (tooltipSize.height) - 32), | ||||
|                     tooltipSize.width, | ||||
|                     tooltipSize.height); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue