FrontEndWarZ.cpp
Start here and take a look around:
Code:
void FrontendWarZ::initFrontend()
{
IsRentServer = false;
//LoadKillInject();
market_.initialize(&gfxMovie);
initInventoryItems();
m_RentGameNeedInput = false;
// send survivor info
Scaleform::GFx::Value var[20];
for(int i=0; i< gUserProfile.ProfileData.NumSlots; ++i)
{
addClientSurvivor(gUserProfile.ProfileData.ArmorySlots[i], i);
}
updateSurvivorTotalWeight(gUserProfile.SelectedCharID);
for(int i=0; i<r3dInputMappingMngr::KS_NUM; ++i)
{
Scaleform::GFx::Value args[2];
args[0].SetStringW(gLangMngr.getString(InputMappingMngr->getMapName((r3dInputMappingMngr::KeybordShortcuts)i)));
args[1].SetString(InputMappingMngr->getKeyName((r3dInputMappingMngr::KeybordShortcuts)i));
gfxMovie.Invoke("_root.api.addKeyboardMapping", args, 2);
}
SyncGraphicsUI();
gfxMovie.SetVariable("_root.api.SelectedChar", gUserProfile.SelectedCharID);
m_Player->uberAnim_->anim.StopAll();
m_Player->UpdateLoadoutSlot(gUserProfile.ProfileData.ArmorySlots[gUserProfile.SelectedCharID]);
gfxMovie.Invoke("_root.api.showSurvivorsScreen", "");
gfxMovie.Invoke("_root.api.setLanguage", g_user_language->GetString());
gfxMovie.SetVariable("_root.api.ChangeName_Price",80); // 80 is price
gfxMovie.SetVariable("_root.api.PremiumAccount_Price",1500); // premium account price
InitButtons(); // Set Server Buttons
if (/*gUserProfile.ProfileData.isPunisher*/ gUserProfile.ProfileData.isPremium)
gfxMovie.SetVariable("_root.api.Main.SurvivorsAnim.Survivors.PremiumAcc.visible", true);
// init clan icons
// important: DO NOT CHANGE THE ORDER OF ICONS!!! EVER!
{
gfxMovie.Invoke("_root.api.addClanIcon", "$Data/Menu/clanIcons/clan_survivor.dds");
gfxMovie.Invoke("_root.api.addClanIcon", "$Data/Menu/clanIcons/clan_bandit.dds");
gfxMovie.Invoke("_root.api.addClanIcon", "$Data/Menu/clanIcons/clan_lawman.dds");
// add new icons at the end!
}
{
//public function addClanSlotBuyInfo(buyIdx:uint, price:uint, numSlots:uint)
Scaleform::GFx::Value var[3];
for(int i=0; i<6; ++i)
{
var[0].SetUInt(i);
var[1].SetUInt(gUserProfile.ShopClanAddMembers_GP[i]);
var[2].SetUInt(gUserProfile.ShopClanAddMembers_Num[i]);
gfxMovie.Invoke("_root.api.addClanSlotBuyInfo", var, 3);
}
}
for(int i=0; i< gUserProfile.ProfileData.NumSlots; ++i) <--- this here I'd say easily change either the number slots available by tracking down the definitions or reduce the for loop. don't forget if you do to validate the other solutions. (forgot to put that)