修改细节
This commit is contained in:
1 parent
8eb201d0ee
commit
7b4fbc513e
20 files changed
+4736
-4575
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[] {
|
||||
"Hot","Name","Distance","Difficulty"//,"Times"
|
||||
"Trend","Name","Distance","Difficulty"//,"Times"
|
||||
}.Select(x => new Dropdown.OptionData(x)).ToList();
|
||||
public static Dictionary<string, string> diffDisplayDict = new Dictionary<string, string>()
|
||||
{
|
||||
|
||||
@@ -13,6 +13,6 @@ public class RotateBg : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(new Vector3(0,0,-Time.deltaTime * 1/4));
|
||||
transform.Rotate(new Vector3(0,0,-Time.deltaTime * 1/6));
|
||||
}
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class MapListController : PFUIPanel
|
||||
{
|
||||
ColorUtility.TryParseHtmlString("#6E6E7D", out Color c);
|
||||
image.color = c1;
|
||||
text.color = c;
|
||||
text.color = new Color(1, 1, 1, 1);
|
||||
hands.Remove(MapFilterOptions.diffDict[text.text]);
|
||||
}
|
||||
scroll.GetComponent<ScrollRect>().verticalNormalizedPosition = 1;
|
||||
@@ -174,6 +174,10 @@ public class MapListController : PFUIPanel
|
||||
drop.onValueChanged.AddListener((int index)=>
|
||||
{
|
||||
sort = drop.options[index].text;
|
||||
if (sort == "Trend")
|
||||
{
|
||||
sort = "Hot";
|
||||
}
|
||||
var image = sortDir.Find("Image").GetComponent<Image>();
|
||||
image.sprite = Resources.Load<Sprite>("Images/DOWN");
|
||||
sortDire = "desc";
|
||||
|
||||
@@ -61,6 +61,10 @@ public class UserInfoController : PFUIPanel
|
||||
{
|
||||
base.Show();
|
||||
Load();
|
||||
if (summaryPanel != null)
|
||||
{
|
||||
summaryPanel.Find("Panel").Find("RideResultList").GetComponent<ResultListController>().HideError();
|
||||
}
|
||||
}
|
||||
void Load()
|
||||
{
|
||||
|
||||
@@ -79,6 +79,14 @@ public class ResultListController : MonoBehaviour
|
||||
GetList(1);
|
||||
}
|
||||
|
||||
public void HideError()
|
||||
{
|
||||
if (scroll!=null)
|
||||
{
|
||||
scroll.transform.Find("Error").gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnEndDrag(BaseEventData e)
|
||||
{
|
||||
ScrollRect scrollrect = null;
|
||||
@@ -102,7 +110,6 @@ public class ResultListController : MonoBehaviour
|
||||
Refresh(contents[scrollIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
private void Refresh(Transform content)
|
||||
{
|
||||
content.transform.DestroyChildren();
|
||||
|
||||
Reference in new issue
Block a user