davidlallen
Deity
There are action buttons such as the recon mission. When you click the button, a radius is displayed as an overlay, and you can click to select any highlighted square. Then an action runs based on the square you clicked.
I want to add an action which is similar, except the user can click *anywhere* on the map. I can add the action button fine. But, what python can I write to let the user select a plot anywhere, and then return me the x,y location?
The idea is to allow a satellite recon mission, which can happen anywhere on the map. I'd rather not use an overlay with an absurdly high range (50?) but if the only way is with an overlay, that is better than nothing.
This is for Dune Wars, which is based on RevDCM and WOC lite, in case those packages provide some related code I can use.
I want to add an action which is similar, except the user can click *anywhere* on the map. I can add the action button fine. But, what python can I write to let the user select a plot anywhere, and then return me the x,y location?
The idea is to allow a satellite recon mission, which can happen anywhere on the map. I'd rather not use an overlay with an absurdly high range (50?) but if the only way is with an overlay, that is better than nothing.
This is for Dune Wars, which is based on RevDCM and WOC lite, in case those packages provide some related code I can use.