mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-20 07:39:07 +08:00
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
using UnityExplorer.UI.Panels;
|
|
using UniverseLib.UI;
|
|
using UniverseLib.UI.Panels;
|
|
|
|
namespace UnityExplorer.UI
|
|
{
|
|
public class UEPanelManager : PanelManager
|
|
{
|
|
public UEPanelManager(UIBase owner) : base(owner) { }
|
|
|
|
protected override Vector3 MousePosition => DisplayManager.MousePosition;
|
|
|
|
protected override Vector2 ScreenDimensions => new(DisplayManager.Width, DisplayManager.Height);
|
|
|
|
protected override bool MouseInTargetDisplay => DisplayManager.MouseInTargetDisplay;
|
|
|
|
internal void DoInvokeOnPanelsReordered()
|
|
{
|
|
InvokeOnPanelsReordered();
|
|
}
|
|
|
|
protected override void SortDraggerHeirarchy()
|
|
{
|
|
base.SortDraggerHeirarchy();
|
|
|
|
// move AutoCompleter to first update
|
|
if (!UIManager.Initializing && AutoCompleteModal.Instance != null)
|
|
{
|
|
this.draggerInstances.Remove(AutoCompleteModal.Instance.Dragger);
|
|
this.draggerInstances.Insert(0, AutoCompleteModal.Instance.Dragger);
|
|
}
|
|
}
|
|
}
|
|
}
|