The stadium and its surroundings as two fixed views; the surroundings in detail

The camera no longer flies: the stadium view shows stands and facilities, the
surroundings view the fourteen objects of the periphery, each in a shape of its own
(road, bus stop, tram and station by level; parking lots with bays and cars; shopping
centre, arcade, club house, restaurant, snack bars, fan shops in the club's colour).
A part is chosen in the picture or from a list and shown on a card that leads to the
builder's offer. The painted panorama is no longer used.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 01:20:39 +01:00
1 parent 20e7497f67
commit 6e3475493f
5 files changed
+274 -98

No files matched your search

+3 -10
View File
@@ -29,19 +29,12 @@ void App::sync_stadium_draft() {
// only the picture is drawn anew; reduced motion jumps.
bool App::stadium_focus_action(const std::string &action,Rml::Element *target) {
if(action!="stadium-focus"||!target)return false;
if(stadium_flying_)return true;
// the camera stands still: a click only chooses the part (the screen drops a part that
// does not belong to its view)
const auto next=std::string(target->GetAttribute<Rml::String>("data-id",""));
if(next==stadium_focus_)return true;
stadium_view_defaults(stadium_view_);
const auto overview=stadium_overview(stadium_view_.at("future").get<bool>());
if(!overview.value("ok",false))return true;
const auto scene=stadium3d::build(overview,"#3d6f8f",theme_=="silver");
if(!next.empty()&&next!="stadium"&&!scene.centres.contains(next))return true;
stadium_camera_from_=stadium_camera_;stadium_camera_to_=stadium3d::camera_for(scene,next);
stadium_flying_=false;
stadium_focus_=next;
const bool calm=ui_preferences_.is_object()&&ui_preferences_.contains("display")&&ui_preferences_.at("display").value("motion","full")=="reduced";
stadium_flying_=!calm&&config_.commands.empty();
stadium_flight_start_=SDL_GetTicks64();
focus_after_render_=next.find(':')!=std::string::npos?"stadium-card-build":"";
refresh();
return true;