mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
remove todo
This commit is contained in:
@@ -267,16 +267,7 @@ ResourcesPanel::ResourcesPanel(const CTradeableItem::ClickPressedFunctor & click
|
||||
{
|
||||
OBJECT_CONSTRUCTION;
|
||||
|
||||
// TODO: replace with LIBRARY->resourceTypeHandler->getAllObjects() -> also check order after doing this
|
||||
resourcesForTrade =
|
||||
{
|
||||
GameResID::WOOD, GameResID::MERCURY, GameResID::ORE,
|
||||
GameResID::SULFUR, GameResID::CRYSTAL, GameResID::GEMS,
|
||||
GameResID::GOLD,
|
||||
GameResID::GOLD, // TODO: remove
|
||||
GameResID::GOLD, // TODO: remove
|
||||
GameResID::GOLD // TODO: remove
|
||||
};
|
||||
resourcesForTrade = LIBRARY->resourceTypeHandler->getAllObjects();
|
||||
|
||||
int lines = vstd::divideAndCeil(resourcesForTrade.size(), 3);
|
||||
if(lines > 3)
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "../../lib/GameLibrary.h"
|
||||
#include "../../lib/callback/CCallback.h"
|
||||
#include "../../lib/entities/building/CBuilding.h"
|
||||
#include "../../lib/entities/ResourceTypeHandler.h"
|
||||
#include "../../lib/mapObjects/CGHeroInstance.h"
|
||||
#include "../../lib/mapObjects/CGMarket.h"
|
||||
#include "../../lib/mapObjects/CGTownInstance.h"
|
||||
@@ -202,7 +203,7 @@ std::string CMarketWindow::getMarketTitle(const ObjectInstanceID marketId, const
|
||||
|
||||
ImagePath CMarketWindow::getImagePathBasedOnResources(std::string name)
|
||||
{
|
||||
int res = 9; //TODO: replace with LIBRARY->resourceTypeHandler->getAllObjects();
|
||||
int res = LIBRARY->resourceTypeHandler->getAllObjects().size();
|
||||
if(res == 8)
|
||||
name += "-R8";
|
||||
else if(res > 8)
|
||||
|
||||
Reference in New Issue
Block a user