This commit is contained in:
bgArray 2022-12-30 17:06:34 +08:00
parent dc1efc9e84
commit 9734bf493a
2 changed files with 454 additions and 10 deletions

View File

@ -216,7 +216,7 @@
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>TextLabel</string>
<string>默认保存路径:</string>
</property>
</widget>
</item>
@ -245,7 +245,7 @@
<item>
<widget class="QLabel" name="label_15">
<property name="text">
<string>TextLabel</string>
<string>速度倍率</string>
</property>
</widget>
</item>
@ -258,6 +258,251 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_3">
<property name="geometry">
<rect>
<x>260</x>
<y>20</y>
<width>241</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>音量倍率</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_4">
<property name="geometry">
<rect>
<x>260</x>
<y>50</y>
<width>241</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_18">
<property name="text">
<string>计分板名称</string>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="textEdit">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>78</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_7">
<property name="geometry">
<rect>
<x>510</x>
<y>20</y>
<width>241</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="label_21">
<property name="text">
<string>最大指令生成高度</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_6">
<property name="geometry">
<rect>
<x>510</x>
<y>50</y>
<width>241</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="label_20">
<property name="text">
<string>玩家选择器</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser_2"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_10">
<property name="geometry">
<rect>
<x>0</x>
<y>50</y>
<width>251</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLabel" name="label_24">
<property name="text">
<string>选择器模式</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_3"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_5">
<property name="geometry">
<rect>
<x>0</x>
<y>80</y>
<width>241</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_19">
<property name="text">
<string>bdx作者名称</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_9">
<property name="geometry">
<rect>
<x>0</x>
<y>110</y>
<width>371</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QLabel" name="label_23">
<property name="text">
<string>选择命令格式版本</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_8">
<property name="geometry">
<rect>
<x>260</x>
<y>80</y>
<width>511</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QCheckBox" name="checkBox_2">
<property name="text">
<string>是否启用进度条</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>是否自定义进度条</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_22">
<property name="text">
<string>自定义进度条内容:</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser_3"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_11">
<property name="geometry">
<rect>
<x>390</x>
<y>110</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="QLabel" name="label_25">
<property name="text">
<string>选择转换算法版本</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_4"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="horizontalLayoutWidget_12">
<property name="geometry">
<rect>
<x>0</x>
<y>140</y>
<width>301</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_15">
<item>
<widget class="QLabel" name="label_26">
<property name="text">
<string>选择导出模式</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_5"/>
</item>
</layout>
</widget>
</widget>
</widget>
<widget class="QWidget" name="tab_3">
@ -296,7 +541,8 @@
<widget class="QStatusBar" name="statusbar"/>
<action name="action">
<property name="icon">
<iconset theme="document-open"/>
<iconset theme="document-open">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>打开 Open</string>

212
pp.py
View File

