修改
This commit is contained in:
parent
7f216dc694
commit
dfa88f9503
@ -189,10 +189,13 @@ public class UXButton : UIBehaviour, IPointerDownHandler, IPointerUpHandler, IPo
|
||||
return m_Mode == ButtonModeType.Toggle && m_IsTogSelected;
|
||||
}
|
||||
|
||||
public void SetSelect(bool state)
|
||||
public void SetSelect(bool state, bool boardEvent = false)
|
||||
{
|
||||
if (m_Mode != ButtonModeType.Toggle) return;
|
||||
IsSelected = state;
|
||||
m_IsTogSelected = state;
|
||||
if (boardEvent) onValueChanged?.Invoke(m_IsTogSelected);
|
||||
m_SelectionState = m_IsTogSelected ? SelectionState.Selected : SelectionState.Normal;
|
||||
UpdateVisualState(m_SelectionState, false);
|
||||
}
|
||||
|
||||
private void ProcessClick()
|
||||
|
Loading…
Reference in New Issue
Block a user