lock icon on unpublished saves
This commit is contained in:
parent
006dfdf596
commit
b3741cd67c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user