From b62cfc017ba18ffd41ca04fc88310c4ccddf094b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 16 Aug 2020 16:10:30 +0200 Subject: [PATCH] Added the archive root folder type --- nw/constants/constants.py | 3 +++ nw/constants/enum.py | 3 ++- nw/gui/mainmenu.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nw/constants/constants.py b/nw/constants/constants.py index cd7bf350..a8859873 100644 --- a/nw/constants/constants.py +++ b/nw/constants/constants.py @@ -84,6 +84,7 @@ class nwLabels(): nwItemClass.OBJECT : "Objects", nwItemClass.ENTITY : "Entity", nwItemClass.CUSTOM : "Custom", + nwItemClass.ARCHIVE : "Outtakes", nwItemClass.TRASH : "Trash", } CLASS_FLAG = { @@ -96,6 +97,7 @@ class nwLabels(): nwItemClass.OBJECT : "O", nwItemClass.ENTITY : "E", nwItemClass.CUSTOM : "X", + nwItemClass.ARCHIVE : "U", nwItemClass.TRASH : "R", } CLASS_ICON = { @@ -108,6 +110,7 @@ class nwLabels(): nwItemClass.OBJECT : "cls_object", nwItemClass.ENTITY : "cls_entity", nwItemClass.CUSTOM : "cls_custom", + nwItemClass.ARCHIVE : "cls_archive", nwItemClass.TRASH : "cls_trash", } LAYOUT_NAME = { diff --git a/nw/constants/enum.py b/nw/constants/enum.py index ea40c9bf..49d76f5e 100644 --- a/nw/constants/enum.py +++ b/nw/constants/enum.py @@ -48,7 +48,8 @@ class nwItemClass(Enum): OBJECT = 6 ENTITY = 7 CUSTOM = 8 - TRASH = 9 + ARCHIVE = 9 + TRASH = 10 # END Enum nwItemClass diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py index 99a4b5c9..d7a0a833 100644 --- a/nw/gui/mainmenu.py +++ b/nw/gui/mainmenu.py @@ -245,6 +245,7 @@ class GuiMainMenu(QMenuBar): self.rootItems[nwItemClass.OBJECT] = QAction("Object Root", self.rootMenu) self.rootItems[nwItemClass.ENTITY] = QAction("Entity Root", self.rootMenu) self.rootItems[nwItemClass.CUSTOM] = QAction("Custom Root", self.rootMenu) + self.rootItems[nwItemClass.ARCHIVE] = QAction("Outtakes Root", self.rootMenu) nCount = 0 for itemClass in self.rootItems.keys(): nCount += 1 # This forces the lambdas to be unique