Fix settings switches, training skill bars, editor placement and pointer
- Settings: every unlocked switch is stored, as in the original; the whitelist of cells with a consumer is gone (J9, O3, ... no longer refused). Locks and 0/1 / numeric limits still apply. - Training: the seven skill bars show the player row under the pointer (FUN_00049399). - Line-up: the field stays editable inside the set-piece editor while no taker kind is chosen. - Pointer: the original 11x11 bitmap is the default pointer on every page, not only on the pitch page. Refs #57, #59, #60, #62. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
04ff3b7656
commit
af634ae8ff
10 files changed
+113
-67
No files matched your search
@@ -228,6 +228,18 @@ int main(int argc, char** argv) {
|
||||
ui::CompetitionWinnerScreen competition_winner(data);
|
||||
const auto season_exe = load_le(ui::asset_path(data, "BMH.exe"));
|
||||
english_game = english_game || season_exe.u8(layout::LeagueSizes) == 20;
|
||||
{
|
||||
// The pointer of the original is its default 11x11 bitmap (index 0 transparent, hot spot
|
||||
// top left, set by the window objects' FUN_000559eb); the pitch page draws the same bitmap
|
||||
// with its own fill colour. The edition's own bitmap is used for the English version.
|
||||
std::array<uint32_t, 121> bitmap{};
|
||||
for (uint32_t i = 0; i < bitmap.size(); ++i) {
|
||||
const auto index = season_exe.u8(layout::OriginalPointerPixels + i);
|
||||
bitmap[i] = index == 0 ? 0 : palette.argb[index];
|
||||
}
|
||||
pitch_pointer.set_default(bitmap);
|
||||
pitch_pointer.show({}, renderer);
|
||||
}
|
||||
app::QuitConfirmation quit_confirmation(window, english_game);
|
||||
try {
|
||||
if (!playback.initialize_original(app::original_audio_assets(data, season_exe), audio_error))
|
||||
|
||||
Reference in new issue
Block a user