344d18a5d1
draw the scrap of a debris card as an icon, not a word
...
The debris card's row now reads "Remaining" with the amount and the bare
scrap icon after it, and the count summary's indented sub-row states its
total the same way; both fall back to naming the item in words when no
scrap icon file exists.
StatRow gained the value-plus-icon form: a label draws either text or a
pixmap, so the two are composed into one via renderCaptionWithIcon, with
the color passed in because a pixmap does not follow the palette. That
also closes a gap in the building multi-selection, whose "Total cost" was
specified to carry the building_block icon and showed the bare number.
ItemIconCache::getInlineIcon() packages the sizing rule of the bare inline
icon. It sits on the cache rather than in IconCaption so StatRow keeps
pulling in nothing but the caption helper: StatRow.cpp is compiled into
DotaFactory_balancing, which links neither the ui library nor QtSvg, and
that target now compiles IconCaption.cpp along with it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01Ne3mejABZoLWKLh8fgpM3x
2026-08-12 10:14:04 +02:00
bd8fe5157e
add border around recipes where several of them stack
2026-08-12 08:30:10 +02:00
a3fddf63cc
give a recipe line its own row for its identity
2026-08-11 22:07:15 +02:00
f255224ccd
show recipes visually instead of describing them in text
2026-08-11 21:47:35 +02:00
3274df91d4
open selection panel modals on the panel
2026-08-11 21:21:12 +02:00
d1da4b2937
color item icon backgrounds in the UI from visuals.toml
2026-08-11 21:18:52 +02:00
37378e3c1b
allow to move the selection panel via mouse drag
2026-08-09 22:09:41 +02:00
5794a51c9a
draw boxes around item icons
2026-08-09 21:20:47 +02:00
09858f4b62
keep an auto-recipe building's summary between its cycles
2026-08-09 20:41:48 +02:00
ca49b9dbec
let the world renderer hold the simulation by const reference
2026-08-09 20:37:15 +02:00
79650ae211
make EntityAdmin::hasAll const
2026-08-09 20:37:09 +02:00
c0b009c548
place the selection panel beside what it describes
2026-08-09 20:36:58 +02:00
7ae5f8c4dc
fix selection panel contents
2026-08-07 22:01:10 +02:00
9f574fa05e
fix issue where the selection panel sometimes collapses to very small size
2026-08-07 21:17:53 +02:00
0b8f5eccd6
scroll the controls panel's rows instead of clipping them
2026-08-07 20:42:56 +02:00
40415e663b
put the controls panel in the corner and let it step around the build bar
2026-08-07 20:42:41 +02:00
7a098edf72
mark the exit row of the controls panel red on its chips instead of its label
2026-08-07 19:52:51 +02:00
365641feb7
size the controls panel to the rows it is actually showing
2026-08-07 19:38:10 +02:00
cab7244b00
divide the always-available rows in the General context too
2026-08-07 19:10:04 +02:00
980fad272f
show the available controls in a panel over the world
2026-08-07 18:48:01 +02:00
68a43a7d98
resolve mouse gestures through the action table too
2026-08-07 18:47:43 +02:00
1f754de431
resolve keyboard shortcuts through one action table instead of a switch
2026-08-07 18:47:29 +02:00
075e44d295
give the selection cards their own parts instead of label blobs
2026-08-07 18:43:23 +02:00
2289277e12
split the selection panel into one card per kind of selection
2026-08-07 18:38:55 +02:00
603f8063e9
float the selection panel over the game world instead of a side column
2026-08-06 22:06:42 +02:00
3b37b0ecf8
target single-building transfers by hovering, not by footprint coincidence
2026-08-06 20:31:51 +02:00
98deab932a
let any blueprint transfer configuration, not just single-building ones (if the orientation matches)
2026-08-06 20:29:20 +02:00
08d8b0dd90
re-cover copy-settings through single-building blueprints
2026-08-06 19:44:55 +02:00
9a3b6c10d6
fix bug where selecting the same layout for a shipyard discarded the current progress and buffers
2026-08-06 19:18:45 +02:00
cd31af2611
remove the Shift copy-building-settings gesture
2026-08-06 19:09:11 +02:00
fd6a7c5815
rekey the temporary blueprint to C, add V to re-place it
2026-08-06 19:07:13 +02:00
18cfe238f6
move blueprints out of the sidebar into Ctrl+C / Ctrl+V dialogs
2026-08-06 19:03:59 +02:00
c1af58d80c
float the build buttons as a horizontal bar over the game world and show key bindings inside build buttons
2026-08-06 08:28:40 +02:00
f39fe9a118
move the debug stats panel out of the renderer
2026-08-05 22:14:55 +02:00
e5dcb9de5f
extract WorldRenderer
2026-08-05 22:14:55 +02:00
dc83add5c6
move two placement queries out of the view into PlacementRules
2026-08-05 22:14:54 +02:00
3a1951559d
share the world shapes both views (game and balancing) draw identically
2026-08-05 22:14:54 +02:00
26d7448492
extract BuildModeController, fixing a silent blueprint exit
2026-08-05 22:14:54 +02:00
202f583067
extract SelectionController
2026-08-05 22:14:54 +02:00
d5ab44b9bf
move the remaining hotkeys into the InputMapper
2026-08-05 22:14:53 +02:00
bb1ffab8fc
fix a bug where view continues to pan when window lost focus while panning
2026-08-05 22:14:53 +02:00
e1445fe508
move the already-event-driven hotkeys into the InputMapper
2026-08-05 22:14:53 +02:00
caa810f66d
move pan input into an InputMapper
2026-08-05 22:14:53 +02:00
f6df95abb2
extract the scroll position into WorldCamera
2026-08-05 22:14:52 +02:00
fa9dbd62ad
use WorldCoordinates in ArenaView too
2026-08-05 22:14:52 +02:00
2af09d9eb1
extract the world<->widget transform into WorldCoordinates
2026-08-05 22:14:52 +02:00
949937d2c2
re-use PlacementFixture in BuildingTests
2026-08-05 07:53:08 +02:00
4c166bf47f
depend on the registry instead of DebrisSystem in the AI path
2026-08-05 07:25:59 +02:00
60260540cd
make deconstruction its own system
2026-08-05 07:10:46 +02:00
1f4503176b
make construction its own system (extracted from BuildingSystem)
2026-08-05 06:57:12 +02:00