Unit Selection Popup

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
Does anyone have a function to call up a popup showing all of the units on a specific tile and be able to select more than one unit for further action? After selecting 3 units, I want to obtain attributes from each unit for modification. I can write the modification code. All I need to develop is the unit selection popup. The popup should be similar to the choose Unit to Lead popup that is available with a Great General; only it will need selection capability and an OK button to execute. Any suggestions would be appreciated.
 
It looks like it is located in the SDK. In CvDLLButtonPopup::launchLeadUnitPopup.
 
You could mimic the same code in Python, so at least you have an example that does what you need (almost).

I've wanted to add a Unit List Screen to BUG for some time that would look more like the Domestic Advisor: a multi-column table that allows sorting. It would have plenty of columns to allow you to inspect all the units on any plot you clicked. It wouldn't be so much difficult as just time consuming, and that's something I'm sorely lacking right now.
 
You could mimic the same code in Python, so at least you have an example that does what you need (almost).

I've wanted to add a Unit List Screen to BUG for some time that would look more like the Domestic Advisor: a multi-column table that allows sorting. It would have plenty of columns to allow you to inspect all the units on any plot you clicked. It wouldn't be so much difficult as just time consuming, and that's something I'm sorely lacking right now.

So.... It can be done in python. Excellent! Like you, I am swamped with work on my new Navy mod, which is soon to be released and is really cool. I will just have to bite the bullet and take the time to develop the popup. I assume that when you speak of a "multi-column table", you are refering to a list box.
 
I assume that when you speak of a "multi-column table", you are refering to a list box.

Yes, Civ4 calls that a list box. Back in "the day" a list box meant a single-column (list) box whereas multi-column ones were called tables. I guess I'm still stuck in the past in some ways. :lol:
 
Top Bottom