[Tutorial] Set server buttons active (only for new FrontEnd)
http://i.imgur.com/8I2r3cP.jpg
FrontendWarZ.cpp
add
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(true); // PTE
vars[6].SetBoolean(false);
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
Find
Code:
gfxMovie.Invoke("_root.api.setLanguage", g_user_language->GetString());
add
find
Code:
gfxMovie.RegisterEventHandler("eventOptionsControlsRequestKeyRemap", MAKE_CALLBACK(eventOptionsControlsRequestKeyRemap));
for show browse when press server buttons
add
Code:
gfxMovie.RegisterEventHandler("eventSetCurrentBrowseChannel", MAKE_CALLBACK(eventSetCurrentBrowseChannel));
add
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
add
Code:
void eventSetCurrentBrowseChannel(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount);
void InitButtons();
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
:thumbup1:Thanks for posting
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
thanks ขอบคุณ คุณออมสินครับ :D
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
ขอบคุณจร้า // จากเซิฟ InvasionMMO Thailand
Thx ! // by. Developer InvasionMMO Thailand
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
That work, but when i click official server's i get assertion failed (argCount == 1) and not have server's.
Sorry for my bad English)
I think need use new NewGameList.
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Erro 1 error C2039: 'InitButtons' : is not a member of 'FrontendWarZ' c:\WarZ\src\EclipseStudio\Sources\UI\FrontEndWarZ.cpp 767 Eclipse Studio
Erro 2 error C2065: 'gfxMovie' : undeclared identifier c:\WarZ\src\EclipseStudio\Sources\UI\FrontEndWarZ.cpp 777 Eclipse Studio
Erro 3 error C2228: left of '.Invoke' must have class/struct/union c:\WarZ\src\EclipseStudio\Sources\UI\FrontEndWarZ.cpp 777 Eclipse Studio
http://s28.postimg.org/a91iyuegd/Sem_T_tulo_1.jpg
Why this is errors?
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
Br3n0k
You add InitButtons in FrontEndWarZ.h?
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
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();
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
javaz97
thank you
That work for you?
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
crysis55
That work for you?
Soure code work to me but don't find server list
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
nadood1g
Soure code work to me but don't find server list
Same here and i don't know what is this =/
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
crysis55
Same here and i don't know what is this =/
You have to create a way to identify the servers appear in the list, as did Aomsin2526 with servers with password (ispwd) and Premium (ispre) servers.
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
Dragonbooss
You have to create a way to identify the servers appear in the list, as did Aomsin2526 with servers with password (ispwd) and Premium (ispre) servers.
I already tried create new ProcessGameList with ispwd, isfarm and ispre and nothing. ..
Re: [Tutorial] Set server buttons active (only for new FrontEnd)
Quote:
Originally Posted by
crysis55
I already tried create new ProcessGameList with ispwd, isfarm and ispre and nothing. ..
You have configured the button to search for these terms in MasterServer?