<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Apr 2019 at 10:44, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Apr 2019 at 06:30, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Oh... my...goodness!</div><div><br></div><div>These are really beautiful!</div><div><br></div><div>I would love to start using these instead of fuzzyrect almost everywhere</div></div></blockquote><div><br></div><div>Yes, in general it would look better to use trans instead of fuzzy rects : )</div><div>Do beware that computing the lookup table with 256 nearcolor is currently quite slow, but I'm going to optimise that using the k-d tree implementation in lib/gif.h.<br></div><div><br></div><div>I feel like the default transparency setting (solid, fuzzy or transparent) could be defined as part of the box style. Textboxes could still override it, but have "default" as a "Translucent" setting. Replacing the current yes/no "Translucent" setting is my next task.<br></div></div></div></blockquote><div><br></div><div>Or maybe I could just skip that for now and add transparency type as a boxstyle setting instead...<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div></div><div>In future, I also want to allow more box style settings, like transparency %/fuzz factor, background gradients, and even background textures (a drawn image, similar to box borders). So it makes sense to put these settings in the box styles menu. And to allow more than 15 styles.<br></div><div><br></div><div>BTW, recall the Ctrl+3 debug key in the slice editor to switch to 32-bit mode, which enables actual-true transparency. I imagine that I'll finish 32-bit support this year.<br></div><div>The only things not supported in 32-bit mode yet are screen fades and sprite dissolves (because they use Frame masks).</div><div>The main thing I want to do first is a huge refactor to merge Frame and Surface. I do want to have a backend hardware-accelerated Surface type, but we need 32-bit image support everywhere, not just in the backends.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I did notice one odd anomaly when I was playing around with them:</div><div><br></div><div><div><img src="cid:ii_ju5twb6u0" alt="wander0011.gif" style="margin-right: 0px;" width="727" height="352"></div><div><br></div><div>In this case the rectangle is filling its parent container, and the parent container is set to clip children.</div><div>The two sprites are children of the rectangle. When the rectangle is switched to transparent, aside from becoming gloriously beautiful, it also inhibits the clipping of the sprites<br></div></div></div></blockquote><div><br></div><div>That had me baffled for a moment, until I actually had a look at the code. Because it performs a draw onto a view Frame, that resets the global cliprect, which is associated with a particular target Frame.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 6, 2019 at 1:16 AM <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">teeemcee<br>
2019-04-05 22:16:20 -0700 (Fri, 05 Apr 2019)<br>
23<br>
Transparent rect slices<br>
---<br>
U   wip/<a href="http://common.bi" rel="noreferrer" target="_blank">common.bi</a><br>
U   wip/common.rbas<br>
U   wip/scriptcommands.bas<br>
U   wip/sliceedit.bas<br>
U   wip/whatsnew.txt<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div></div>
</blockquote></div></div>