@ -16,10 +16,11 @@ from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QApplication, QComboBox, QHBoxLayout, QHeaderView,
QLabel, QMainWindow, QMenu, QMenuBar,
QSizePolicy, QSlider, QStatusBar, QTabWidget,
QTableWidget, QTableWidgetItem, QToolButton, QVBoxLayout,
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QHBoxLayout,
QHeaderView, QLabel, QMainWindow, QMenu,
QMenuBar, QSizePolicy, QSlider, QSpinBox,
QStatusBar, QTabWidget, QTableWidget, QTableWidgetItem,
QTextBrowser, QTextEdit, QToolButton, QVBoxLayout,
QWidget)
@ -30,7 +31,13 @@ class Ui_MainWindow(object):
MainWindow.resize(800, 600)
self.action = QAction(MainWindow)
self.action.setObjectName(u"action")
icon = QIcon(QIcon.fromTheme(u"document-open"))
icon = QIcon()
iconThemeName = u"document-open"
if QIcon.hasThemeIcon(iconThemeName):
icon = QIcon.fromTheme(iconThemeName)
else:
icon.addFile(u".", QSize(), QIcon.Normal, QIcon.Off)
self.action.setIcon(icon)
self.action_Input = QAction(MainWindow)
self.action_Input.setObjectName(u"action_Input")
@ -182,6 +189,178 @@ class Ui_MainWindow(object):
self.horizontalLayout_2.addWidget(self.horizontalSlider)
self.horizontalLayoutWidget_3 = QWidget(self.widget_3)
self.horizontalLayoutWidget_3.setObjectName(u"horizontalLayoutWidget_3")
self.horizontalLayoutWidget_3.setGeometry(QRect(260, 20, 241, 31))
self.horizontalLayout_4 = QHBoxLayout(self.horizontalLayoutWidget_3)
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.label_17 = QLabel(self.horizontalLayoutWidget_3)
self.label_17.setObjectName(u"label_17")
self.horizontalLayout_4.addWidget(self.label_17)
self.horizontalSlider_3 = QSlider(self.horizontalLayoutWidget_3)
self.horizontalSlider_3.setObjectName(u"horizontalSlider_3")
self.horizontalSlider_3.setOrientation(Qt.Horizontal)
self.horizontalLayout_4.addWidget(self.horizontalSlider_3)
self.horizontalLayoutWidget_4 = QWidget(self.widget_3)
self.horizontalLayoutWidget_4.setObjectName(u"horizontalLayoutWidget_4")
self.horizontalLayoutWidget_4.setGeometry(QRect(260, 50, 241, 31))
self.horizontalLayout_6 = QHBoxLayout(self.horizontalLayoutWidget_4)
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.label_18 = QLabel(self.horizontalLayoutWidget_4)
self.label_18.setObjectName(u"label_18")
self.horizontalLayout_6.addWidget(self.label_18)
self.textEdit = QTextEdit(self.horizontalLayoutWidget_4)
self.textEdit.setObjectName(u"textEdit")
self.textEdit.setMaximumSize(QSize(16777215, 78))
self.horizontalLayout_6.addWidget(self.textEdit)
self.horizontalLayoutWidget_7 = QWidget(self.widget_3)
self.horizontalLayoutWidget_7.setObjectName(u"horizontalLayoutWidget_7")
self.horizontalLayoutWidget_7.setGeometry(QRect(510, 20, 241, 31))
self.horizontalLayout_9 = QHBoxLayout(self.horizontalLayoutWidget_7)
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
self.label_21 = QLabel(self.horizontalLayoutWidget_7)
self.label_21.setObjectName(u"label_21")
self.horizontalLayout_9.addWidget(self.label_21)
self.spinBox = QSpinBox(self.horizontalLayoutWidget_7)
self.spinBox.setObjectName(u"spinBox")
self.horizontalLayout_9.addWidget(self.spinBox)
self.horizontalLayoutWidget_6 = QWidget(self.widget_3)
self.horizontalLayoutWidget_6.setObjectName(u"horizontalLayoutWidget_6")
self.horizontalLayoutWidget_6.setGeometry(QRect(510, 50, 241, 31))
self.horizontalLayout_8 = QHBoxLayout(self.horizontalLayoutWidget_6)
self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.label_20 = QLabel(self.horizontalLayoutWidget_6)
self.label_20.setObjectName(u"label_20")
self.horizontalLayout_8.addWidget(self.label_20)
self.textBrowser_2 = QTextBrowser(self.horizontalLayoutWidget_6)
self.textBrowser_2.setObjectName(u"textBrowser_2")
self.horizontalLayout_8.addWidget(self.textBrowser_2)
self.horizontalLayoutWidget_10 = QWidget(self.widget_3)
self.horizontalLayoutWidget_10.setObjectName(u"horizontalLayoutWidget_10")
self.horizontalLayoutWidget_10.setGeometry(QRect(0, 50, 251, 31))
self.horizontalLayout_13 = QHBoxLayout(self.horizontalLayoutWidget_10)
self.horizontalLayout_13.setObjectName(u"horizontalLayout_13")
self.horizontalLayout_13.setContentsMargins(0, 0, 0, 0)
self.label_24 = QLabel(self.horizontalLayoutWidget_10)
self.label_24.setObjectName(u"label_24")
self.horizontalLayout_13.addWidget(self.label_24)
self.comboBox_3 = QComboBox(self.horizontalLayoutWidget_10)
self.comboBox_3.setObjectName(u"comboBox_3")
self.horizontalLayout_13.addWidget(self.comboBox_3)
self.horizontalLayoutWidget_5 = QWidget(self.widget_3)
self.horizontalLayoutWidget_5.setObjectName(u"horizontalLayoutWidget_5")
self.horizontalLayoutWidget_5.setGeometry(QRect(0, 80, 241, 31))
self.horizontalLayout_7 = QHBoxLayout(self.horizontalLayoutWidget_5)
self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
self.label_19 = QLabel(self.horizontalLayoutWidget_5)
self.label_19.setObjectName(u"label_19")
self.horizontalLayout_7.addWidget(self.label_19)
self.textBrowser = QTextBrowser(self.horizontalLayoutWidget_5)
self.textBrowser.setObjectName(u"textBrowser")
self.horizontalLayout_7.addWidget(self.textBrowser)
self.horizontalLayoutWidget_9 = QWidget(self.widget_3)
self.horizontalLayoutWidget_9.setObjectName(u"horizontalLayoutWidget_9")
self.horizontalLayoutWidget_9.setGeometry(QRect(0, 110, 371, 31))
self.horizontalLayout_12 = QHBoxLayout(self.horizontalLayoutWidget_9)
self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
self.horizontalLayout_12.setContentsMargins(0, 0, 0, 0)
self.label_23 = QLabel(self.horizontalLayoutWidget_9)
self.label_23.setObjectName(u"label_23")
self.horizontalLayout_12.addWidget(self.label_23)
self.comboBox_2 = QComboBox(self.horizontalLayoutWidget_9)
self.comboBox_2.setObjectName(u"comboBox_2")
self.horizontalLayout_12.addWidget(self.comboBox_2)
self.horizontalLayoutWidget_8 = QWidget(self.widget_3)
self.horizontalLayoutWidget_8.setObjectName(u"horizontalLayoutWidget_8")
self.horizontalLayoutWidget_8.setGeometry(QRect(260, 80, 511, 31))
self.horizontalLayout_11 = QHBoxLayout(self.horizontalLayoutWidget_8)
self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
self.horizontalLayout_11.setContentsMargins(0, 0, 0, 0)
self.checkBox_2 = QCheckBox(self.horizontalLayoutWidget_8)
self.checkBox_2.setObjectName(u"checkBox_2")
self.horizontalLayout_11.addWidget(self.checkBox_2)
self.checkBox = QCheckBox(self.horizontalLayoutWidget_8)
self.checkBox.setObjectName(u"checkBox")
self.horizontalLayout_11.addWidget(self.checkBox)
self.label_22 = QLabel(self.horizontalLayoutWidget_8)
self.label_22.setObjectName(u"label_22")
self.horizontalLayout_11.addWidget(self.label_22)
self.textBrowser_3 = QTextBrowser(self.horizontalLayoutWidget_8)
self.textBrowser_3.setObjectName(u"textBrowser_3")
self.horizontalLayout_11.addWidget(self.textBrowser_3)
self.horizontalLayoutWidget_11 = QWidget(self.widget_3)
self.horizontalLayoutWidget_11.setObjectName(u"horizontalLayoutWidget_11")
self.horizontalLayoutWidget_11.setGeometry(QRect(390, 110, 291, 31))
self.horizontalLayout_14 = QHBoxLayout(self.horizontalLayoutWidget_11)
self.horizontalLayout_14.setObjectName(u"horizontalLayout_14")
self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0)
self.label_25 = QLabel(self.horizontalLayoutWidget_11)
self.label_25.setObjectName(u"label_25")
self.horizontalLayout_14.addWidget(self.label_25)
self.comboBox_4 = QComboBox(self.horizontalLayoutWidget_11)
self.comboBox_4.setObjectName(u"comboBox_4")
self.horizontalLayout_14.addWidget(self.comboBox_4)
self.horizontalLayoutWidget_12 = QWidget(self.widget_3)
self.horizontalLayoutWidget_12.setObjectName(u"horizontalLayoutWidget_12")
self.horizontalLayoutWidget_12.setGeometry(QRect(0, 140, 301, 31))
self.horizontalLayout_15 = QHBoxLayout(self.horizontalLayoutWidget_12)
self.horizontalLayout_15.setObjectName(u"horizontalLayout_15")
self.horizontalLayout_15.setContentsMargins(0, 0, 0, 0)
self.label_26 = QLabel(self.horizontalLayoutWidget_12)
self.label_26.setObjectName(u"label_26")
self.horizontalLayout_15.addWidget(self.label_26)
self.comboBox_5 = QComboBox(self.horizontalLayoutWidget_12)
self.comboBox_5.setObjectName(u"comboBox_5")
self.horizontalLayout_15.addWidget(self.comboBox_5)
self.tabO.addTab(self.tab_2, "")
self.tab_3 = QWidget()
self.tab_3.setObjectName(u"tab_3")
@ -233,9 +412,28 @@ class Ui_MainWindow(object):
self.label_12.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_13.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_11.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_14.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_14.setText(
QCoreApplication.translate("MainWindow", u"\u9ed8\u8ba4\u4fdd\u5b58\u8def\u5f84\uff1a", None))
self.toolButton.setText(QCoreApplication.translate("MainWindow", u"...", None))
self.label_15.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None))
self.label_15.setText(QCoreApplication.translate("MainWindow", u"\u901f\u5ea6\u500d\u7387", None))
self.label_17.setText(QCoreApplication.translate("MainWindow", u"\u97f3\u91cf\u500d\u7387", None))
self.label_18.setText(QCoreApplication.translate("MainWindow", u"\u8ba1\u5206\u677f\u540d\u79f0", None))
self.label_21.setText(
QCoreApplication.translate("MainWindow", u"\u6700\u5927\u6307\u4ee4\u751f\u6210\u9ad8\u5ea6", None))
self.label_20.setText(QCoreApplication.translate("MainWindow", u"\u73a9\u5bb6\u9009\u62e9\u5668", None))
self.label_24.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u5668\u6a21\u5f0f", None))
self.label_19.setText(QCoreApplication.translate("MainWindow", u"bdx\u4f5c\u8005\u540d\u79f0", None))
self.label_23.setText(
QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u547d\u4ee4\u683c\u5f0f\u7248\u672c", None))
self.checkBox_2.setText(
QCoreApplication.translate("MainWindow", u"\u662f\u5426\u542f\u7528\u8fdb\u5ea6\u6761", None))
self.checkBox.setText(
QCoreApplication.translate("MainWindow", u"\u662f\u5426\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761", None))
self.label_22.setText(
QCoreApplication.translate("MainWindow", u"\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761\u5185\u5bb9\uff1a", None))
self.label_25.setText(
QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u8f6c\u6362\u7b97\u6cd5\u7248\u672c", None))
self.label_26.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u5bfc\u51fa\u6a21\u5f0f", None))
self.tabO.setTabText(self.tabO.indexOf(self.tab_2), QCoreApplication.translate("MainWindow", u"Tab 2", None))
self.tabO.setTabText(self.tabO.indexOf(self.tab_3), QCoreApplication.translate("MainWindow", u"\u9875", None))
self.tabO.setTabText(self.tabO.indexOf(self.tab_4), QCoreApplication.translate("MainWindow", u"\u9875", None))