mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
27 lines
726 B
C#
27 lines
726 B
C#
using System.Collections.Generic;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Robust.Client.ViewVariables;
|
|
|
|
internal sealed partial class ClientViewVariablesManager
|
|
{
|
|
private void InitializeDomains()
|
|
{
|
|
RegisterDomain("guihover", ResolveGuiHoverObject, ListGuiHoverPaths);
|
|
}
|
|
|
|
private (ViewVariablesPath? path, string[] segments) ResolveGuiHoverObject(string path)
|
|
{
|
|
var segments = path.Split('/');
|
|
|
|
return (_userInterfaceManager.CurrentlyHovered != null
|
|
? new ViewVariablesInstancePath(_userInterfaceManager.CurrentlyHovered)
|
|
: null, segments);
|
|
}
|
|
|
|
private IEnumerable<string>? ListGuiHoverPaths(string[] segments)
|
|
{
|
|
return null;
|
|
}
|
|
}
|