<br><br><div class="gmail_quote">2009/5/28 Mauricio Piacentini <span dir="ltr">&lt;<a href="mailto:piacentini@kde.org">piacentini@kde.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, May 28, 2009 at 11:14 AM, RalfGesellensetter &lt;<a href="mailto:rgx@gmx.de">rgx@gmx.de</a>&gt; wrote:<br>
&gt; On Mittwoch 27 Mai 2009 23:11:26 Niels Slot wrote:<br>
&gt;&gt; I can imagine that this isn&#39;t the most convient way to change the sprite.<br>
&gt;&gt; Implementing a &#39;changesprite&#39; command wouldn&#39;t be very difficult. If there<br>
&gt;&gt; is demand for such a feature, I might consider putting it into KTurtle.<br>
&gt;<br>
&gt; Hi Niels, and thanks for clarifying!<br>
<br>
</div>There was a proposal to add multiple sprites and the ability to change<br>
the sprite visual. I believe it is not that difficult code-wise, and<br>
Niels have laid the groundwork for it already. It is just that not<br>
much happened between 4.2 and 4.3 (our fault)...</blockquote><div><br>Not sure which groundwork you&#39;re referring to. I did some work on allowing multiple turtles to exist, but that wasn&#39;t directly related to different sprites. Starting with the KTurtle version in KDE 4.0, it hasn&#39;t been hard to change the sprite file, since KTurtle uses SVG.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="im"><br>
&gt; Let&#39;s discuss what is more useful:<br>
&gt; - letting users fiddle around with local versions of a turtle (or robot or<br>
&gt;  hedgehog or whatsoever)<br>
&gt; - providing a theme/skin feature that allows to chose out from 3-4 sensible<br>
&gt;  themes (as done in khangman or ktuberling). Those themes could be extended<br>
&gt;  (or not).<br>
&gt;<br>
&gt; At the moment I&#39;d slightly prefer the second option (which is of course harder<br>
</div>&gt; to implement and) ...<br>
<br>
It is not that much harder. The main problem (as I see it) is that it<br>
makes scripts dependable upon the presence of resources. So we have to<br>
provide the option of failing gracefully if a given asset (svg element<br>
id or file) is not present. Another option could be to &quot;bundle&quot; the<br>
non-default SVG with the scripts, if KTurtle detects that a<br>
non-default one is being used.<br>
For simplicity, I think we can add a set of sprites as you suggested<br>
(hedgehog, robot, turtle, bird) to the default theme. And then let<br>
people select a new one as well, with something like</blockquote><div><br>I think we should ultimately try to have some sort of packaged option. I hope we can reuse some of the code used in Plasma for their packages. A KTurtle program would then consist of the script, and all the SVG files and other resources (sounds, backgrounds anyone?) required by the program.<br>
<br>This approach should also work great in combination with GHNS as Anne-Marie suggested in another mail. We could maybe also use GHNS for these SVG files themselves. This way a user would be able to use GHNS to make his KTurtle program look nicer by just clicking on the &#39;Download more sprites&#39; button.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
settheme &quot;myfile.svg&quot;</blockquote><div><br>Putting a filename in a KTurtle command seems wrong to me. I think it would be better to change the sprite by a more human name. Ideally this would be a translated name for the sprite or theme. For example, in the English version a &#39;settheme &quot;hedgehog&quot;&#39; command would be possible. The Dutch version would have the command &#39;zetthema &quot;egel&quot;&#39; (&#39;egel&#39; being the Dutch word for hedgehog).<br>
<br><br>Niels<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Regards,<br>
<font color="#888888">Mauricio Piacentini<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
kde-edu mailing list<br>
<a href="mailto:kde-edu@mail.kde.org">kde-edu@mail.kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-edu" target="_blank">https://mail.kde.org/mailman/listinfo/kde-edu</a><br>
</div></div></blockquote></div><br>