예제 #1
0
        private static void DestroyInstance()
        {
            if (instance is null)
            {
                return;
            }

            ((Panel)instance.Parent).Children.Remove(instance);
            instance = null;
        }
예제 #2
0
        private static void CreateInstance()
        {
            if (instance is not null)
            {
                return;
            }

            instance = new DebugToolsOverlay();
            Api.Client.UI.LayoutRootChildren.Add(instance);
            Panel.SetZIndex(instance, 1000);
        }