[Semi-Tutorial] Adding paged clan list
search (2x):
Quote:
ApiClanGetLeaderboard()
replace with (2x):
Quote:
ApiClanGetLeaderboard(int sortID, int page)
search:
Quote:
CWOBackendReq req(&gUserProfile, "api_ClanGetInfo.aspx");
req.AddParam("CharID", gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID].LoadoutID);
req.AddParam("func", "lb");
under it add this:
Quote:
req.AddParam("page", page);
req.AddParam("sorting", sortID);
search this:
Quote:
void FrontendWarZ::eventRequestClanList(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
replace everything until:
with:
Quote:
r3d_assert(argCount == 2);
int sortID = args[0].GetInt();
int page = args[1].GetInt();
gfxMovie.Invoke("_root.api.Main.Clans.clearClanInfo", 0);
if(page == 0)
m_currentClanPage = 0;
else if(page == 1)
m_currentClanPage -= 1;
else if(page == 2)
m_currentClanPage += 1;
search this:
Quote:
void updateSurvivorTotalWeight(int survivor);
under it add:
Quote:
// clan stuff
int m_currentClanPage;
Only ASPX & MSSQL Stuff needs to be done because I'm using PHP & MySQL.
If you're using my PHP API replace ClanGetInfo.php with this:
http://pastebin.com/L6kP4GYy
Re: [Semi-Tutorial] Adding paged clan list
Re: [Semi-Tutorial] Adding paged clan list
Re: [Semi-Tutorial] Adding paged clan list