[Tutorial] Set server buttons active (only for new FrontEnd)

Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Member aomsin2526 is offline
    MemberRank
    Apr 2013 Join Date
    54Posts

    [Tutorial] Set server buttons active (only for new FrontEnd)



    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

    Code:
    InitButtons();
    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();


  2. #2
    Apprentice wujia360 is offline
    MemberRank
    Oct 2013 Join Date
    22Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Thanks for posting

  3. #3
    Apprentice MekkubJKG is offline
    MemberRank
    Oct 2013 Join Date
    10Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    thanks ขอบคุณ คุณออมสินครับ :D

  4. #4
    Enthusiast nadood1g is offline
    MemberRank
    Sep 2013 Join Date
    31Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    ขอบคุณจร้า // จากเซิฟ InvasionMMO Thailand

    Thx ! // by. Developer InvasionMMO Thailand

  5. #5
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    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.
    Last edited by crysis55; 21-12-13 at 07:58 PM.

  6. #6
    Enthusiast Br3n0k is offline
    MemberRank
    Jan 2010 Join Date
    BrazilLocation
    32Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    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

    Why this is errors?
    Last edited by Br3n0k; 22-12-13 at 11:24 PM.

  7. #7
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by Br3n0k View Post

    Why this is errors?
    You add InitButtons in FrontEndWarZ.h?

  8. #8
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    thank you

  9. #9
    Enthusiast nadood1g is offline
    MemberRank
    Sep 2013 Join Date
    31Posts

    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();
    Last edited by nadood1g; 23-12-13 at 04:22 PM.

  10. #10
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by javaz97 View Post
    thank you
    That work for you?

  11. #11
    Enthusiast nadood1g is offline
    MemberRank
    Sep 2013 Join Date
    31Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by crysis55 View Post
    That work for you?
    Soure code work to me but don't find server list

  12. #12
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by nadood1g View Post
    Soure code work to me but don't find server list
    Same here and i don't know what is this =/

  13. #13
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by crysis55 View Post
    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.

  14. #14
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by Dragonbooss View Post
    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. ..

  15. #15
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    Re: [Tutorial] Set server buttons active (only for new FrontEnd)

    Quote Originally Posted by crysis55 View Post
    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?



Page 1 of 3 123 LastLast

Advertisement