private void OnDoubleClickedItem(IEditorTableItemInfo item) { if (!m_IsUploaded) { RemoteDebugWindow.Instance.ShowNotification(new GUIContent("Operation not allowed: uploading ... ")); return; } var info = item as PatchFileInfo; if (info != null) { switch (info.type) { case 0: m_LocalPath = info.assetPath; RefreshFileList(); break; case 1: m_LocalPath = m_LocalPath + "/" + info.name; RefreshFileList(); break; case 2: //info.itemSelected = !info.itemSelected; //UpdateSelectedFileCountAndSize(); break; } } }
private void OnDoubleClickedItem(IEditorTableItemInfo item) { var info = item as PatchFileInfo; if (info != null) { switch (info.type) { case 0: server?.RequestPatchBack(clientIndex); break; case 1: server?.RequestPatchOpenFolder(clientIndex, info.name); break; case 2: //info.itemSelected = !info.itemSelected; break; } } }
public bool ContainsChild(IEditorTableItemInfo info) { if (children == null) { return(false); } if (info == null) { return(false); } var contains = false; foreach (var child in children) { var c = child as EditorTableItem; if (c != null && c.Info != null && c.Info.itemId == info.itemId) { contains = true; break; } } return(contains); }
public void AddInfo(IEditorTableItemInfo info) { m_RootItem.AddChild(new EditorTableItem(info, m_RootItem.depth + 1)); Reload(); }
private void OnDoubleClickedItem(IEditorTableItemInfo info) { SelectedClient(info as RemoteDebugClientInfo); }
public EditorTableItem(IEditorTableItemInfo info, int depth) : base(info.itemId, depth, info.displayName) { m_Info = info; }
public EditorTableItem(IEditorTableItemInfo info) : base(info.itemId, 0, info.displayName) { m_Info = info; }