Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add special wins #72

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
pull_request:
branches: [ master ]
env:
QtVersion: 6.6.0
QtKey: "6.6.0"
QtVersion: 6.6.1
QtKey: "6.6.1"
PackageGLOB: "Black_Chocobo-*.*"
BuildType: Release
cmakeConfigure: "cmake -S. -Bbuild -DQT_DEFAULT_MAJOR_VERSION=6 -DCMAKE_BUILD_TYPE=Release"
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
, debArch: amd64
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
Expand All @@ -60,9 +60,9 @@ jobs:
cmake --build build
cpack -G DEB -C ${{env.BuildType}} --config build/CPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debian-artifacts
name: debian-artifacts-${{ matrix.config.name }}
path: blackchocobo*.deb
main_build:
name: ${{ matrix.config.name }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
run: |
echo "BCVersion=${{ needs.precheck.outputs.version }}" >> $GITHUB_ENV

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
Expand All @@ -118,7 +118,7 @@ jobs:
arch: ${{matrix.config.WIN_ARCH}}

- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v3.3.0
with:
dir: ${{matrix.config.QT_INST_DIR}}
version: ${{ env.QtVersion }}
Expand All @@ -130,7 +130,7 @@ jobs:

- name: Cache ff7tk
id: cache-ff7tk
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ matrix.config.ff7tkPrefix }}
key: ${{ runner.os }}${{ matrix.config.WIN_ARCH }}-Qt${{env.QtVersion}}-ff7tk-${{ hashFiles( 'ff7tk*') }}
Expand Down Expand Up @@ -172,8 +172,9 @@ jobs:
--plugin=qt

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{matrix.config.name}}
path: |
${{github.workspace}}/${{env.PackageGLOB}}
${{github.workspace}}/blackchocobo[-_]*.*
Expand All @@ -197,11 +198,11 @@ jobs:
, debArch: armhf
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
- uses: uraimo/run-on-arch-action@v2.3.0
- uses: uraimo/run-on-arch-action@v2.6.0
name: Build artifact
with:
arch: ${{ matrix.config.arch }}
Expand All @@ -222,39 +223,39 @@ jobs:
cmake --build build --config ${{env.BuildType}} --target package
cpack -G DEB -C ${{env.BuildType}} --config build/CPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: container-artifact
name: container-artifact-${{matrix.config.name}}-${{matrix.config.arch}}
path: |
build/Black_Chocobo[-_]*.*
build/blackchocobo[-_]*.*
blackchocobo*.deb
release_assets:
name: Release
needs: [main_Build, container_build, deb_builder]
needs: [main_build, container_build, deb_builder]
runs-on: ubuntu-latest
steps:
- name: Download Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Deploy Continuous
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.DEPLOYTOKEN }}"
automatic_release_tag: "continuous"
prerelease: false
title: "Continuous Build"
files: |
artifact/*
container-artifact/*
debian-artifacts/*
artifact-*/*
container-artifact-*/*
debian-artifacts-*/*
- name: Deploy Release
if: contains(github.ref, 'tags/v')
uses: marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.DEPLOYTOKEN }}"
prerelease: false
files: |
artifact/*
container-artifact/*
debian-artifacts/*
artifact-*/*
container-artifact-*/*
debian-artifacts-*/*
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
Loading