forked from AcademicDog/onmyoji_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUi_onmyoji.py
257 lines (251 loc) · 14.3 KB
/
Ui_onmyoji.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\软件\github\onmyoji_bot\onmyoji.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(545, 590)
MainWindow.setMinimumSize(QtCore.QSize(545, 590))
MainWindow.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_6 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_6.setObjectName("gridLayout_6")
self.frame = QtWidgets.QFrame(self.centralwidget)
self.frame.setMinimumSize(QtCore.QSize(0, 0))
self.frame.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.frame.setFrameShape(QtWidgets.QFrame.Box)
self.frame.setFrameShadow(QtWidgets.QFrame.Sunken)
self.frame.setObjectName("frame")
self.gridLayout_3 = QtWidgets.QGridLayout(self.frame)
self.gridLayout_3.setObjectName("gridLayout_3")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label_4 = QtWidgets.QLabel(self.frame)
self.label_4.setObjectName("label_4")
self.verticalLayout_2.addWidget(self.label_4)
self.textEdit = QtWidgets.QTextEdit(self.frame)
self.textEdit.setEnabled(True)
self.textEdit.setMinimumSize(QtCore.QSize(216, 124))
self.textEdit.setStatusTip("")
self.textEdit.setReadOnly(True)
self.textEdit.setObjectName("textEdit")
self.verticalLayout_2.addWidget(self.textEdit)
self.line_3 = QtWidgets.QFrame(self.frame)
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.verticalLayout_2.addWidget(self.line_3)
self.start_btn = QtWidgets.QPushButton(self.frame)
self.start_btn.setMinimumSize(QtCore.QSize(246, 23))
self.start_btn.setLayoutDirection(QtCore.Qt.RightToLeft)
self.start_btn.setObjectName("start_btn")
self.verticalLayout_2.addWidget(self.start_btn)
self.pushButton = QtWidgets.QPushButton(self.frame)
self.pushButton.setMinimumSize(QtCore.QSize(246, 0))
self.pushButton.setObjectName("pushButton")
self.verticalLayout_2.addWidget(self.pushButton)
self.gridLayout_3.addLayout(self.verticalLayout_2, 1, 2, 1, 1)
self.label = QtWidgets.QLabel(self.frame)
font = QtGui.QFont()
font.setFamily("Times New Roman")
font.setPointSize(24)
self.label.setFont(font)
self.label.setObjectName("label")
self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.tabWidget = QtWidgets.QTabWidget(self.frame)
self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.gridLayout_2 = QtWidgets.QGridLayout(self.tab)
self.gridLayout_2.setObjectName("gridLayout_2")
self.groupBox = QtWidgets.QGroupBox(self.tab)
self.groupBox.setObjectName("groupBox")
self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout.setObjectName("gridLayout")
self.mitama_passenger = QtWidgets.QRadioButton(self.groupBox)
self.mitama_passenger.setObjectName("mitama_passenger")
self.gridLayout.addWidget(self.mitama_passenger, 0, 2, 1, 1)
self.mitama_driver = QtWidgets.QRadioButton(self.groupBox)
self.mitama_driver.setObjectName("mitama_driver")
self.gridLayout.addWidget(self.mitama_driver, 0, 1, 1, 1)
self.mitama_single = QtWidgets.QRadioButton(self.groupBox)
self.mitama_single.setAutoFillBackground(False)
self.mitama_single.setChecked(True)
self.mitama_single.setObjectName("mitama_single")
self.gridLayout.addWidget(self.mitama_single, 0, 0, 1, 1)
self.mitama_dual = QtWidgets.QRadioButton(self.groupBox)
self.mitama_dual.setObjectName("mitama_dual")
self.gridLayout.addWidget(self.mitama_dual, 1, 0, 1, 1)
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_2)
self.gridLayout_5.setObjectName("gridLayout_5")
self.groupBox_3 = QtWidgets.QGroupBox(self.tab_2)
self.groupBox_3.setMinimumSize(QtCore.QSize(0, 0))
self.groupBox_3.setObjectName("groupBox_3")
self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_3)
self.gridLayout_8.setObjectName("gridLayout_8")
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_3)
self.lineEdit_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lineEdit_3.setObjectName("lineEdit_3")
self.gridLayout_8.addWidget(self.lineEdit_3, 0, 1, 1, 1)
self.label_5 = QtWidgets.QLabel(self.groupBox_3)
self.label_5.setObjectName("label_5")
self.gridLayout_8.addWidget(self.label_5, 0, 0, 1, 1)
self.gridLayout_5.addWidget(self.groupBox_3, 1, 0, 1, 1)
self.checkBox_3 = QtWidgets.QCheckBox(self.tab_2)
self.checkBox_3.setChecked(True)
self.checkBox_3.setObjectName("checkBox_3")
self.gridLayout_5.addWidget(self.checkBox_3, 3, 0, 1, 1)
self.horizontalSlider = QtWidgets.QSlider(self.tab_2)
self.horizontalSlider.setSliderPosition(10)
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setObjectName("horizontalSlider")
self.gridLayout_5.addWidget(self.horizontalSlider, 4, 0, 1, 1)
self.checkBox_2 = QtWidgets.QCheckBox(self.tab_2)
self.checkBox_2.setObjectName("checkBox_2")
self.gridLayout_5.addWidget(self.checkBox_2, 6, 0, 1, 1)
self.plainTextEdit_2 = QtWidgets.QPlainTextEdit(self.tab_2)
self.plainTextEdit_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.plainTextEdit_2.setReadOnly(True)
self.plainTextEdit_2.setObjectName("plainTextEdit_2")
self.gridLayout_5.addWidget(self.plainTextEdit_2, 0, 0, 1, 1)
self.line_4 = QtWidgets.QFrame(self.tab_2)
self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_4.setObjectName("line_4")
self.gridLayout_5.addWidget(self.line_4, 2, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_3)
self.gridLayout_4.setObjectName("gridLayout_4")
self.plainTextEdit = QtWidgets.QPlainTextEdit(self.tab_3)
self.plainTextEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.plainTextEdit.setReadOnly(True)
self.plainTextEdit.setObjectName("plainTextEdit")
self.gridLayout_4.addWidget(self.plainTextEdit, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_3, "")
self.verticalLayout.addWidget(self.tabWidget)
self.line = QtWidgets.QFrame(self.frame)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.verticalLayout.addWidget(self.line)
self.groupBox_2 = QtWidgets.QGroupBox(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
self.groupBox_2.setSizePolicy(sizePolicy)
self.groupBox_2.setMinimumSize(QtCore.QSize(0, 0))
self.groupBox_2.setLayoutDirection(QtCore.Qt.LeftToRight)
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_2)
self.gridLayout_7.setObjectName("gridLayout_7")
self.checkBox = QtWidgets.QCheckBox(self.groupBox_2)
self.checkBox.setChecked(True)
self.checkBox.setObjectName("checkBox")
self.gridLayout_7.addWidget(self.checkBox, 0, 0, 1, 1)
self.label_2 = QtWidgets.QLabel(self.groupBox_2)
self.label_2.setObjectName("label_2")
self.gridLayout_7.addWidget(self.label_2, 2, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(self.groupBox_2)
self.label_3.setObjectName("label_3")
self.gridLayout_7.addWidget(self.label_3, 3, 0, 1, 1)
self.lineEdit = QtWidgets.QLineEdit(self.groupBox_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
self.lineEdit.setSizePolicy(sizePolicy)
self.lineEdit.setMaximumSize(QtCore.QSize(16777215, 20))
self.lineEdit.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lineEdit.setObjectName("lineEdit")
self.gridLayout_7.addWidget(self.lineEdit, 2, 1, 1, 1)
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox_2)
self.lineEdit_2.setMaximumSize(QtCore.QSize(16777215, 20))
self.lineEdit_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lineEdit_2.setObjectName("lineEdit_2")
self.gridLayout_7.addWidget(self.lineEdit_2, 3, 1, 1, 1)
self.verticalLayout.addWidget(self.groupBox_2)
self.gridLayout_3.addLayout(self.verticalLayout, 1, 0, 1, 1)
self.line_2 = QtWidgets.QFrame(self.frame)
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_3.addWidget(self.line_2, 1, 1, 1, 1)
self.gridLayout_6.addWidget(self.frame, 1, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 545, 23))
self.menubar.setObjectName("menubar")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
MainWindow.setMenuBar(self.menubar)
self.statusBar = QtWidgets.QStatusBar(MainWindow)
self.statusBar.setObjectName("statusBar")
MainWindow.setStatusBar(self.statusBar)
self.actionFile = QtWidgets.QAction(MainWindow)
self.actionFile.setObjectName("actionFile")
self.actionAbout_2 = QtWidgets.QAction(MainWindow)
self.actionAbout_2.setObjectName("actionAbout_2")
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setStatusTip("")
self.actionAbout.setObjectName("actionAbout")
self.menu.addAction(self.actionAbout)
self.menubar.addAction(self.menu.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
self.start_btn.clicked.connect(MainWindow.start_onmyoji)
self.pushButton.clicked.connect(MainWindow.stop_onmyoji)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "onmyoji_bot"))
self.label_4.setText(_translate("MainWindow", "日志"))
self.start_btn.setText(_translate("MainWindow", "开始"))
self.pushButton.setText(_translate("MainWindow", "结束"))
self.label.setText(_translate("MainWindow", "辅助助手"))
self.groupBox.setTitle(_translate("MainWindow", "模式"))
self.mitama_passenger.setText(_translate("MainWindow", "单人乘客"))
self.mitama_driver.setText(_translate("MainWindow", "单人司机"))
self.mitama_single.setText(_translate("MainWindow", "单刷"))
self.mitama_dual.setText(_translate("MainWindow", "双开"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "御魂/御灵"))
self.groupBox_3.setTitle(_translate("MainWindow", "延迟设置"))
self.lineEdit_3.setText(_translate("MainWindow", "3"))
self.label_5.setText(_translate("MainWindow", "满级狗粮识别延迟(秒):"))
self.checkBox_3.setText(_translate("MainWindow", "换狗粮拖放式神进度条,进度:"))
self.checkBox_2.setText(_translate("MainWindow", "结束后打BOSS"))
self.plainTextEdit_2.setPlainText(_translate("MainWindow", "把狗粮队长放在最左边,点开需要打的章节,然后开始。\n"
"\n"
"支持自动换狗粮,只打经验怪。\n"
"\n"
"最好把“合并相同式神”选项关闭。"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "探索"))
self.plainTextEdit.setPlainText(_translate("MainWindow", "网址:https://github.com/AcademicDog/onmyoji_bot\n"
"\n"
"交流Q群:592055060"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "关于"))
self.groupBox_2.setTitle(_translate("MainWindow", "高级选项"))
self.checkBox.setText(_translate("MainWindow", "超时自动关闭阴阳师"))
self.label_2.setText(_translate("MainWindow", " 画面超时时间(秒):"))
self.label_3.setText(_translate("MainWindow", " 操作超时时间(秒):"))
self.lineEdit.setText(_translate("MainWindow", "100"))
self.lineEdit_2.setText(_translate("MainWindow", "20"))
self.menu.setTitle(_translate("MainWindow", "帮助"))
self.actionFile.setText(_translate("MainWindow", "File"))
self.actionAbout_2.setText(_translate("MainWindow", "About"))
self.actionAbout.setText(_translate("MainWindow", "About"))