<div dir="ltr"><div><div><div>Oh! Right! All the slices will need attention for negative sizes. But I will start with RectSlice.<br><br></div>The LineSlice project and the A* Pathfinding project are actually totally unconnected. The idea of using lines to display path debugging info did cross my mind, but I discarded it quickly.<br><br></div>For debugging, fuzzy rects with numbers with numbers will easier and more useful.<br><br></div>For in-game display, it would be vastly easier and better to come up with a sprite-based solution. I don't expect to try adding anything like that as a built-in feature before whenever plotscripting gains support for arrays.<br><br><br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 11:15 AM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Here I am going to talk out LineSlice before I actually start implementing it<br><br></div>I think I have a pretty realistic chance of having time to do it sometime soon.<br><br></div>I'm going to go with a simple slice.<br><br></div>It will draw a line from corner to corner<br><br></div>I figure I can have a toggle for whether it draws from 0,0 <-> width,height or 0, height <-> width,0<br><br></div>I plan to also test it will negative width and height, although I think we have an unresolved issue of inside-out-slices sizes being off-by-one, and we have to decided how to resolve that.<br><br></div>I would like to be able to do horizontal lines without having to care if height is 1 or 0, and vertical lines without caring if width is 1 or 0.<br><br></div>Should there be a toggle for making zero-width / zero height lineslices invisible?<br><br></div>I will definitely be implementing convenience functions to set a line's position relative to screen points on other slices.<br><br></div>I also really like the idea of being able to adjust line thickness, but I don't know the best way to go about that, especially regarding corners.<br><br></div>Maybe we need some kind of function allmodex function to paint a thick line... maybe even a styled line using a 1xwidth sprite?<br><br></div>I am not worried about thick lines or styled lines in the first implementation, I just want to think about it enough to avoid any blunders that would make adding those later more difficult.<br></div>
</blockquote></div><br></div>