In my Source code
Credit aomsin2526 Source code
FrondEndWarZ.cpp
find
Code:
void FrontendWarZ::initFrontend()
add above
Code:
void FrontendWarZ::InitButtons()
{
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false);
vars[1].SetBoolean(true); // Oficial
vars[2].SetBoolean(false);
vars[3].SetBoolean(false);
vars[4].SetBoolean(false);
vars[5].SetBoolean(false); // PTE
vars[6].SetBoolean(false);
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
find
Code:
gfxMovie.RegisterEventHandler("eventOptionsControlsRequestKeyRemap", MAKE_CALLBACK(eventOptionsControlsRequestKeyRemap));
add below
Code:
gfxMovie.RegisterEventHandler("eventSetCurrentBrowseChannel", MAKE_CALLBACK(eventSetCurrentBrowseChannel));
find
Code:
void FrontendWarZ::eventCreateChangeCharacter(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
add above
Code:
void FrontendWarZ::eventSetCurrentBrowseChannel(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
r3d_assert(argCount == 1);
// CurrentBrowse = args[0].GetUInt(); // used for server filter (Official , Private , PTE , Stronghold , Tiral , Veteran , Premium) only work in allright source
gfxMovie.Invoke("_root.api.Main.showScreen","ServerBrowse"); // show browse screen
}
FrondEndWarZ.h
find
Code:
void eventOptionsControlsApply(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
add below
Code:
void eventSetCurrentBrowseChannel(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
find
Code:
virtual int Update();
add below
Code:
void InitButtons();