Ejemplo n.º 1
0
    protected virtual void InitStoreUi()
    {
        // This method used for fastest async image loading
        StartLoadItemImages(UserCatalog.Instance.AllItems);

        _itemsTabControl.Init();

        CreateAndFillCatalogGroups(UserCatalog.Instance.AllItems);

        RefreshInventory();
    }
Ejemplo n.º 2
0
    void InitStoreUi(StoreItems items)
    {
        XsollaStore.Instance.GetListOfItemGroups(XsollaSettings.StoreProjectId, groups =>
        {
            _groupsController.CreateGroups(items, groups);
            _itemsController.CreateItems(items);

            _itemsTabControl.Init();
            _extraController.Init();

            _groupsController.SelectDefault();
            XsollaStore.Instance.GetVirtualCurrencyPackagesList(XsollaSettings.StoreProjectId, _itemsController.AddVirtualCurrencyPackage, ShowError);
            XsollaStore.Instance.GetVirtualCurrencyList(
                XsollaSettings.StoreProjectId,
                currencies =>
            {
                _itemsTabControl.VirtualCurrencyBalance.SetCurrencies(currencies);
                RefreshVirtualCurrencyBalance();
            }, ShowError);
        }, ShowError);
    }