浏览代码

Fix resource bar UI in hotseat

Ivan Savenko 2 年之前
父节点
当前提交
47249ee5ed
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      client/adventureMap/AdventureMapWidget.cpp

+ 4 - 0
client/adventureMap/AdventureMapWidget.cpp

@@ -372,11 +372,15 @@ void AdventureMapWidget::setPlayerChildren(CIntObject * widget, const PlayerColo
 		auto container = dynamic_cast<CAdventureMapContainerWidget *>(entry);
 		auto icon = dynamic_cast<CAdventureMapIcon *>(entry);
 		auto button = dynamic_cast<CButton *>(entry);
+		auto resDataBar = dynamic_cast<CResDataBar *>(entry);
 		auto texture = dynamic_cast<FilledTexturePlayerColored *>(entry);
 
 		if(button)
 			button->setPlayerColor(player);
 
+		if(resDataBar)
+			resDataBar->colorize(player);
+
 		if(icon)
 			icon->setPlayer(player);