mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
- load plugins when loading a game - moved plugins scripts to resources/plugins (for pyinstaller) - removed vanilla JTAC and JTAC_smoke options and settings GUI - call JtacAutolasePlugin in armor.py - made a dictionary of INSTALLED_PLUGINS - removed NIOD from the VEAF plugin
24 lines
818 B
Python
24 lines
818 B
Python
from .base_plugin import BasePlugin
|
|
|
|
class LiberationPlugin(BasePlugin):
|
|
nameInUI:str = "Liberation script"
|
|
nameInSettings:str = "plugin.liberation"
|
|
enabledDefaultValue:bool = True
|
|
|
|
def setupUI(self, settingsWindow, row:int):
|
|
# Don't setup any UI, this plugin is mandatory
|
|
pass
|
|
|
|
def injectScripts(self, operation):
|
|
if super().injectScripts(operation):
|
|
operation.injectPluginScript("base", "mist_4_3_74.lua", "mist")
|
|
operation.injectPluginScript("base", "json.lua", "json")
|
|
operation.injectPluginScript("base", "dcs_liberation.lua", "liberation")
|
|
|
|
def injectConfiguration(self, operation):
|
|
if super().injectConfiguration(operation):
|
|
pass
|
|
|
|
def isEnabled(self) -> bool:
|
|
return True # mandatory plugin
|