The button leaves the header bar for the world, centered on the columns the next purchase unlocks and panning with them until it leaves the view. Those columns now take a lighter tint than the locked ground behind them, so the boundary between the two says how far one purchase reaches. Nothing in the code reported a scroll: the camera knew it had moved and told only the hover. A ViewScrolledEvent says it now, which is what a widget keeping a place in the world rather than on the screen needs. The panels want none of it -- they are placed against the screen and stay put as the world moves under them -- so the button is placed after their pass and never joins the rectangles they step around. Its face is two lines, "Expand" over the cost. That makes the cost a display of its own, so it carries the building-block tooltip the way every other item value does, on hover alone since the click buys the expansion. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ne3mejABZoLWKLh8fgpM3x
65 lines
2.9 KiB
CMake
65 lines
2.9 KiB
CMake
SET(HDRS
|
|
${HDRS}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TracePrintRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TickAdvancedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BuildingBlocksChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ExpansionCostChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/EntitySelectionChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GameSpeedChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BossWaveUpdatedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SchematicChoicesAvailableEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SelectionChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SelectionAnchorChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GameOverEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GameResetEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/WinEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ArtifactCountChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/UnlockedBuildingsChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BuilderModeExitedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintModeExitedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintSaveRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintSelectionRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/EscapeMenuRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PanDirectionChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PauseToggleRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SpeedStepRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GhostRotationRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ModeCancelRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SelectionClearRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DebugDrawToggleRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeconstructModeChangedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BuildingTypeSelectedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BuildHotkeyPressedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ExitBuilderModeRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DeconstructModeToggleRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintPlacementRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ExitBlueprintModeRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TemporaryBlueprintCaptureRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TemporaryBlueprintPlaceRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SpeedChangeRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/LayoutDialogRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/RecipeSelectionRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/InspectWindowClosedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ArenaStartRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ArenaInspectRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/BeamFiredEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/DebugDrawToggledEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CommandRequestedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/FloatingLayoutInvalidatedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PlayerCommandsAppliedEvent.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ViewScrolledEvent.h
|
|
PARENT_SCOPE
|
|
)
|
|
|
|
SET(SRCS
|
|
${SRCS}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TracePrintRequestedEvent.cpp
|
|
PARENT_SCOPE
|
|
)
|
|
|
|
set(LIB_INCLUDE_PATH
|
|
${LIB_INCLUDE_PATH}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
PARENT_SCOPE
|
|
)
|