LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
285 stars 158 forks source link

show remaining movement points when planning a path #11049

Closed ilteroi closed 3 months ago

ilteroi commented 3 months ago

the UI currently only shows the number of turns but not the remaining movement points.

image

for skirmisher units in particular it would be nice to know if they have enough movement left to attack/retreat. CvDllGameContext::TEMPCalculatePathFinderUpdates(...) returns a list of plots for a path and they have an attribute iTurnNumber.

can we maybe abuse this to return the remaining movement points? obviously for multi-turn paths the behavior needs to be specific but could do something like (turns<<10 + pointsleft).

can some lua guru take a look on how this could be shown in the UI?

n-core commented 3 months ago

I assume something like this?

<2 2/4 •>

I'm unsure which UI file is responsible for showing that.

axatin commented 3 months ago

Screenshot (647)

n-core commented 3 months ago

add the movement icon next to the move points might be a good idea

axatin commented 3 months ago

you're right, added it