-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.py
303 lines (296 loc) · 18.8 KB
/
ui.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(842, 710)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
self.stackedWidget.setObjectName("stackedWidget")
self.autoshop = QtWidgets.QWidget()
self.autoshop.setObjectName("autoshop")
self.gridLayout_2 = QtWidgets.QGridLayout(self.autoshop)
self.gridLayout_2.setObjectName("gridLayout_2")
self.lobby_mov = QtWidgets.QLabel(self.autoshop)
self.lobby_mov.setEnabled(True)
self.lobby_mov.setMinimumSize(QtCore.QSize(600, 324))
self.lobby_mov.setMaximumSize(QtCore.QSize(16777215, 324))
self.lobby_mov.setText("")
self.lobby_mov.setObjectName("lobby_mov")
self.gridLayout_2.addWidget(self.lobby_mov, 2, 0, 1, 2)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.lobby_timer = QtWidgets.QLabel(self.autoshop)
self.lobby_timer.setObjectName("lobby_timer")
self.horizontalLayout_7.addWidget(self.lobby_timer)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.cov_icon = QtWidgets.QLabel(self.autoshop)
self.cov_icon.setMaximumSize(QtCore.QSize(40, 40))
self.cov_icon.setText("")
self.cov_icon.setPixmap(QtGui.QPixmap(":/images/img/cov.png"))
self.cov_icon.setObjectName("cov_icon")
self.horizontalLayout_9.addWidget(self.cov_icon)
self.cov_label = QtWidgets.QLabel(self.autoshop)
self.cov_label.setMaximumSize(QtCore.QSize(50, 16777215))
self.cov_label.setObjectName("cov_label")
self.horizontalLayout_9.addWidget(self.cov_label)
self.mystic_icon = QtWidgets.QLabel(self.autoshop)
self.mystic_icon.setMaximumSize(QtCore.QSize(40, 40))
self.mystic_icon.setText("")
self.mystic_icon.setPixmap(QtGui.QPixmap(":/images/img/mystic.png"))
self.mystic_icon.setObjectName("mystic_icon")
self.horizontalLayout_9.addWidget(self.mystic_icon)
self.mystic_label = QtWidgets.QLabel(self.autoshop)
self.mystic_label.setMaximumSize(QtCore.QSize(50, 16777215))
self.mystic_label.setObjectName("mystic_label")
self.horizontalLayout_9.addWidget(self.mystic_label)
self.verticalLayout_2.addLayout(self.horizontalLayout_9)
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.skystone_icon = QtWidgets.QLabel(self.autoshop)
self.skystone_icon.setMaximumSize(QtCore.QSize(40, 40))
self.skystone_icon.setText("")
self.skystone_icon.setPixmap(QtGui.QPixmap(":/images/img/skystone.png"))
self.skystone_icon.setObjectName("skystone_icon")
self.horizontalLayout_11.addWidget(self.skystone_icon)
self.skystone_label = QtWidgets.QLabel(self.autoshop)
self.skystone_label.setMaximumSize(QtCore.QSize(100, 16777215))
self.skystone_label.setObjectName("skystone_label")
self.horizontalLayout_11.addWidget(self.skystone_label)
self.gold_icon = QtWidgets.QLabel(self.autoshop)
self.gold_icon.setMaximumSize(QtCore.QSize(40, 40))
self.gold_icon.setText("")
self.gold_icon.setPixmap(QtGui.QPixmap(":/images/img/gold.png"))
self.gold_icon.setObjectName("gold_icon")
self.horizontalLayout_11.addWidget(self.gold_icon)
self.gold_label = QtWidgets.QLabel(self.autoshop)
self.gold_label.setMaximumSize(QtCore.QSize(100, 16777215))
self.gold_label.setObjectName("gold_label")
self.horizontalLayout_11.addWidget(self.gold_label)
self.verticalLayout_2.addLayout(self.horizontalLayout_11)
self.horizontalLayout_7.addLayout(self.verticalLayout_2)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
self.horizontalLayout_13.setObjectName("horizontalLayout_13")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_13.addItem(spacerItem)
self.skystones_input = QtWidgets.QLineEdit(self.autoshop)
self.skystones_input.setObjectName("skystones_input")
self.horizontalLayout_13.addWidget(self.skystones_input)
self.verticalLayout.addLayout(self.horizontalLayout_13)
self.lobby_horizontalLayout = QtWidgets.QHBoxLayout()
self.lobby_horizontalLayout.setObjectName("lobby_horizontalLayout")
self.autoshop_start_btn = QtWidgets.QPushButton(self.autoshop)
self.autoshop_start_btn.setCheckable(False)
self.autoshop_start_btn.setObjectName("autoshop_start_btn")
self.lobby_horizontalLayout.addWidget(self.autoshop_start_btn)
self.autoshop_pause_btn = QtWidgets.QPushButton(self.autoshop)
self.autoshop_pause_btn.setCheckable(True)
self.autoshop_pause_btn.setObjectName("autoshop_pause_btn")
self.lobby_horizontalLayout.addWidget(self.autoshop_pause_btn)
self.autoshop_stop_btn = QtWidgets.QPushButton(self.autoshop)
self.autoshop_stop_btn.setCheckable(False)
self.autoshop_stop_btn.setObjectName("autoshop_stop_btn")
self.lobby_horizontalLayout.addWidget(self.autoshop_stop_btn)
self.verticalLayout.addLayout(self.lobby_horizontalLayout)
self.horizontalLayout_7.addLayout(self.verticalLayout)
self.gridLayout_2.addLayout(self.horizontalLayout_7, 6, 0, 1, 1)
self.lobby_progress_bar = QtWidgets.QProgressBar(self.autoshop)
self.lobby_progress_bar.setProperty("value", 0)
self.lobby_progress_bar.setObjectName("lobby_progress_bar")
self.gridLayout_2.addWidget(self.lobby_progress_bar, 5, 0, 1, 2)
self.announcement = QtWidgets.QLabel(self.autoshop)
self.announcement.setText("")
self.announcement.setObjectName("announcement")
self.gridLayout_2.addWidget(self.announcement, 0, 0, 1, 1)
self.lobby_console = QtWidgets.QTextEdit(self.autoshop)
self.lobby_console.setReadOnly(True)
self.lobby_console.setObjectName("lobby_console")
self.gridLayout_2.addWidget(self.lobby_console, 7, 0, 1, 1)
self.stackedWidget.addWidget(self.autoshop)
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.verticalLayoutWidget_4 = QtWidgets.QWidget(self.page)
self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(0, 0, 621, 621))
self.verticalLayoutWidget_4.setObjectName("verticalLayoutWidget_4")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_4)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.tableWidget = QtWidgets.QTableWidget(self.verticalLayoutWidget_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
self.tableWidget.setSizePolicy(sizePolicy)
self.tableWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
self.tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(5)
self.tableWidget.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(4, item)
self.verticalLayout_5.addWidget(self.tableWidget)
self.stackedWidget.addWidget(self.page)
self.gridLayout.addWidget(self.stackedWidget, 0, 1, 2, 1)
self.side_verticalLayout_outer = QtWidgets.QVBoxLayout()
self.side_verticalLayout_outer.setObjectName("side_verticalLayout_outer")
self.side_verticalLayout_inner = QtWidgets.QVBoxLayout()
self.side_verticalLayout_inner.setObjectName("side_verticalLayout_inner")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.donation_logo = QtWidgets.QLabel(self.centralwidget)
self.donation_logo.setMaximumSize(QtCore.QSize(100, 100))
self.donation_logo.setText("")
self.donation_logo.setPixmap(QtGui.QPixmap(":/images/img/buymecoffee.png"))
self.donation_logo.setScaledContents(True)
self.donation_logo.setWordWrap(False)
self.donation_logo.setObjectName("donation_logo")
self.horizontalLayout_6.addWidget(self.donation_logo)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_6)
spacerItem1 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.side_verticalLayout_inner.addItem(spacerItem1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem2)
self.autoshop_btn = QtWidgets.QPushButton(self.centralwidget)
self.autoshop_btn.setCheckable(True)
self.autoshop_btn.setChecked(True)
self.autoshop_btn.setObjectName("autoshop_btn")
self.horizontalLayout_2.addWidget(self.autoshop_btn)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem3)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_2)
self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_14.addItem(spacerItem4)
self.history_btn = QtWidgets.QPushButton(self.centralwidget)
self.history_btn.setCheckable(True)
self.history_btn.setChecked(False)
self.history_btn.setObjectName("history_btn")
self.horizontalLayout_14.addWidget(self.history_btn)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_14.addItem(spacerItem5)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_14)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem6)
self.watchads_btn = QtWidgets.QPushButton(self.centralwidget)
self.watchads_btn.setCheckable(True)
self.watchads_btn.setChecked(False)
self.watchads_btn.setObjectName("watchads_btn")
self.horizontalLayout_4.addWidget(self.watchads_btn)
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem7)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_4)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem8)
self.update_btn = QtWidgets.QPushButton(self.centralwidget)
self.update_btn.setCheckable(False)
self.update_btn.setChecked(False)
self.update_btn.setObjectName("update_btn")
self.horizontalLayout_5.addWidget(self.update_btn)
spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem9)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_5)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem10)
self.dark_btn = QtWidgets.QPushButton(self.centralwidget)
self.dark_btn.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/images/img/dark.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.dark_btn.setIcon(icon)
self.dark_btn.setCheckable(False)
self.dark_btn.setChecked(False)
self.dark_btn.setObjectName("dark_btn")
self.horizontalLayout_8.addWidget(self.dark_btn)
self.light_btn = QtWidgets.QPushButton(self.centralwidget)
self.light_btn.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/images/img/light.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.light_btn.setIcon(icon1)
self.light_btn.setObjectName("light_btn")
self.horizontalLayout_8.addWidget(self.light_btn)
spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem11)
self.side_verticalLayout_inner.addLayout(self.horizontalLayout_8)
self.upcomingpatches_label = QtWidgets.QLabel(self.centralwidget)
self.upcomingpatches_label.setObjectName("upcomingpatches_label")
self.side_verticalLayout_inner.addWidget(self.upcomingpatches_label)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.side_verticalLayout_inner.addLayout(self.horizontalLayout)
spacerItem12 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.side_verticalLayout_inner.addItem(spacerItem12)
self.patch_edit = QtWidgets.QTextEdit(self.centralwidget)
self.patch_edit.setReadOnly(True)
self.patch_edit.setObjectName("patch_edit")
self.side_verticalLayout_inner.addWidget(self.patch_edit)
self.side_verticalLayout_outer.addLayout(self.side_verticalLayout_inner)
spacerItem13 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.side_verticalLayout_outer.addItem(spacerItem13)
self.gridLayout.addLayout(self.side_verticalLayout_outer, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.stackedWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.lobby_timer.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:14pt; font-weight:600;\">00:00:00</span></p></body></html>"))
self.cov_label.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\">0</p></body></html>"))
self.mystic_label.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\">0</p></body></html>"))
self.skystone_label.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\">0</p></body></html>"))
self.gold_label.setText(_translate("MainWindow", "0"))
self.skystones_input.setPlaceholderText(_translate("MainWindow", "Enter Skystones here"))
self.autoshop_start_btn.setText(_translate("MainWindow", "Start"))
self.autoshop_pause_btn.setText(_translate("MainWindow", "Pause"))
self.autoshop_stop_btn.setText(_translate("MainWindow", "Stop"))
self.lobby_console.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:7.8pt; font-weight:400; font-style:normal;\" bgcolor=\"#000000\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Date"))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Covenant"))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Mystic"))
item = self.tableWidget.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "Gems Used"))
item = self.tableWidget.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "Gold Used"))
self.autoshop_btn.setText(_translate("MainWindow", "AutoShop"))
self.history_btn.setText(_translate("MainWindow", "History"))
self.watchads_btn.setText(_translate("MainWindow", "Watch E7 Ads"))
self.update_btn.setText(_translate("MainWindow", "Update Available"))
self.upcomingpatches_label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-weight:600;\">Upcoming Patches</span></p></body></html>"))
import resource_rc