Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3248 closed defect (fixed)

[PATCH] Find idle trade carts with hotkey

Reported by: elexis Owned by: trompetin17
Priority: Should Have Milestone: Alpha 19
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

Sometimes your trade carts become idle, for example if a market is destroyed. But if you already have many trade carts on multiple trade routes, then you have a hard time finding those idle trade carts. Even if you find them easily, you might have a hard time selecting all of them, since you need to select them individually and try not to select non-idle trade carts.

While you can see the number of idle trade carts in the trade menu, there is no way to find them except looking over all trade routes you ever had and all places where you have evacuated your trade carts to.

A good way to fix it would be to find idle trade carts with the idle worker hotkey too.

If one keeps that idle worker hotkey pressed while holding the shift key at the same time, all idle trade carts would be selected.

Attachments (1)

t3248_idle_trade_cart.patch (1.3 KB ) - added by elexis 9 years ago.
Typo fun.

Download all attachments as: .zip

Change History (5)

comment:1 by elexis, 9 years ago

As binaries/data/mods/public/gui/session/minimap_panel.xml indicates, the idle worker hotkey should already lead to idle trade carts:

<action on="Press">findIdleUnit(["Female", "Trade", "FishingBoat", "CitizenSoldier", "Healer"]);</action>

If you spawn an idle trade cart, it won't be found with that button though, despite their UnitAI state being INDIVIDUAL.IDLE and isIdle is true for that entity.

by elexis, 9 years ago

Attachment: t3248_idle_trade_cart.patch added

Typo fun.

comment:2 by elexis, 9 years ago

Keywords: patch review added
Milestone: BacklogAlpha 19
Priority: Nice to HaveShould Have
Summary: Find idle trade carts with hotkey[PATCH] Find idle trade carts with hotkey
Type: enhancementdefect

comment:3 by trompetin17, 9 years ago

Owner: set to trompetin17
Resolution: fixed
Status: newclosed

In 16654:

Fixes #3248, patch by elexis

comment:4 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.