Stadium: yellow hover frame over seat blocks, investments and buildings
As on the advertising page, the target under the pointer gets a yellow frame: a finished seat block and an available investment icon on the main page, and the hit rectangle of a building in the panorama (next to its information panel). The frame appears only where a click acts. Refs #64. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
38f69fa37b
commit
81ae6ad236
3 files changed
+47
-4
No files matched your search
@@ -1121,6 +1121,22 @@ namespace {
|
||||
void source_stadium_data_controls(const std::filesystem::path& data) {
|
||||
const auto exe = load_le(asset_path(data, "BMH.exe"));
|
||||
auto state = overview_state();
|
||||
{
|
||||
// the yellow hover frame of the advertising page: over a seat block and over an investment icon
|
||||
StadiumScreen scene(data, state);
|
||||
const auto plain = scene.render().pixels;
|
||||
if (state.blocks[0].construction_weeks == 0) {
|
||||
check(scene.pointer_move(250, 30) && scene.render().pixels != plain, "a seat block is framed under the pointer");
|
||||
check(scene.pointer_move(100, 100) && scene.render().pixels == plain, "and the frame is gone when the pointer leaves");
|
||||
}
|
||||
for (int choice = 0; choice < 8 && state.investments_enabled; ++choice) {
|
||||
if (!state.investments[size_t(choice)].available) continue;
|
||||
check(scene.pointer_move(8 + (choice % 4) * 54, 158 + (choice / 4) * 30) && scene.render().pixels != plain,
|
||||
"an available investment icon is framed under the pointer");
|
||||
check(scene.pointer_move(100, 100) && scene.render().pixels == plain, "and the frame is gone when the pointer leaves");
|
||||
break;
|
||||
}
|
||||
}
|
||||
StadiumScreen overview(data, state);
|
||||
check(overview.pointer_down(265, 220), "Original stadium data button binds on DOWN");
|
||||
const auto held_overview=overview.state_json();
|
||||
|
||||
Reference in new issue
Block a user