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
@@ -54,6 +54,9 @@ public:
|
||||
Image render() const;
|
||||
TrainingRequest click(int x, int y, bool right = false);
|
||||
TrainingRequest key(std::string_view key);
|
||||
// Original FUN_00049399: while the pointer rests on a player's row of the training list, the
|
||||
// seven skill bars (T S S P Z F E) at the bottom show that player's skills; leaving it clears them.
|
||||
bool move(int x, int y);
|
||||
// Opening an uninitialized original screen invokes Initialize. This
|
||||
// explicit request must be serviced by an engine adapter, never by render().
|
||||
TrainingRequest initialize();
|
||||
@@ -73,6 +76,7 @@ private:
|
||||
std::optional<TrainingRequest> pending_;
|
||||
bool close_requested_ = false;
|
||||
std::string last_rejection_;
|
||||
std::optional<int> hovered_row_;
|
||||
void text(Image&, int x, int baseline, std::string_view, uint8_t color, int right = -1, bool shadow = true) const;
|
||||
void sprite_text(Image&, int x, int baseline, std::string_view, int font) const;
|
||||
void button(Image&, int x, int y, int width, int height, std::string_view, bool active) const;
|
||||
|
||||
Reference in new issue
Block a user