psparky
King
- Joined
- Feb 24, 2011
- Messages
- 624
I'm building myself a simple UI mod to help with city planning. I've looked at a few existing mods but they are overkill for what I need and may have compatibility issues with other mods I use. I've got it mostly working, but would like to improve the interface. The code is in LUA and I'm just adding it to my tweaked version of EUI.
Currently, I'm using a hotkey to trigger the action and then detecting the current mouse location to determine which plot to act on (so you move the mouse where you want a city to be and then hit the hotkey). It would be more natural if I could use a middle mouse button click to trigger the action. I'm thinking the only way to do this would be to attach my handler to every plot. Would that be expensive in terms of CPU or memory or not a problem? Or is there a better way to do it?
Thanks for any help/thoughts.
Currently, I'm using a hotkey to trigger the action and then detecting the current mouse location to determine which plot to act on (so you move the mouse where you want a city to be and then hit the hotkey). It would be more natural if I could use a middle mouse button click to trigger the action. I'm thinking the only way to do this would be to attach my handler to every plot. Would that be expensive in terms of CPU or memory or not a problem? Or is there a better way to do it?
Thanks for any help/thoughts.