lock icon on unpublished saves

This commit is contained in:
jacob1 2012-09-29 16:24:20 -04:00 committed by Simon Robertshaw
parent 006dfdf596
commit b3741cd67c
3 changed files with 8 additions and 1 deletions

View File

@ -1646,6 +1646,7 @@ std::vector<SaveInfo*> * Client::SearchSaves(int start, int count, std::string q
json::String tempUsername = savesArray[j]["Username"];
json::String tempName = savesArray[j]["Name"];
json::Number tempVersion = savesArray[j]["Version"];
json::Boolean tempPublished = savesArray[j]["Published"];
SaveInfo * tempSaveInfo = new SaveInfo(
tempID.Value(),
tempDate.Value(),
@ -1655,6 +1656,7 @@ std::vector<SaveInfo*> * Client::SearchSaves(int start, int count, std::string q
tempName.Value()
);
tempSaveInfo->Version = tempVersion.Value();
tempSaveInfo->SetPublished(tempPublished);
saveArray->push_back(tempSaveInfo);
}
}

View File

@ -247,6 +247,11 @@ void SaveButton::Draw(const Point& screenPos)
g->drawtext(x, y, "\xA6", 160, 70, 50, 255);
}
}
if (!save->GetPublished())
{
g->drawtext(screenPos.X, screenPos.Y-2, "\xCD", 255, 255, 255, 255);
g->drawtext(screenPos.X, screenPos.Y-2, "\xCE", 212, 151, 81, 255);
}
}
if(file)
{

View File

@ -37,7 +37,7 @@ private:
void notifyShowOwnChanged();
void notifyShowFavouriteChanged();
//Variables and methods for backgroun save request
//Variables and methods for background save request
bool saveListLoaded;
bool updateSaveListWorking;
volatile bool updateSaveListFinished;