예제 #1
0
 public void LocationDropdownCallback()
 {
     if (!locationDropdown.creatingDropdown)
     {
         if (locationDropdown.dropdownOpen)
         {
             locationDropdown.CloseDropdown();
         }
         else
         {
             CloseAllDropdowns();
             if (locationDropdown.listSet)
             {
                 bool def = false;
                 if (sortMode.mode == "Default")
                 {
                     def = true;
                 }
                 locationDropdown.OpenDropdown(locationDropdown.dropdownModeList, new List <ListMode> {
                     locationMode
                 }, def);
             }
         }
     }
     else
     {
         CloseAllDropdowns();
     }
 }
예제 #2
0
 public void FilterDropdownCallback()
 {
     if (!filterDropdown.creatingDropdown)
     {
         if (filterDropdown.dropdownOpen)
         {
             filterDropdown.CloseDropdown();
         }
         else
         {
             CloseAllDropdowns();
             if (filterDropdown.listSet)
             {
                 filterDropdown.OpenDropdown(filterDropdown.dropdownModeList, filters, false);
             }
         }
     }
     else
     {
         CloseAllDropdowns();
     }
 }