2021-04-30 09:30:42 +12:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2021-09-09 08:50:42 +12:00
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/tabs/games/game_info/game_settings.ui'
|
2021-04-30 09:30:42 +12:00
|
|
|
#
|
2021-10-24 12:47:49 +13:00
|
|
|
# Created by: PyQt5 UI code generator 5.15.5
|
2021-04-30 09:30:42 +12:00
|
|
|
#
|
|
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
|
|
|
2021-10-24 12:47:49 +13:00
|
|
|
from PyQt5 import QtCore, QtWidgets
|
2021-04-30 09:30:42 +12:00
|
|
|
|
|
|
|
|
|
|
|
class Ui_GameSettings(object):
|
|
|
|
def setupUi(self, GameSettings):
|
|
|
|
GameSettings.setObjectName("GameSettings")
|
2021-05-19 21:55:38 +12:00
|
|
|
GameSettings.resize(759, 617)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.game_settings_layout = QtWidgets.QVBoxLayout(GameSettings)
|
|
|
|
self.game_settings_layout.setObjectName("game_settings_layout")
|
2021-09-11 02:36:26 +12:00
|
|
|
self.game_title = QtWidgets.QLabel(GameSettings)
|
|
|
|
self.game_title.setText("error")
|
|
|
|
self.game_title.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
|
|
self.game_title.setObjectName("game_title")
|
|
|
|
self.game_settings_layout.addWidget(self.game_title, 0, QtCore.Qt.AlignTop)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_settings_groupbox = QtWidgets.QGroupBox(GameSettings)
|
|
|
|
self.launch_settings_groupbox.setObjectName("launch_settings_groupbox")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.launch_settings_layout = QtWidgets.QFormLayout(self.launch_settings_groupbox)
|
|
|
|
self.launch_settings_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_settings_layout.setObjectName("launch_settings_layout")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.skip_update_label = QtWidgets.QLabel(self.launch_settings_groupbox)
|
|
|
|
self.skip_update_label.setObjectName("skip_update_label")
|
|
|
|
self.launch_settings_layout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.skip_update_label)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.skip_update = QtWidgets.QComboBox(self.launch_settings_groupbox)
|
2021-09-09 08:50:42 +12:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.skip_update.sizePolicy().hasHeightForWidth())
|
|
|
|
self.skip_update.setSizePolicy(sizePolicy)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.skip_update.setObjectName("skip_update")
|
|
|
|
self.skip_update.addItem("")
|
|
|
|
self.skip_update.addItem("")
|
|
|
|
self.skip_update.addItem("")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.launch_settings_layout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.skip_update)
|
2021-05-06 02:40:23 +12:00
|
|
|
self.offline_label = QtWidgets.QLabel(self.launch_settings_groupbox)
|
|
|
|
self.offline_label.setObjectName("offline_label")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.launch_settings_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.offline_label)
|
2021-05-06 02:40:23 +12:00
|
|
|
self.offline = QtWidgets.QComboBox(self.launch_settings_groupbox)
|
2021-09-09 08:50:42 +12:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.offline.sizePolicy().hasHeightForWidth())
|
|
|
|
self.offline.setSizePolicy(sizePolicy)
|
2021-05-06 02:40:23 +12:00
|
|
|
self.offline.setObjectName("offline")
|
|
|
|
self.offline.addItem("")
|
|
|
|
self.offline.addItem("")
|
|
|
|
self.offline.addItem("")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.launch_settings_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.offline)
|
|
|
|
self.launch_params_label = QtWidgets.QLabel(self.launch_settings_groupbox)
|
|
|
|
self.launch_params_label.setObjectName("launch_params_label")
|
2021-10-24 12:47:49 +13:00
|
|
|
self.launch_settings_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.launch_params_label)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_params_widget = QtWidgets.QWidget(self.launch_settings_groupbox)
|
|
|
|
self.launch_params_widget.setObjectName("launch_params_widget")
|
|
|
|
self.launch_params_layout = QtWidgets.QHBoxLayout(self.launch_params_widget)
|
|
|
|
self.launch_params_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.launch_params_layout.setObjectName("launch_params_layout")
|
|
|
|
self.launch_params = QtWidgets.QLineEdit(self.launch_params_widget)
|
2021-05-06 02:40:23 +12:00
|
|
|
self.launch_params.setMinimumSize(QtCore.QSize(400, 0))
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_params.setObjectName("launch_params")
|
|
|
|
self.launch_params_layout.addWidget(self.launch_params)
|
|
|
|
self.launch_params_button = QtWidgets.QPushButton(self.launch_params_widget)
|
|
|
|
self.launch_params_button.setObjectName("launch_params_button")
|
|
|
|
self.launch_params_layout.addWidget(self.launch_params_button)
|
2021-10-24 12:47:49 +13:00
|
|
|
self.launch_settings_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.launch_params_widget)
|
2021-09-09 08:50:42 +12:00
|
|
|
self.wrapper_label = QtWidgets.QLabel(self.launch_settings_groupbox)
|
|
|
|
self.wrapper_label.setObjectName("wrapper_label")
|
2021-10-24 12:47:49 +13:00
|
|
|
self.launch_settings_layout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.wrapper_label)
|
2021-09-09 08:50:42 +12:00
|
|
|
self.wrapper_widget = QtWidgets.QWidget(self.launch_settings_groupbox)
|
|
|
|
self.wrapper_widget.setObjectName("wrapper_widget")
|
|
|
|
self.wrapper_layout = QtWidgets.QHBoxLayout(self.wrapper_widget)
|
|
|
|
self.wrapper_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
self.wrapper_layout.setObjectName("wrapper_layout")
|
|
|
|
self.wrapper = QtWidgets.QLineEdit(self.wrapper_widget)
|
|
|
|
self.wrapper.setMinimumSize(QtCore.QSize(400, 0))
|
|
|
|
self.wrapper.setObjectName("wrapper")
|
|
|
|
self.wrapper_layout.addWidget(self.wrapper)
|
|
|
|
self.wrapper_button = QtWidgets.QPushButton(self.wrapper_widget)
|
|
|
|
self.wrapper_button.setObjectName("wrapper_button")
|
|
|
|
self.wrapper_layout.addWidget(self.wrapper_button)
|
2021-10-24 12:47:49 +13:00
|
|
|
self.launch_settings_layout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.wrapper_widget)
|
2021-09-09 08:50:42 +12:00
|
|
|
self.game_settings_layout.addWidget(self.launch_settings_groupbox, 0, QtCore.Qt.AlignTop)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.proton_groupbox = QtWidgets.QGroupBox(GameSettings)
|
|
|
|
self.proton_groupbox.setObjectName("proton_groupbox")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_layout = QtWidgets.QFormLayout(self.proton_groupbox)
|
|
|
|
self.proton_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.proton_layout.setObjectName("proton_layout")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_wrapper_label = QtWidgets.QLabel(self.proton_groupbox)
|
|
|
|
self.proton_wrapper_label.setObjectName("proton_wrapper_label")
|
|
|
|
self.proton_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.proton_wrapper_label)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.proton_wrapper = QtWidgets.QComboBox(self.proton_groupbox)
|
2021-09-09 08:50:42 +12:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.proton_wrapper.sizePolicy().hasHeightForWidth())
|
|
|
|
self.proton_wrapper.setSizePolicy(sizePolicy)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.proton_wrapper.setObjectName("proton_wrapper")
|
|
|
|
self.proton_wrapper.addItem("")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.proton_wrapper)
|
2021-05-06 02:40:23 +12:00
|
|
|
self.proton_prefix_label = QtWidgets.QLabel(self.proton_groupbox)
|
|
|
|
self.proton_prefix_label.setObjectName("proton_prefix_label")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.proton_prefix_label)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.proton_prefix_layout = QtWidgets.QVBoxLayout()
|
|
|
|
self.proton_prefix_layout.setObjectName("proton_prefix_layout")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_layout.setLayout(2, QtWidgets.QFormLayout.FieldRole, self.proton_prefix_layout)
|
2021-04-30 09:30:42 +12:00
|
|
|
self.linux_layout = QtWidgets.QVBoxLayout()
|
|
|
|
self.linux_layout.setSpacing(0)
|
|
|
|
self.linux_layout.setObjectName("linux_layout")
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_layout.setLayout(3, QtWidgets.QFormLayout.SpanningRole, self.linux_layout)
|
|
|
|
self.game_settings_layout.addWidget(self.proton_groupbox, 0, QtCore.Qt.AlignTop)
|
2021-10-24 12:47:49 +13:00
|
|
|
self.cloud_gb = QtWidgets.QGroupBox(GameSettings)
|
|
|
|
self.cloud_gb.setObjectName("cloud_gb")
|
|
|
|
self.formLayout = QtWidgets.QFormLayout(self.cloud_gb)
|
|
|
|
self.formLayout.setObjectName("formLayout")
|
|
|
|
self.cloud_sync_label = QtWidgets.QLabel(self.cloud_gb)
|
|
|
|
self.cloud_sync_label.setObjectName("cloud_sync_label")
|
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.cloud_sync_label)
|
|
|
|
self.cloud_sync = QtWidgets.QCheckBox(self.cloud_gb)
|
|
|
|
self.cloud_sync.setText("")
|
|
|
|
self.cloud_sync.setObjectName("cloud_sync")
|
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cloud_sync)
|
|
|
|
self.game_settings_layout.addWidget(self.cloud_gb)
|
2021-09-09 08:50:42 +12:00
|
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
|
self.game_settings_layout.addItem(spacerItem)
|
2021-04-30 09:30:42 +12:00
|
|
|
|
|
|
|
self.retranslateUi(GameSettings)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(GameSettings)
|
|
|
|
|
|
|
|
def retranslateUi(self, GameSettings):
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
2021-05-19 21:55:38 +12:00
|
|
|
GameSettings.setWindowTitle(_translate("GameSettings", "GameSettings"))
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_settings_groupbox.setTitle(_translate("GameSettings", "Launch Settings"))
|
2021-09-09 08:50:42 +12:00
|
|
|
self.skip_update_label.setText(_translate("GameSettings", "Skip update check"))
|
2021-04-30 09:30:42 +12:00
|
|
|
self.skip_update.setItemText(0, _translate("GameSettings", "Default"))
|
|
|
|
self.skip_update.setItemText(1, _translate("GameSettings", "Yes"))
|
|
|
|
self.skip_update.setItemText(2, _translate("GameSettings", "No"))
|
2021-05-06 02:40:23 +12:00
|
|
|
self.offline_label.setText(_translate("GameSettings", "Offline mode"))
|
2021-04-30 09:30:42 +12:00
|
|
|
self.offline.setItemText(0, _translate("GameSettings", "Default"))
|
|
|
|
self.offline.setItemText(1, _translate("GameSettings", "Yes"))
|
|
|
|
self.offline.setItemText(2, _translate("GameSettings", "No"))
|
2021-09-09 08:50:42 +12:00
|
|
|
self.launch_params_label.setText(_translate("GameSettings", "Launch parameters"))
|
2021-04-30 09:30:42 +12:00
|
|
|
self.launch_params.setPlaceholderText(_translate("GameSettings", "parameters"))
|
|
|
|
self.launch_params_button.setText(_translate("GameSettings", "Save"))
|
2021-09-09 08:50:42 +12:00
|
|
|
self.wrapper_label.setText(_translate("GameSettings", "Wrapper"))
|
|
|
|
self.wrapper.setPlaceholderText(_translate("GameSettings", "e.g. optirun"))
|
|
|
|
self.wrapper_button.setText(_translate("GameSettings", "Save"))
|
2021-05-06 02:40:23 +12:00
|
|
|
self.proton_groupbox.setTitle(_translate("GameSettings", "Linux Settings"))
|
|
|
|
self.proton_wrapper_label.setText(_translate("GameSettings", "Proton"))
|
2021-09-09 08:50:42 +12:00
|
|
|
self.proton_wrapper.setItemText(0, _translate("GameSettings", "Don\'t use Proton"))
|
2021-05-06 02:40:23 +12:00
|
|
|
self.proton_prefix_label.setText(_translate("GameSettings", "Prefix"))
|
2021-10-24 12:47:49 +13:00
|
|
|
self.cloud_gb.setTitle(_translate("GameSettings", "Cloud Saves"))
|
|
|
|
self.cloud_sync_label.setText(_translate("GameSettings", "Sync with cloud"))
|
2021-04-30 09:30:42 +12:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
import sys
|
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
|
|
GameSettings = QtWidgets.QWidget()
|
|
|
|
ui = Ui_GameSettings()
|
|
|
|
ui.setupUi(GameSettings)
|
|
|
|
GameSettings.show()
|
|
|
|
sys.exit(app.exec_())
|