(self)
| 407 | return cls._instance |
| 408 | |
| 409 | def __init__(self): |
| 410 | # mode |
| 411 | # 0 - Do not show |
| 412 | # 1 - Minimal/Text Only View |
| 413 | # 2 - Full View |
| 414 | serviceStatViewDefaultSettings = { |
| 415 | "resources" : 2, |
| 416 | "resistances" : 2, |
| 417 | "recharge" : 2, |
| 418 | "firepower" : 2, |
| 419 | "capacitor" : 2, |
| 420 | "targetingMisc": 1, |
| 421 | "price" : 2, |
| 422 | "miningyield" : 2, |
| 423 | "drones" : 2, |
| 424 | "outgoing" : 2, |
| 425 | "bombing" : 0, |
| 426 | } |
| 427 | |
| 428 | self.serviceStatViewDefaultSettings = SettingsProvider.getInstance().getSettings("pyfaServiceStatViewSettings", serviceStatViewDefaultSettings) |
| 429 | |
| 430 | def get(self, type): |
| 431 | return self.serviceStatViewDefaultSettings[type] |
nothing calls this directly
no test coverage detected