mirror of
https://github.com/ModOrganizer2/modorganizer-fnistool.git
synced 2026-07-27 14:05:34 -07:00
Update following removal of IPlugin::isActive().
This commit is contained in:
+7
-3
@@ -78,6 +78,9 @@ class FNISPatches(mobase.IPluginTool):
|
||||
def name(self):
|
||||
return "FNIS Patches Tool"
|
||||
|
||||
def localizedName(self):
|
||||
return self.__tr("FNIS Patches Tool")
|
||||
|
||||
def author(self):
|
||||
return "AnyOldName3"
|
||||
|
||||
@@ -87,9 +90,10 @@ class FNISPatches(mobase.IPluginTool):
|
||||
def version(self):
|
||||
return mobase.VersionInfo(1, 0, 0, mobase.ReleaseType.prealpha)
|
||||
|
||||
def isActive(self):
|
||||
return (self.__organizer.managedGame().gameName() in patchListNames.keys() and
|
||||
self.__organizer.pluginSetting("FNIS Integration Tool", "enabled") is True)
|
||||
def requirements(self):
|
||||
return [
|
||||
mobase.PluginRequirementFactory.pluginDependency("FNIS Integration Tool")
|
||||
]
|
||||
|
||||
def settings(self):
|
||||
return []
|
||||
|
||||
+11
-9
@@ -53,6 +53,9 @@ class FNISTool(mobase.IPluginTool):
|
||||
def name(self):
|
||||
return "FNIS Integration Tool"
|
||||
|
||||
def localizedName(self):
|
||||
return self.__tr("FNIS Integration Tool")
|
||||
|
||||
def author(self):
|
||||
return "AnyOldName3"
|
||||
|
||||
@@ -62,18 +65,17 @@ class FNISTool(mobase.IPluginTool):
|
||||
def version(self):
|
||||
return mobase.VersionInfo(1, 2, 0, 0)
|
||||
|
||||
def isActive(self):
|
||||
supportedGames = {
|
||||
"Skyrim",
|
||||
"Skyrim Special Edition",
|
||||
"Skyrim VR"
|
||||
}
|
||||
return self.__organizer.managedGame().gameName() in supportedGames and\
|
||||
self.__organizer.pluginSetting(self.name(), "enabled")
|
||||
def requirements(self):
|
||||
return [
|
||||
mobase.PluginRequirementFactory.gameDependency({
|
||||
"Skyrim",
|
||||
"Skyrim Special Edition",
|
||||
"Skyrim VR"
|
||||
})
|
||||
]
|
||||
|
||||
def settings(self):
|
||||
return [
|
||||
mobase.PluginSetting("enabled", self.__tr("Enable all FNISTool plugins"), True),
|
||||
mobase.PluginSetting("fnis-path", self.__tr("Path to GenerateFNISforUsers.exe"), ""),
|
||||
mobase.PluginSetting("output-to-mod", self.__tr("Whether or not to direct the FNIS output to a mod folder."), True),
|
||||
mobase.PluginSetting("output-path", self.__tr("When output-to-mod is enabled, the path to the mod to use."), ""),
|
||||
|
||||
@@ -11,6 +11,9 @@ class FNISToolReset(mobase.IPluginTool):
|
||||
def name(self):
|
||||
return "FNIS Integration Tool Reset"
|
||||
|
||||
def localizedName(self):
|
||||
return self.__tr("FNIS Integration Tool Reset")
|
||||
|
||||
def author(self):
|
||||
return "LostDragonist"
|
||||
|
||||
@@ -19,15 +22,11 @@ class FNISToolReset(mobase.IPluginTool):
|
||||
|
||||
def version(self):
|
||||
return mobase.VersionInfo(1, 0, 0, 0)
|
||||
|
||||
def isActive(self):
|
||||
supportedGames = {
|
||||
"Skyrim",
|
||||
"Skyrim Special Edition",
|
||||
"Skyrim VR"
|
||||
}
|
||||
return (self.__organizer.managedGame().gameName() in supportedGames and
|
||||
self.__organizer.pluginSetting("FNIS Integration Tool", "enabled") is True)
|
||||
|
||||
def requirements(self):
|
||||
return [
|
||||
mobase.PluginRequirementFactory.pluginDependency("FNIS Integration Tool")
|
||||
]
|
||||
|
||||
def settings(self):
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user