af6d7c5055
* Use `vars()` instead of directly accessing `__dict__` * Remove `auto_update` from RareGame's metadata * Correct check for updating the Steam App ID (We want to keep any changes from the user) * Collect both Wine and Proton prefixes when removing overlay registry keys. * Add few convenience functions in config_helper and paths.
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
from PyQt5.QtCore import QCoreApplication
|
|
|
|
from .overlays import OverlaySettings, CustomOption
|
|
|
|
|
|
class DxvkSettings(OverlaySettings):
|
|
def __init__(self, parent=None):
|
|
super(DxvkSettings, self).__init__(
|
|
[
|
|
("fps", QCoreApplication.translate("DxvkSettings", "FPS")),
|
|
("frametime", QCoreApplication.translate("DxvkSettings", "Frametime")),
|
|
("memory", QCoreApplication.translate("DxvkSettings", "Memory usage")),
|
|
("gpuload", QCoreApplication.translate("DxvkSettings", "GPU usage")),
|
|
("devinfo", QCoreApplication.translate("DxvkSettings", "Show Device info")),
|
|
("version", QCoreApplication.translate("DxvkSettings", "DXVK Version")),
|
|
("api", QCoreApplication.translate("DxvkSettings", "D3D feature level")),
|
|
("compiler", QCoreApplication.translate("DxvkSettings", "Compiler activity")),
|
|
],
|
|
[
|
|
(CustomOption.number_input("scale", 1, True), QCoreApplication.translate("DxvkSettings", "Scale"))
|
|
],
|
|
"DXVK_HUD", "0",
|
|
parent=parent
|
|
)
|
|
|
|
self.setTitle(self.tr("DXVK Settings"))
|
|
self.gb_options.setTitle(self.tr("Custom options"))
|