Arkatakor
King
I am eyeballing the creation of a mini mod to allow for multiple units per tile.
While technically a simple XML tag edit allows for this, the UI does not support multiple units (of the same type) in a tile. For example if 2 warriors are in the same tile, you will not be able to pick out and choose between them as their unit icons overlap 100%. On the other hand if a military and non military unit occupy the same tile, their icons are separated, not only because their shape is different but because one unit icon is positioned slightly above the other (see screenshot).
So what I would like to do at this point is to extend the separation of unit icons for units of the same type (raise the icons above each other slightly, as in the screenshot). So in the case of multiple military units in a tile, the unit icon circles would be slightly above each other so that they would be slightly separated, thus clickable.
Where is the logic that defines where (or in this case how far above) the unit icons appear above the units? I am new to modding, however I know C++ but have never touched Lua and am not sure how it interacts with the DLL. If someone could point me in the right direction as to where the logic is that displays the placement of the unit icons (be it lua or c++), I would appreciate it very much.
Btw if anyone is aware of a mod that already does what i'm attempting to do, let me know and i'll stop dead in my tracks
While technically a simple XML tag edit allows for this, the UI does not support multiple units (of the same type) in a tile. For example if 2 warriors are in the same tile, you will not be able to pick out and choose between them as their unit icons overlap 100%. On the other hand if a military and non military unit occupy the same tile, their icons are separated, not only because their shape is different but because one unit icon is positioned slightly above the other (see screenshot).
So what I would like to do at this point is to extend the separation of unit icons for units of the same type (raise the icons above each other slightly, as in the screenshot). So in the case of multiple military units in a tile, the unit icon circles would be slightly above each other so that they would be slightly separated, thus clickable.
Where is the logic that defines where (or in this case how far above) the unit icons appear above the units? I am new to modding, however I know C++ but have never touched Lua and am not sure how it interacts with the DLL. If someone could point me in the right direction as to where the logic is that displays the placement of the unit icons (be it lua or c++), I would appreciate it very much.
Btw if anyone is aware of a mod that already does what i'm attempting to do, let me know and i'll stop dead in my tracks
