mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:57:37 +02:00
Reset Event Property Value + Right Click Dropdown API + Confirm Quit (#563)
* * in name when changing value * Popup UI and quit basics * Quit button finalized, i think * fix * fixed * right click dropdown prefab * tryna getit to work * woohoo it works * value reset support for text areas * Color reset support * Enums and numbers supported * catchy tune fix
This commit is contained in:
17
Assets/Scripts/UI/LeftClickTMP_Dropdown.cs
Normal file
17
Assets/Scripts/UI/LeftClickTMP_Dropdown.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace HeavenStudio.Common
|
||||
{
|
||||
public class LeftClickTMP_Dropdown : TMP_Dropdown
|
||||
{
|
||||
public override void OnPointerClick(PointerEventData eventData)
|
||||
{
|
||||
if (eventData.button == PointerEventData.InputButton.Right) return;
|
||||
base.OnPointerClick(eventData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user