Beispiel #1
0
    public void Initialize(TaskbarHUDController controller, IChatController chatController,
                           IFriendsController friendsController, bool newTaskbarIsEnabled)
    {
        this.controller = controller;

        ShowBar(true, true);
        chatButton.transform.parent.gameObject.SetActive(false);
        friendsButton.transform.parent.gameObject.SetActive(false);
        backpackButton.transform.parent.gameObject.SetActive(false);
        exploreButton.transform.parent.gameObject.SetActive(false);
        goToGenesisButton.transform.parent.gameObject.SetActive(false);

        moreButton.gameObject.SetActive(true);
        moreMenu.Initialize(this);
        moreMenu.ShowMoreMenu(false, true);

        chatHeadsGroup.Initialize(chatController, friendsController);
        chatButton.Initialize();
        friendsButton.Initialize();
        backpackButton.Initialize();
        exploreButton.Initialize();
        goToGenesisButton.Initialize();
        moreButton.Initialize();

        chatHeadsGroup.OnHeadToggleOn  += OnWindowToggleOn;
        chatHeadsGroup.OnHeadToggleOff += OnWindowToggleOff;

        chatButton.OnToggleOn  += OnWindowToggleOn;
        chatButton.OnToggleOff += OnWindowToggleOff;

        friendsButton.OnToggleOn  += OnWindowToggleOn;
        friendsButton.OnToggleOff += OnWindowToggleOff;

        backpackButton.OnToggleOn  += OnWindowToggleOn;
        backpackButton.OnToggleOff += OnWindowToggleOff;

        exploreButton.OnToggleOn  += OnWindowToggleOn;
        exploreButton.OnToggleOff += OnWindowToggleOff;

        goToGenesisButton.OnToggleOn  += OnWindowToggleOn;
        goToGenesisButton.OnToggleOff += OnWindowToggleOff;

        moreButton.OnToggleOn  += OnWindowToggleOn;
        moreButton.OnToggleOff += OnWindowToggleOff;

        if (!newTaskbarIsEnabled)
        {
            ActivateOldTaskbar();
        }
    }
    public void Initialize(TaskbarHUDController controller, IChatController chatController,
                           IFriendsController friendsController)
    {
        this.controller = controller;

        ShowBar(true, true);
        chatButton.transform.parent.gameObject.SetActive(false);
        friendsButton.transform.parent.gameObject.SetActive(false);
        settingsButton.transform.parent.gameObject.SetActive(false);
        exploreButton.transform.parent.gameObject.SetActive(false);
        voiceChatButtonPlaceholder.SetActive(false);
        voiceChatButton.gameObject.SetActive(false);

        moreButton.gameObject.SetActive(true);
        moreMenu.Initialize(this);
        moreMenu.ShowMoreMenu(false, true);

        chatHeadsGroup.Initialize(chatController, friendsController);
        chatButton.Initialize();
        friendsButton.Initialize();
        builderInWorldButton.Initialize();
        settingsButton.Initialize();
        exploreButton.Initialize();
        moreButton.Initialize();

        chatHeadsGroup.OnHeadToggleOn  += OnWindowToggleOn;
        chatHeadsGroup.OnHeadToggleOff += OnWindowToggleOff;

        chatButton.OnToggleOn  += OnWindowToggleOn;
        chatButton.OnToggleOff += OnWindowToggleOff;

        friendsButton.OnToggleOn  += OnWindowToggleOn;
        friendsButton.OnToggleOff += OnWindowToggleOff;

        builderInWorldButton.OnToggleOn  += OnWindowToggleOn;
        builderInWorldButton.OnToggleOff += OnWindowToggleOff;

        settingsButton.OnToggleOn  += OnWindowToggleOn;
        settingsButton.OnToggleOff += OnWindowToggleOff;

        exploreButton.OnToggleOn  += OnWindowToggleOn;
        exploreButton.OnToggleOff += OnWindowToggleOff;

        moreButton.OnToggleOn  += OnWindowToggleOn;
        moreButton.OnToggleOff += OnWindowToggleOff;
    }
Beispiel #3
0
    public void Initialize(TaskbarHUDController controller, IChatController chatController,
                           IFriendsController friendsController)
    {
        this.controller = controller;

        chatHeadsGroup.Initialize(chatController, friendsController);
        chatButton.Initialize();
        friendsButton.Initialize();

        chatHeadsGroup.OnHeadToggleOn  += OnWindowToggleOn;
        chatHeadsGroup.OnHeadToggleOff += OnWindowToggleOff;

        chatButton.OnToggleOn  += OnWindowToggleOn;
        chatButton.OnToggleOff += OnWindowToggleOff;

        friendsButton.OnToggleOn  += OnWindowToggleOn;
        friendsButton.OnToggleOff += OnWindowToggleOff;
    }
    public void Initialize(TaskbarHUDController controller, IChatController chatController,
                           IFriendsController friendsController)
    {
        this.controller = controller;

        ShowBar(true, true);
        chatButton.transform.parent.gameObject.SetActive(false);
        friendsButton.transform.parent.gameObject.SetActive(false);
        builderInWorldButton.transform.parent.gameObject.SetActive(false);
        settingsButton.transform.parent.gameObject.SetActive(false);
        exploreButton.transform.parent.gameObject.SetActive(false);
        voiceChatButtonPlaceholder.SetActive(false);
        voiceChatButton.gameObject.SetActive(false);

        moreButton.gameObject.SetActive(true);
        moreMenu.Initialize(this);
        moreMenu.ShowMoreMenu(false, true);

        chatHeadsGroup.Initialize(chatController, friendsController);
        chatButton.Initialize();
        friendsButton.Initialize();
        builderInWorldButton.Initialize();
        settingsButton.Initialize();
        exploreButton.Initialize();
        moreButton.Initialize();
        questPanelButton.Initialize();

        chatHeadsGroup.OnHeadToggleOn  += OnWindowToggleOn;
        chatHeadsGroup.OnHeadToggleOff += OnWindowToggleOff;

        chatButton.OnToggleOn  += OnWindowToggleOn;
        chatButton.OnToggleOff += OnWindowToggleOff;

        friendsButton.OnToggleOn  += OnWindowToggleOn;
        friendsButton.OnToggleOff += OnWindowToggleOff;

        builderInWorldButton.OnToggleOn  += OnWindowToggleOn;
        builderInWorldButton.OnToggleOff += OnWindowToggleOff;

        settingsButton.OnToggleOn  += OnWindowToggleOn;
        settingsButton.OnToggleOff += OnWindowToggleOff;

        exploreButton.OnToggleOn  += OnWindowToggleOn;
        exploreButton.OnToggleOff += OnWindowToggleOff;

        moreButton.OnToggleOn  += OnWindowToggleOn;
        moreButton.OnToggleOff += OnWindowToggleOff;

        questPanelButton.OnToggleOn  -= OnWindowToggleOn;
        questPanelButton.OnToggleOff -= OnWindowToggleOff;
        questPanelButton.OnToggleOn  += OnWindowToggleOn;
        questPanelButton.OnToggleOff += OnWindowToggleOff;

        portableExperiencesDiv.SetActive(false);

        portableExperiencesPool = PoolManager.i.AddPool(
            PORTABLE_EXPERIENCE_ITEMS_POOL,
            Instantiate(portableExperienceItem.gameObject),
            maxPrewarmCount: 5,
            isPersistent: true);

        portableExperiencesPool.ForcePrewarm();

        AdjustRightButtonsLayoutWidth();
    }