public static void Show(ADB adb, Rect screenRect) { var rect = new Rect(screenRect.x, screenRect.yMax, 300, 50); AndroidLogcatIPWindow win = EditorWindow.GetWindowWithRect <AndroidLogcatIPWindow>(rect, true, "Enter Device IP"); win.m_Adb = adb; win.position = rect; }
public static void Show(IAndroidLogcatRuntime runtime, ADB adb, List <string> connectedDevices, string[] details, Rect screenRect) { AndroidLogcatIPWindow win = EditorWindow.GetWindow <AndroidLogcatIPWindow>(true, "Enter Device IP"); win.m_ConnectedDevices = connectedDevices; win.m_ConnectedDeviceDetails = details; win.position = new Rect(screenRect.x, screenRect.y, 600, 200); }
private void DeviceSelection(object userData, string[] options, int selected) { if (selected == m_DeviceIds.Count) { AndroidLogcatIPWindow.Show(this.m_Runtime, this.GetCachedAdb(), this.m_DeviceIds, this.m_DeviceDetails, m_IpWindowScreenRect); return; } SetSelectedDeviceByIndex(selected); }
private void DeviceSelection(object userData, string[] options, int selected) { var devices = m_Runtime.DeviceQuery.Devices; if (selected >= m_Runtime.DeviceQuery.Devices.Count) { AndroidLogcatIPWindow.Show(this.m_Runtime, m_IpWindowScreenRect); return; } SelectedPackage = null; m_Runtime.DeviceQuery.SelectDevice(devices.Values.ToArray()[selected]); }
public static void Show(AndroidLogcatRuntimeBase runtime, Rect screenRect) { AndroidLogcatIPWindow win = EditorWindow.GetWindow <AndroidLogcatIPWindow>(true, "Other connection options"); win.position = new Rect(screenRect.x, screenRect.y, 700, 200); }