This commit is contained in:
王志勋 2025-11-04 20:05:19 +08:00
parent 7f0217d2d3
commit 8564b999ac
5 changed files with 31 additions and 31 deletions

View File

@ -221,9 +221,9 @@ namespace HighlightPlus {
HighlightEffect parentEffect = newObject.GetComponentInParent<HighlightEffect>();
if (parentEffect != null && parentEffect.Includes(newObject)) {
currentEffect = parentEffect;
if (highlightOnHover) {
Highlight(true);
}
return;
}
}

View File

@ -257,22 +257,22 @@ namespace ZTools
{
monthFirstDay = new DateTime(Year, Month, 1);
lastMonthEmptyDays = GetLastMonthDays();
if (zCalendarModel.autoFillDate)
{
for (int i = lastMonthEmptyDays; i > 0; i--)
{
AddDayItem(monthFirstDay.AddDays(-i));
}
}
else
{
for (int i = 0; i < lastMonthEmptyDays; i++)
{
ZCalendarDayItem dayItem = zCalendarModel.Instantiate();
dayItem.zCalendarController = this;
dayItem.CloseClickAble();
}
}
}
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><C2B8>µ<EFBFBD>ʱ<EFBFBD><CAB1>
@ -282,14 +282,14 @@ namespace ZTools
int nextMonthDays = 42 - (lastMonthEmptyDays + days);
if (nextMonthDays != 0)
{
if (zCalendarModel.autoFillDate)
{
DateTime lastDay = monthFirstDay.AddDays(days);
for (int i = 0; i < nextMonthDays; i++)
{
AddDayItem(lastDay.AddDays(i));
}
}
}
}
/// <summary>

View File

@ -280,15 +280,15 @@ namespace RenderHeads.Media.AVProVideo
private void SwapPlayers()
{
// Pause the previously playing video
// This is useful for systems that will struggle to play 2 videos at once
if (_pausePreviousOnTransition)
{
CurrentPlayer.Pause();
}
// Pause the previously playing video
// This is useful for systems that will struggle to play 2 videos at once
// Tell listeners that the playlist item has changed
Events.Invoke(this, MediaPlayerEvent.EventType.PlaylistItemChanged, ErrorCode.None);
CurrentPlayer.Pause();
// Tell listeners that the playlist item has changed
Events.Invoke(this, MediaPlayerEvent.EventType.PlaylistItemChanged, ErrorCode.None);
// Start the transition
if (_currentTransition != Transition.None)

View File

@ -131,13 +131,13 @@ namespace Framework.Scripts.Runtime.Engine.Engine.Camera.CameraControl
public void ControlCamera()
{
if (enableMouseOverUI)
{
if (EventSystem.current.IsPointerOverGameObject())
{
return;
}
}
if (enableMouseFunctions)
{

View File

@ -70,11 +70,11 @@ public class AutoHideScript : MonoBehaviour
canvasGroup.alpha = alpha;
// 根据透明度设置交互状态
if (disableInteractionWhenHidden)
{
canvasGroup.interactable = alpha > 0.1f;
canvasGroup.blocksRaycasts = alpha > 0.1f;
}
}
}