Commit 2759e28e authored by zhangzhe's avatar zhangzhe

修改引导适配问题

parent dbb38f2b
...@@ -82,6 +82,6 @@ Material: ...@@ -82,6 +82,6 @@ Material:
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _Center: {r: 0, g: 25, b: 0, a: 0} - _Center: {r: 0, g: -120, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
...@@ -18647,9 +18647,9 @@ RectTransform: ...@@ -18647,9 +18647,9 @@ RectTransform:
m_Father: {fileID: 970469213} m_Father: {fileID: 970469213}
m_RootOrder: 4 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 667}
m_SizeDelta: {x: 750, y: 1334} m_SizeDelta: {x: 750, y: 1334}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &580018984 --- !u!1 &580018984
...@@ -35248,9 +35248,9 @@ RectTransform: ...@@ -35248,9 +35248,9 @@ RectTransform:
m_Father: {fileID: 970469213} m_Father: {fileID: 970469213}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 667}
m_SizeDelta: {x: 750, y: 1334} m_SizeDelta: {x: 750, y: 1334}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &1167616852 --- !u!1001 &1167616852
...@@ -59453,9 +59453,9 @@ RectTransform: ...@@ -59453,9 +59453,9 @@ RectTransform:
m_Father: {fileID: 970469213} m_Father: {fileID: 970469213}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 667}
m_SizeDelta: {x: 750, y: 1334} m_SizeDelta: {x: 750, y: 1334}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1937171998 --- !u!1 &1937171998
...@@ -61324,9 +61324,9 @@ RectTransform: ...@@ -61324,9 +61324,9 @@ RectTransform:
m_Father: {fileID: 970469213} m_Father: {fileID: 970469213}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 667}
m_SizeDelta: {x: 750, y: 1334} m_SizeDelta: {x: 750, y: 1334}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2020284656 --- !u!1 &2020284656
...@@ -131,7 +131,7 @@ public class Guide : MonoBehaviour ...@@ -131,7 +131,7 @@ public class Guide : MonoBehaviour
PlayerPrefs.SetInt(feedbaizhuKey, 1); PlayerPrefs.SetInt(feedbaizhuKey, 1);
feedbaizhu.SetActive(true); feedbaizhu.SetActive(true);
Material material = feedbaizhu.transform.Find("MaskImage").GetComponent<Image>().material; Material material = feedbaizhu.transform.Find("MaskImage").GetComponent<Image>().material;
material.SetVector("_Center", new Vector2(-260, -373)); material.SetVector("_Center", new Vector2(-260, -373 - (750 * Screen.height / Screen.width - 1334) / 2f));
material.SetFloat("_SliderX", 55); material.SetFloat("_SliderX", 55);
material.SetFloat("_SliderY", 30); material.SetFloat("_SliderY", 30);
} }
...@@ -153,7 +153,7 @@ public class Guide : MonoBehaviour ...@@ -153,7 +153,7 @@ public class Guide : MonoBehaviour
PlayerPrefs.SetInt(feedfenzhuKey, 1); PlayerPrefs.SetInt(feedfenzhuKey, 1);
feedfenzhu.SetActive(true); feedfenzhu.SetActive(true);
Material material = feedfenzhu.transform.Find("MaskImage").GetComponent<Image>().material; Material material = feedfenzhu.transform.Find("MaskImage").GetComponent<Image>().material;
material.SetVector("_Center", new Vector2(-128, -373)); material.SetVector("_Center", new Vector2(-128, -373 - (750 * Screen.height / Screen.width - 1334) / 2f));
material.SetFloat("_SliderX", 55); material.SetFloat("_SliderX", 55);
material.SetFloat("_SliderY", 30); material.SetFloat("_SliderY", 30);
} }
...@@ -193,7 +193,7 @@ public class Guide : MonoBehaviour ...@@ -193,7 +193,7 @@ public class Guide : MonoBehaviour
PlayerPrefs.SetInt(allspeedKey, 1); PlayerPrefs.SetInt(allspeedKey, 1);
allspeed.SetActive(true); allspeed.SetActive(true);
Material material = allspeed.transform.Find("MaskImage").GetComponent<Image>().material; Material material = allspeed.transform.Find("MaskImage").GetComponent<Image>().material;
material.SetVector("_Center", new Vector2(-278, -444)); material.SetVector("_Center", new Vector2(-278, -444 - (750 * Screen.height / Screen.width - 1334) / 2f));
material.SetFloat("_SliderX", 62); material.SetFloat("_SliderX", 62);
material.SetFloat("_SliderY", 60); material.SetFloat("_SliderY", 60);
} }
...@@ -213,7 +213,7 @@ public class Guide : MonoBehaviour ...@@ -213,7 +213,7 @@ public class Guide : MonoBehaviour
allspeedDialog.SetActive(true); allspeedDialog.SetActive(true);
Material material = allspeedDialog.transform.Find("MaskImage").GetComponent<Image>().material; Material material = allspeedDialog.transform.Find("MaskImage").GetComponent<Image>().material;
material.SetVector("_Center", new Vector2(0, -295)); material.SetVector("_Center", new Vector2(0, -295 - (750 * Screen.height / Screen.width - 1334) / 2f));
material.SetFloat("_SliderX", 208); material.SetFloat("_SliderX", 208);
material.SetFloat("_SliderY", 54); material.SetFloat("_SliderY", 54);
...@@ -227,7 +227,7 @@ public class Guide : MonoBehaviour ...@@ -227,7 +227,7 @@ public class Guide : MonoBehaviour
allspeedDialog.transform.Find("hand").localPosition += new Vector3(0, 320, 0); allspeedDialog.transform.Find("hand").localPosition += new Vector3(0, 320, 0);
Material material = allspeedDialog.transform.Find("MaskImage").GetComponent<Image>().material; Material material = allspeedDialog.transform.Find("MaskImage").GetComponent<Image>().material;
material.SetVector("_Center", new Vector2(0, 25)); material.SetVector("_Center", new Vector2(0, 25 - (750 * Screen.height / Screen.width - 1334) / 2f));
material.SetFloat("_SliderX", 208); material.SetFloat("_SliderX", 208);
material.SetFloat("_SliderY", 54); material.SetFloat("_SliderY", 54);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment