1
Work In Progress / Re: [ALPHA][WIP] Rise of the New Order
« on: March 12, 2015, 07:03:57 pm »
Naming arctic region as empire is funny. Maybe after melting ice caps it would make more sense ;-)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ADD AT TOP OF FILE:
#include "../Savegame/ItemContainer.h"
REMOVE THIS:
_txtFunds->setText(tr("STR_FUNDS").arg(Text::formatFunding(_game->getSavedGame()->getFunds())));
ADD THIS:
const std::vector<std::string> &items = _game->getRuleset()->getItemsList();
for (std::vector<std::string>::const_iterator i = items.begin(); i != items.end(); ++i)
{
int e115;
int alloy;
std::wostringstream ss, ss2;
if (*i=="STR_ELERIUM_115")
{
e115 = _base->getItems()->getItem(*i);
}
if (*i=="STR_ALIEN_ALLOYS")
{
alloy = _base->getItems()->getItem(*i);
}
ss << e115;
ss2 << alloy;
_txtFunds->setText(tr("E>{0}, A>{1}").arg(ss.str()).arg(ss2.str()));
}