修改细节
This commit is contained in:
1 parent
5080503ebd
commit
c8111d7db3
25 files changed
+1677
-7833
No files matched your search
@@ -62,9 +62,12 @@ namespace Assets.Scripts.UI.Control
|
||||
void Awake()
|
||||
{
|
||||
//this.mSelectedIndex =
|
||||
//UIManager.AddEvent(this.transform.GetComponent<Image>().gameObject, EventTriggerType.Select, new UnityEngine.Events.UnityAction<BaseEventData>(OnSelect));
|
||||
UIManager.AddEvent(this.transform.GetComponent<Image>().gameObject, EventTriggerType.Select, (b)=>
|
||||
{
|
||||
App.isChanged = true;
|
||||
});
|
||||
//UIManager.AddEvent(this.transform.GetComponent<Image>().gameObject, EventTriggerType.Deselect, new UnityEngine.Events.UnityAction<BaseEventData>(OnDeselect));
|
||||
|
||||
|
||||
//this.GetComponent<Dropdown>().itemText.color = Utils.HexToColorHtml("#ff2742");
|
||||
this.GetComponent<Dropdown>().onValueChanged.AddListener(i => {
|
||||
mSelectedIndex = i;
|
||||
@@ -99,6 +102,7 @@ namespace Assets.Scripts.UI.Control
|
||||
var image = this.transform.GetComponent<Image>();
|
||||
var png = Resources.Load<Sprite>("Images/ipt-1");
|
||||
image.sprite = png;
|
||||
App.isChanged = true;
|
||||
}
|
||||
public void OnDeselect(BaseEventData eventData)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,8 @@ namespace Assets.Scripts.UI.Control
|
||||
outline.enabled = true;
|
||||
ColorUtility.TryParseHtmlString("#F93086", out Color color);
|
||||
|
||||
outline.effectColor = color;
|
||||
outline.effectColor = color;
|
||||
App.isChanged = true;
|
||||
}
|
||||
|
||||
public void OnDeselect(BaseEventData eventData)
|
||||
|
||||
Reference in new issue
Block a user