| 523 | |
| 524 | |
| 525 | class GraphSettings: |
| 526 | |
| 527 | _instance = None |
| 528 | |
| 529 | @classmethod |
| 530 | def getInstance(cls): |
| 531 | if cls._instance is None: |
| 532 | cls._instance = GraphSettings() |
| 533 | return cls._instance |
| 534 | |
| 535 | def __init__(self): |
| 536 | defaults = { |
| 537 | 'mobileDroneMode': GraphDpsDroneMode.auto, |
| 538 | 'ignoreDCR': False, |
| 539 | 'ignoreResists': True, |
| 540 | 'ignoreLockRange': True, |
| 541 | 'applyProjected': True} |
| 542 | self.settings = SettingsProvider.getInstance().getSettings('graphSettings', defaults) |
| 543 | |
| 544 | def get(self, type): |
| 545 | return self.settings[type] |
| 546 | |
| 547 | def set(self, type, value): |
| 548 | self.settings[type] = value |
| 549 | |
| 550 | |
| 551 | class LocaleSettings: |