意见反馈 修改细节
This commit is contained in:
1 parent
1c712ff7d5
commit
dd08f916eb
41 files changed
+7043
-1134
No files matched your search
@@ -58,7 +58,7 @@ namespace Assets.Scripts.UI.Control
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private Outline outline;
|
||||
void Awake()
|
||||
{
|
||||
//this.mSelectedIndex =
|
||||
@@ -71,9 +71,18 @@ namespace Assets.Scripts.UI.Control
|
||||
{
|
||||
mOnValueChange(i);
|
||||
}
|
||||
outline.enabled = false;
|
||||
});
|
||||
outline = transform.GetComponent<Outline>();
|
||||
}
|
||||
|
||||
public void SetValidate()
|
||||
{
|
||||
outline.enabled = true;
|
||||
}
|
||||
//public void SetValidate(string s)
|
||||
//{
|
||||
// outline.gameObject.SetActive(true);
|
||||
//}
|
||||
public void OnSelect(BaseEventData eventData)
|
||||
{
|
||||
var image = this.transform.GetComponent<Image>();
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Assets.Scripts.UI.Control
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
string placeHolderText;
|
||||
public void OnSelect(BaseEventData eventData)
|
||||
{
|
||||
if (this.gameObject.activeInHierarchy == false)
|
||||
@@ -49,7 +49,7 @@ namespace Assets.Scripts.UI.Control
|
||||
Text = "";
|
||||
}
|
||||
_text.color = Color.white;
|
||||
|
||||
transform.Find("Placeholder").GetComponent<Text>().text = "";
|
||||
outline.enabled = true;
|
||||
ColorUtility.TryParseHtmlString("#F93086", out Color color);
|
||||
|
||||
@@ -65,6 +65,7 @@ namespace Assets.Scripts.UI.Control
|
||||
|
||||
isSelected = false;
|
||||
this.mInnerInputField.OnDeselect(eventData);
|
||||
transform.Find("Placeholder").GetComponent<Text>().text = placeHolderText;
|
||||
//var image = this.transform.GetComponent<Image>();
|
||||
//var png1 = Resources.Load<Sprite>("Images/ipt-0");
|
||||
//image.sprite = png1;
|
||||
@@ -113,6 +114,7 @@ namespace Assets.Scripts.UI.Control
|
||||
//outline = this.gameObject.AddComponent<Outline>();
|
||||
outline.enabled = false;
|
||||
}));
|
||||
placeHolderText = transform.Find("Placeholder").GetComponent<Text>().text;
|
||||
}
|
||||
|
||||
public void SetValidate(bool value)
|
||||
|
||||
Reference in new issue
Block a user