Inheritance: EditorWindow
示例#1
0
        public static void Show(Rect buttonScreenRect)
        {
            Rect             rect = new Rect(buttonScreenRect.x, buttonScreenRect.yMax, 300, 50);
            ProfilerIPWindow w    = EditorWindow.GetWindowWithRect <ProfilerIPWindow>(rect, true, "Enter Player IP");

            w.position = rect;
            w.m_Parent.window.m_DontSaveToLayout = true;
        }
示例#2
0
 void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect)
 {
     profilers.Add(new ProfilerChoise()
     {
         Name       = kEnterIPText,
         Enabled    = true,
         IsSelected = () => { return(false); },
         ConnectTo  = () => { ProfilerIPWindow.Show(buttonScreenRect); }
     });
 }
        private void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect)
        {
            ProfilerChoise item = default(ProfilerChoise);

            item.Name       = AttachProfilerUI.kEnterIPText;
            item.Enabled    = true;
            item.IsSelected = (() => false);
            item.ConnectTo  = delegate
            {
                ProfilerIPWindow.Show(buttonScreenRect);
            };
            profilers.Add(item);
        }
示例#4
0
        private static void AddLastIPProfiler(List <ProfilerChoise> profilers)
        {
            string lastIP = ProfilerIPWindow.GetLastIPString();

            if (!string.IsNullOrEmpty(lastIP))
            {
                ProfilerChoise item = default(ProfilerChoise);
                item.Name       = lastIP;
                item.Enabled    = true;
                item.IsSelected = (() => ProfilerDriver.connectedProfiler == 65261);
                item.ConnectTo  = delegate
                {
                    AttachProfilerUI.DirectIPConnect(lastIP);
                };
                profilers.Add(item);
            }
        }
示例#5
0
        static void AddLastIPProfiler(List <ProfilerChoise> profilers)
        {
            string lastIP = ProfilerIPWindow.GetLastIPString();

            if (string.IsNullOrEmpty(lastIP))
            {
                return;
            }

            profilers.Add(new ProfilerChoise()
            {
                Name       = lastIP,
                Enabled    = true,
                IsSelected = () => { return(ProfilerDriver.connectedProfiler == PLAYER_DIRECT_IP_CONNECT_GUID); },
                ConnectTo  = () => {
                    DirectIPConnect(lastIP);
                }
            });
        }
 private static void AddLastIPProfiler(List <ProfilerChoise> profilers)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     AttachProfilerUI.\u003CAddLastIPProfiler\u003Ec__AnonStoreyA7 profilerCAnonStoreyA7 = new AttachProfilerUI.\u003CAddLastIPProfiler\u003Ec__AnonStoreyA7();
     // ISSUE: reference to a compiler-generated field
     profilerCAnonStoreyA7.lastIP = ProfilerIPWindow.GetLastIPString();
     // ISSUE: reference to a compiler-generated field
     if (string.IsNullOrEmpty(profilerCAnonStoreyA7.lastIP))
     {
         return;
     }
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated method
     profilers.Add(new ProfilerChoise()
     {
         Name       = profilerCAnonStoreyA7.lastIP,
         Enabled    = true,
         IsSelected = (Func <bool>)(() => ProfilerDriver.connectedProfiler == 65261),
         ConnectTo  = new System.Action(profilerCAnonStoreyA7.\u003C\u003Em__1EA)
     });
 }
示例#7
0
 private void OnEnable()
 {
     this.m_IPString = ProfilerIPWindow.GetLastIPString();
 }