修改样式,增加图片
This commit is contained in:
1 parent
fe65b83c89
commit
b86cb01ea2
13 files changed
+332
-48
No files matched your search
@@ -47,6 +47,9 @@ public class MapListController : PFUIPanel
|
||||
{
|
||||
#if (UNITY_ANDROID || UNITY_IOS)
|
||||
topContainer = transform.Find("Top");
|
||||
var rect = transform.GetComponent<RectTransform>();
|
||||
rect.offsetMax = new Vector2(rect.offsetMax.x, 0);
|
||||
rect.offsetMin = new Vector2(rect.offsetMin.x, 0);
|
||||
//var rectTransform = transform.GetComponent<RectTransform>();
|
||||
//var offsetMax = rectTransform.offsetMax;
|
||||
//rectTransform.offsetMax = new Vector2(0, offsetMax.y);
|
||||
|
||||
@@ -201,6 +201,10 @@ public class RaceListScript : RaceScript
|
||||
//rectTransform.offsetMax = new Vector2(0, offsetMax.y);
|
||||
//var offsetMin = rectTransform.offsetMin;
|
||||
//rectTransform.offsetMin = new Vector2(0, offsetMin.y);
|
||||
var rect = transform.GetComponent<RectTransform>();
|
||||
rect.offsetMax = new Vector2(rect.offsetMax.x, 0);
|
||||
rect.offsetMin = new Vector2(rect.offsetMin.x, 0);
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
private async Task Login()
|
||||
|
||||
@@ -8,7 +8,6 @@ public class BigLeftController : MonoBehaviour
|
||||
{
|
||||
public void OnPointerClick()
|
||||
{
|
||||
Debug.Log(11);
|
||||
RouteItem route = transform.parent.GetComponent<RouteItem>();
|
||||
if (route.enter)
|
||||
{
|
||||
|
||||
@@ -283,6 +283,10 @@ public class RouteItem : MonoBehaviour
|
||||
row1.Find("Times").GetComponent<Text>().color = Utils.HexToColorHtml("#9E9EAD");
|
||||
row1.Find("Rank").GetComponent<Text>().color = Utils.HexToColorHtml("#9E9EAD");
|
||||
}
|
||||
if (row2 != null)
|
||||
{
|
||||
row2.Find("Device").GetComponent<Text>().color = Utils.HexToColorHtml("#9E9EAD");
|
||||
}
|
||||
titleColor = "#414251";
|
||||
SetButtonColor(false);
|
||||
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||
@@ -311,6 +315,10 @@ public class RouteItem : MonoBehaviour
|
||||
row1.Find("Times").GetComponent<Text>().color = Utils.HexToColorHtml("#ffffff");
|
||||
row1.Find("Rank").GetComponent<Text>().color = Utils.HexToColorHtml("#ffffff");
|
||||
}
|
||||
if (row2 != null)
|
||||
{
|
||||
row2.Find("Device").GetComponent<Text>().color = Utils.HexToColorHtml("#ffffff");
|
||||
}
|
||||
titleColor = "#5c5c6e";
|
||||
SetButtonColor(true);
|
||||
Cursor.SetCursor(Resources.Load<Texture2D>("Images/PointerButtonHover"), Vector2.zero, CursorMode.Auto);
|
||||
|
||||
Reference in new issue
Block a user