比赛;编辑页面
This commit is contained in:
1 parent
85130ce6c3
commit
3ec6fd0569
56 files changed
+16371
-2749
No files matched your search
@@ -81,7 +81,7 @@ namespace Assets.Scripts.UI.Control
|
||||
material = Instantiate(Resources.Load<Material>("UI/Material/RoundedCornersTextureMaterial"));
|
||||
}
|
||||
var rect = ((RectTransform)transform).rect;
|
||||
material.SetVector(Shader.PropertyToID("_WidthHeightRadius"), new Vector4(rect.width, rect.height, Math.Min(rect.height*0.7f, 50f), 0));
|
||||
material.SetVector(Shader.PropertyToID("_WidthHeightRadius"), new Vector4(rect.width, rect.height, Math.Min(rect.height*0.35f, 50f), 0));
|
||||
gameObject.GetComponent<Image>().material = material;
|
||||
|
||||
outline = this.GetComponent<Outline>();
|
||||
|
||||
@@ -110,12 +110,14 @@ namespace Assets.Scripts.UI.Control
|
||||
{
|
||||
if (!this.isActiveAndEnabled) return;
|
||||
//Cursor.SetCursor(cursor, Vector2.zero, CursorMode.Auto);
|
||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||
if (!string.IsNullOrWhiteSpace(Tooltips))
|
||||
{
|
||||
tooltips.GetComponent<CanvasGroup>().alpha = 0f;
|
||||
tooltips.SetActive(true);
|
||||
tooltips.GetComponent<CanvasGroup>().DOFade(1f, 0.2f);
|
||||
}
|
||||
#endif
|
||||
switch (mType)
|
||||
{
|
||||
case Type.Normal:
|
||||
|
||||
Reference in new issue
Block a user