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>(); HighlightEffect parentEffect = newObject.GetComponentInParent<HighlightEffect>();
if (parentEffect != null && parentEffect.Includes(newObject)) { if (parentEffect != null && parentEffect.Includes(newObject)) {
currentEffect = parentEffect; currentEffect = parentEffect;
if (highlightOnHover) {
Highlight(true); Highlight(true);
}
return; return;
} }
} }

View File

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

View File

@ -280,15 +280,15 @@ namespace RenderHeads.Media.AVProVideo
private void SwapPlayers() private void SwapPlayers()
{ {
// Pause the previously playing video // Pause the previously playing video
// This is useful for systems that will struggle to play 2 videos at once // This is useful for systems that will struggle to play 2 videos at once
if (_pausePreviousOnTransition)
{
CurrentPlayer.Pause();
}
// 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 // Start the transition
if (_currentTransition != Transition.None) if (_currentTransition != Transition.None)

View File

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

View File

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