[HELP]Add 7th tab in npc store

Results 1 to 6 of 6
  1. #1
    Proficient Member GMkidink is offline
    MemberRank
    Apr 2012 Join Date
    152Posts

    [HELP]Add 7th tab in npc store

    hi guys, as the tittle says someone know how to add the 7th(attachment tab) ingame store npc?


  2. #2
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [HELP]Add 7th tab in npc store

    Search:

    Code:
    var[0].SetNumber(6);
    var[1].SetString("equipment");
    var[2].SetBoolean(true);
    var[3].SetBoolean(false);
    gfxMovie.Invoke("_root.api.addTabType", var, 4);
    Change false for TRUE

    Code:
    var[2].SetBoolean(true);
    var[3].SetBoolean(true);

  3. #3
    Proficient Member GMkidink is offline
    MemberRank
    Apr 2012 Join Date
    152Posts

    Re: [HELP]Add 7th tab in npc store

    Quote Originally Posted by lukasccb View Post
    Search:

    Code:
    var[0].SetNumber(6);
    var[1].SetString("equipment");
    var[2].SetBoolean(true);
    var[3].SetBoolean(false);
    gfxMovie.Invoke("_root.api.addTabType", var, 4);
    Change false for TRUE

    Code:
    var[2].SetBoolean(true);
    var[3].SetBoolean(true);
    yeah this is for the FrontEnd Store. but ingame is only 6th tabs there is I want to put the attachment tab and I cannot find any way

  4. #4
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [HELP]Add 7th tab in npc store

    Quote Originally Posted by GMkidink View Post
    yeah this is for the FrontEnd Store. but ingame is only 6th tabs there is I want to put the attachment tab and I cannot find any way
    You want only:
    Default Tab is 6
    Ammo, Melee, Gear,Food, Medicals and Attach ?

    You can add Tab for 8
    Weapons and Crate system
    Last edited by LukasCCB; 21-06-16 at 10:27 AM.

  5. #5
    Proficient Member GMkidink is offline
    MemberRank
    Apr 2012 Join Date
    152Posts

    Re: [HELP]Add 7th tab in npc store

    Weapon, Ammo, Melee, Gear, Food, Medicals and Attachs = 7th in total like in the frontend markplaces this could be to edited in flash too or?

  6. #6
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [HELP]Add 7th tab in npc store

    Check it, I do not know how this method, I have never needed to change

    Code:
    bool HUDStore::Init()
    {
     	if(!gfxMovie.Load("Data\\Menu\\WarZ_HUD_GeneralStore.swf", false)) 
     		return false;
     
    #define MAKE_CALLBACK(FUNC) game_new r3dScaleformMovie::TGFxEICallback<HUDStore>(this, &HUDStore::FUNC)
     	gfxMovie.RegisterEventHandler("eventBuyItem", MAKE_CALLBACK(eventBuyItem));
    	gfxMovie.RegisterEventHandler("eventReturnToGame", MAKE_CALLBACK(eventReturnToGame));
    
    
    	gfxMovie.SetCurentRTViewport( Scaleform::GFx::Movie::SM_ExactFit );
    
    
    	addItemCategoriesToUI(gfxMovie);
    	addItemsAndCategoryToUI(gfxMovie);
    	addStoreToUI(gfxMovie);
    
    
    	isActive_ = false;
    	isInit = true;
    	isLockedUI = false;
    	return true;
    }



Advertisement