Skip to content

Commit

Permalink
add battle arena special wins
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Jan 26, 2024
1 parent 80f15ab commit 156acf6
Show file tree
Hide file tree
Showing 11 changed files with 410 additions and 141 deletions.
8 changes: 8 additions & 0 deletions src/blackchocobo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ void BlackChocobo::init_connections()
connect(ui->sbSnowCrazyMsec, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbSnowCrazyMsec_valueChanged);
connect(ui->sbBikeHighScore, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbBikeHighScore_valueChanged);
connect(ui->sbBattlePoints, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbBattlePoints_valueChanged);
connect(ui->sbBattleSWins, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbBattleSWins_valueChanged);
connect(ui->sbCondorFunds, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbCondorFunds_valueChanged);
connect(ui->sbCondorWins, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbCondorWins_valueChanged);
connect(ui->sbCondorLosses, qOverload<int>(&QSpinBox::valueChanged), this, &BlackChocobo::sbCondorLosses_valueChanged);
Expand Down Expand Up @@ -1618,6 +1619,7 @@ void BlackChocobo::othersUpdate()
ui->sbSnowCrazyScore->setValue(ff7->snowboardScore(s, 2));

ui->sbBikeHighScore->setValue(ff7->bikeHighScore(s));
ui->sbBattleSWins->setValue(ff7->specialBattleWins(s));
ui->sbBattlePoints->setValue(ff7->battlePoints(s));
ui->cbFlashbackPiano->setChecked(ff7->playedPianoOnFlashback(s));
load = false;
Expand Down Expand Up @@ -3904,6 +3906,12 @@ void BlackChocobo::sbBattlePoints_valueChanged(int arg1)
ff7->setBattlePoints(s, quint16(arg1));
}

void BlackChocobo::sbBattleSWins_valueChanged(int arg1)
{
if (!load)
ff7->setSpecialBattleWins(s, quint8(arg1));
}

void BlackChocobo::comboHexEditor_currentIndexChanged(int index)
{
hexTabUpdate(index);
Expand Down
1 change: 1 addition & 0 deletions src/blackchocobo.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ private slots://try to keep these in the same order as the .cpp file
void sbSnowCrazyMsec_valueChanged(int value);
void sbBikeHighScore_valueChanged(int arg1);
void sbBattlePoints_valueChanged(int arg1);
void sbBattleSWins_valueChanged(int arg1);

void phsList_box_allowed_toggled(int row, bool checked);
void phsList_box_visible_toggled(int row, bool checked);
Expand Down
Loading

0 comments on commit 156acf6

Please sign in to comment.