|
@@ -54,12 +54,13 @@ public class SB_EventSystem : MonoBehaviour
|
|
|
// }
|
|
// }
|
|
|
// };
|
|
// };
|
|
|
// }
|
|
// }
|
|
|
- Color pointerHoverColor = Color.yellow;
|
|
|
|
|
|
|
+ Color pointerHoverColor = new Color(233f/255, 233f/255, 233f/255, 128f/255);
|
|
|
void InitListenerForMouseHoverHightColor() {
|
|
void InitListenerForMouseHoverHightColor() {
|
|
|
simulateMouse.OnPointerEnter += (Selectable target) => {
|
|
simulateMouse.OnPointerEnter += (Selectable target) => {
|
|
|
Button btn = target.GetComponent<Button>();
|
|
Button btn = target.GetComponent<Button>();
|
|
|
if (!btn) return;
|
|
if (!btn) return;
|
|
|
if (btn.transition != Selectable.Transition.ColorTint) return;
|
|
if (btn.transition != Selectable.Transition.ColorTint) return;
|
|
|
|
|
+ if (!btn.interactable) return;
|
|
|
ColorBlock colorBlock = btn.colors;
|
|
ColorBlock colorBlock = btn.colors;
|
|
|
colorBlock.highlightedColor = pointerHoverColor;
|
|
colorBlock.highlightedColor = pointerHoverColor;
|
|
|
btn.colors = colorBlock;
|
|
btn.colors = colorBlock;
|