mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
PyRight updates
This commit is contained in:
@@ -13,9 +13,9 @@ import mobase
|
||||
|
||||
from ..basic_features import BasicGameSaveGameInfo
|
||||
from ..basic_game import BasicGame
|
||||
from .oblivion_remaster.constants import DEFAULT_UE4SS_MODS, PLUGIN_NAME
|
||||
from .oblivion_remaster.constants import DEFAULT_UE4SS_MODS, PLUGIN_NAME, UE4SSModInfo
|
||||
from .oblivion_remaster.paks.widget import PaksTabWidget
|
||||
from .oblivion_remaster.ue4ss.widget import UE4SSModInfo, UE4SSTabWidget
|
||||
from .oblivion_remaster.ue4ss.widget import UE4SSTabWidget
|
||||
|
||||
|
||||
def getLootPath() -> Path | None:
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
from typing import TypedDict
|
||||
|
||||
PLUGIN_NAME = "Oblivion Remastered Support Plugin"
|
||||
DEFAULT_UE4SS_MODS = [
|
||||
|
||||
|
||||
class UE4SSModInfo(TypedDict):
|
||||
mod_name: str
|
||||
mod_enabled: bool
|
||||
|
||||
|
||||
DEFAULT_UE4SS_MODS: list[UE4SSModInfo] = [
|
||||
{"mod_name": "BPML_GenericFunctions", "mod_enabled": True},
|
||||
{"mod_name": "BPModLoaderMod", "mod_enabled": True},
|
||||
]
|
||||
|
||||
@@ -68,7 +68,7 @@ class PaksTabWidget(QWidget):
|
||||
|
||||
def write_pak_files(self):
|
||||
for index, pak in sorted(self._model.paks.items()):
|
||||
name, _, current_path, target_path = pak
|
||||
_, _, current_path, target_path = pak
|
||||
if current_path and current_path != target_path:
|
||||
path_dir = Path(current_path)
|
||||
target_dir = Path(target_path)
|
||||
|
||||
@@ -2,23 +2,17 @@ import json
|
||||
from functools import cmp_to_key
|
||||
from json import JSONDecodeError
|
||||
from pathlib import Path
|
||||
from typing import TypedDict
|
||||
|
||||
from PyQt6.QtCore import QDir, QFileInfo, Qt
|
||||
from PyQt6.QtWidgets import QGridLayout, QWidget
|
||||
|
||||
import mobase
|
||||
|
||||
from ..constants import DEFAULT_UE4SS_MODS
|
||||
from ..constants import DEFAULT_UE4SS_MODS, UE4SSModInfo
|
||||
from .model import UE4SSListModel
|
||||
from .view import UE4SSView
|
||||
|
||||
|
||||
class UE4SSModInfo(TypedDict):
|
||||
mod_name: str
|
||||
mod_enabled: bool
|
||||
|
||||
|
||||
class UE4SSTabWidget(QWidget):
|
||||
def __init__(self, parent: QWidget | None, organizer: mobase.IOrganizer):
|
||||
super().__init__(parent)
|
||||
|
||||
Reference in New Issue
Block a user