线路列表排序增加near下拉项

This commit is contained in:
lishuo committed 2021-08-19 11:24:57 +08:00
1 parent a6f673f805
commit dd669d74f5
4 files changed
+6 -4

No files matched your search

@@ -40,7 +40,7 @@ namespace Assets.Scripts.UI.Prefab.MapList
{"HC","750-99999" },
};
public static List<Dropdown.OptionData> sorts = new string[] {
"Trend","Name","Distance","Difficulty","Time"
"Near", "Trend","Name","Distance","Difficulty","Time"
}.Select(x => new Dropdown.OptionData(x)).ToList();
public static Dictionary<string, string> diffDisplayDict = new Dictionary<string, string>()
{
@@ -43,6 +43,8 @@ public class MapListController : PFUIPanel
private bool isEnd = false;
protected override void Start()
{
sort = "Near";
sortDire = "asc";
//if (hardSelector != null)
//{
// hardSelector.onValueChanged.AddListener(ChangeHard);
@@ -265,7 +267,7 @@ public class MapListController : PFUIPanel
string distance = "";
List<string> hands = new List<string>();
bool is3d = false,isFav = false;
string sort = "Hot",sortDire = "desc";
string sort = "",sortDire = "";
//string name = "";
//string name = "";
async void GetList()