- in observer mode, show queued work for all factions
- when showing queues, now also show up to a max of 4 details for the first 4 items in the queue
This commit is contained in:
parent
69a627dca7
commit
dd9b984a82
|
@ -129,7 +129,9 @@ bool Selection::isUniform() const{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Selection::isEnemy() const{
|
bool Selection::isEnemy() const{
|
||||||
return selectedUnits.size()==1 && selectedUnits.front()->getFactionIndex()!=factionIndex;
|
return selectedUnits.size() == 1 &&
|
||||||
|
(selectedUnits.front()->getFactionIndex() != factionIndex ||
|
||||||
|
factionIndex == (GameConstants::maxPlayers -1 + fpt_Observer));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Selection::isCommandable() const{
|
bool Selection::isCommandable() const{
|
||||||
|
|
|
@ -1474,6 +1474,13 @@ string Unit::getDesc() const {
|
||||||
str+= "\n" + commands.front()->getCommandType()->getName();
|
str+= "\n" + commands.front()->getCommandType()->getName();
|
||||||
if(commands.size() > 1) {
|
if(commands.size() > 1) {
|
||||||
str += "\n" + lang.get("OrdersOnQueue") + ": " + intToStr(commands.size());
|
str += "\n" + lang.get("OrdersOnQueue") + ": " + intToStr(commands.size());
|
||||||
|
Commands::const_iterator it= commands.begin();
|
||||||
|
for(unsigned int i = 0; i < min((size_t)4,commands.size()); ++i) {
|
||||||
|
const CommandType *ct = (*it)->getCommandType();
|
||||||
|
//str += "\n" + ct->getDesc(this->getTotalUpgrade());
|
||||||
|
str += "\n#" + intToStr(i+1) + " " + ct->getName();
|
||||||
|
it++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue