mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-20 01:30:17 +00:00
Compare commits
2 Commits
97b26510fb
...
b802c32481
Author | SHA1 | Date | |
---|---|---|---|
b802c32481 | |||
9622175a62 |
@ -49,7 +49,7 @@ class DbScoreTableModel(DbTableModel):
|
|||||||
and chart.constant is not None
|
and chart.constant is not None
|
||||||
and isinstance(score, Score)
|
and isinstance(score, Score)
|
||||||
):
|
):
|
||||||
newPtts.append(calculate_play_rating(chart.constant / 10, score.score))
|
newPtts.append(calculate_play_rating(chart.constant, score.score))
|
||||||
else:
|
else:
|
||||||
newPtts.append(None)
|
newPtts.append(None)
|
||||||
|
|
||||||
|
@ -48,9 +48,6 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
|||||||
|
|
||||||
self.mode = SongIdSelectorMode.SongId
|
self.mode = SongIdSelectorMode.SongId
|
||||||
|
|
||||||
databaseUpdateSignals.songDataUpdated.connect(self.updateDatabase)
|
|
||||||
|
|
||||||
self.fillPackComboBox()
|
|
||||||
self.packComboBox.setCurrentIndex(-1)
|
self.packComboBox.setCurrentIndex(-1)
|
||||||
self.songIdComboBox.setCurrentIndex(-1)
|
self.songIdComboBox.setCurrentIndex(-1)
|
||||||
|
|
||||||
@ -70,6 +67,9 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
|||||||
self.packComboBox.currentIndexChanged.connect(self.valueChanged)
|
self.packComboBox.currentIndexChanged.connect(self.valueChanged)
|
||||||
self.songIdComboBox.currentIndexChanged.connect(self.valueChanged)
|
self.songIdComboBox.currentIndexChanged.connect(self.valueChanged)
|
||||||
|
|
||||||
|
self.updateDatabase()
|
||||||
|
databaseUpdateSignals.songDataUpdated.connect(self.updateDatabase)
|
||||||
|
|
||||||
def setMode(self, mode: SongIdSelectorMode):
|
def setMode(self, mode: SongIdSelectorMode):
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
|||||||
score = int(scoreText)
|
score = int(scoreText)
|
||||||
|
|
||||||
self.playRatingCalculateResultLabel.setText(
|
self.playRatingCalculateResultLabel.setText(
|
||||||
f"{calculate_play_rating(chartInfo.constant / 10, score):.3f}"
|
f"{calculate_play_rating(chartInfo.constant, score):.3f}"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.resetPlayRatingCalculateResultLabel()
|
self.resetPlayRatingCalculateResultLabel()
|
||||||
|
@ -214,7 +214,7 @@ class TabTools_StepCalculator(Ui_TabTools_StepCalculator, QWidget):
|
|||||||
if score := dialog.score():
|
if score := dialog.score():
|
||||||
chart = dialog.chart()
|
chart = dialog.chart()
|
||||||
self.calculate_toStep_playResultSpinBox.setValue(
|
self.calculate_toStep_playResultSpinBox.setValue(
|
||||||
float(calculate_play_rating(chart.constant / 10, score.score))
|
float(calculate_play_rating(chart.constant, score.score))
|
||||||
)
|
)
|
||||||
dialog.close()
|
dialog.close()
|
||||||
dialog.deleteLater()
|
dialog.deleteLater()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user