mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- added color picking used colors count in debug view
This commit is contained in:
@@ -5275,7 +5275,12 @@ string Game::getDebugStats(std::map<int,string> &factionDebugInfo) {
|
||||
str+= "ExploredCellsLookupItemCache: " + world.getExploredCellsLookupItemCacheStats()+"\n";
|
||||
str+= "FowAlphaCellsLookupItemCache: " + world.getFowAlphaCellsLookupItemCacheStats()+"\n";
|
||||
|
||||
str += "Selection type: "+toLower(Config::getInstance().getString("SelectionType",Config::colorPicking))+"\n";
|
||||
const string selectionType = toLower(Config::getInstance().getString("SelectionType",Config::colorPicking));
|
||||
str += "Selection type: " + toLower(selectionType) + "\n";
|
||||
|
||||
if(selectionType == Config::colorPicking) {
|
||||
str += "Color picking used color list size: " + intToStr(BaseColorPickEntity::getUsedColorIDListSize()) +"\n";
|
||||
}
|
||||
|
||||
//str+= "AllFactionsCacheStats: " + world.getAllFactionsCacheStats()+"\n";
|
||||
//str+= "AttackWarningCount: " + intToStr(world.getUnitUpdater()->getAttackWarningCount()) + "\n";
|
||||
|
@@ -286,6 +286,8 @@ public:
|
||||
unsigned char * getUniqueColorID() { return &uniqueColorID[0]; }
|
||||
bool get_next_assign_color(unsigned char *assign_to);
|
||||
|
||||
static int getUsedColorIDListSize() { return (int)usedColorIDList.size(); }
|
||||
|
||||
private:
|
||||
|
||||
unsigned char uniqueColorID[COLOR_COMPONENTS];
|
||||
|
Reference in New Issue
Block a user