コード例 #1
0
        private void EnableMenuForCapability(PageCapability capability)
        {
            var enable = !(capability.requireUserLoggedIn && !ApplicationUtil.instance.isUserLoggedIn) &&
                         !(capability.requireNetwork && !ApplicationUtil.instance.isInternetReachable);

            orderingMenu.SetEnabled(enable);
            filtersMenu.SetEnabled(enable);
            clearFiltersButton.SetEnabled(enable);
            searchToolbar.SetEnabled(enable);
        }
コード例 #2
0
 protected BasePage(PackageFilterTab tab, PageCapability capability)
 {
     m_Tab        = tab;
     m_Capability = capability;
     if (m_Filters == null)
     {
         var defaultOrdering = m_Capability?.orderingValues?.FirstOrDefault();
         m_Filters = new PageFilters
         {
             orderBy        = defaultOrdering?.orderBy,
             isReverseOrder = false
         };
     }
 }
コード例 #3
0
 public SimplePage(PackageFilterTab tab, PageCapability capability) : base(tab, capability)
 {
 }
コード例 #4
0
 public PaginatedPage(PackageDatabase packageDatabase, AssetStoreClient assetStoreClient, PackageFiltering packageFiltering, PackageManagerPrefs packageManagerPrefs, PackageFilterTab tab, PageCapability capability) : base(packageDatabase, tab, capability)
 {
     ResolveDependencies(packageDatabase, assetStoreClient, packageFiltering, packageManagerPrefs);
 }
コード例 #5
0
 public PaginatedPage(PackageFilterTab tab, PageCapability capability) : base(tab, capability)
 {
 }
コード例 #6
0
 public SimplePage(PackageDatabase packageDatabase, PackageFiltering packageFiltering, PackageFilterTab tab, PageCapability capability) : base(packageDatabase, tab, capability)
 {
     ResolveDependencies(packageDatabase, packageFiltering);
 }