Drawing a line via right click, with a single unit selected: everything looks ok.
Multiple units selected: the lines and distances between them get very long, almost not visible.
blue line = the path i dragged mouse in both pictures
I thought its a new bug in 93 but looks the same in 91. Or is it some setting? In xta the spacing is normal.
custom formations lines do not look right (stipples spacing)
Moderator: Content Developer
Re: custom formations lines do not look right (stipples spac
The implementation of the varying line spacing (stipple) is... not good.
Code: Select all
local _,zoomY = GetCameraPosition()
zoomY = zoomY/470 --magic number with 20 units its 27 stipp with 30 its 39
local lineStipple = lineLength/((GetSelectedUnitsCount()-1)*zoomY)
--TODO fix the pattern and rest of math -so that always starts with half line and ends with half line
DrawFormationLines(tVerts, lineStipple)
- Based on camera height which by itself doesn't have any relation to how the line will appear
- Magic numbers...
- ... with incorrect comments
- GetSelectedUnitsCount multiplied by the camera height...
- Note about fixing parts of the commit, but no fixes in following 6 months
Re: custom formations lines do not look right (stipples spac
yes, good points.
The widgets in 0k & xta seem different (did not look in detail for but example no uses of camera height etc) and work good, so I suggest just taking one of those.
The widgets in 0k & xta seem different (did not look in detail for but example no uses of camera height etc) and work good, so I suggest just taking one of those.
-
- Posts: 24
- Joined: 27 Nov 2011, 10:38
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23