瀏覽代碼

place in new line

Laserlicht 1 周之前
父節點
當前提交
bc1ba60ea5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/adventureMap/CResDataBar.cpp

+ 1 - 1
client/adventureMap/CResDataBar.cpp

@@ -123,7 +123,7 @@ void CResDataBar::showPopupWindow(const Point & cursorPosition)
 	{
 	{
 		std::string text = std::to_string(GAME->interface()->cb->getResourceAmount(i));
 		std::string text = std::to_string(GAME->interface()->cb->getResourceAmount(i));
 		if(incomeHandicapped[i])
 		if(incomeHandicapped[i])
-			text += " {lightgreen|(+" + std::to_string(incomeHandicapped[i]) + ")}";
+			text += "\n{lightgreen|(+" + std::to_string(incomeHandicapped[i]) + ")}";
 		comp.push_back(std::make_shared<CComponent>(ComponentType::RESOURCE, i, text));
 		comp.push_back(std::make_shared<CComponent>(ComponentType::RESOURCE, i, text));
 	}
 	}