<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:52 AM, Niels Slot &lt;<a href="mailto:nielsslot@gmail.com">nielsslot@gmail.com</a>&gt; wrote:<br>
&gt;&gt; There was a proposal to add multiple sprites and the ability to change<br>
&gt;&gt; the sprite visual. I believe it is not that difficult code-wise, and<br>
&gt;&gt; Niels have laid the groundwork for it already. It is just that not<br>
&gt;&gt; much happened between 4.2 and 4.3 (our fault)...<br>
&gt;<br>
&gt; Not sure which groundwork you&#39;re referring to. I did some work on allowing<br>
&gt; multiple turtles to exist, but that wasn&#39;t directly related to different<br>
&gt; sprites. Starting with the KTurtle version in KDE 4.0, it hasn&#39;t been hard<br>
&gt; to change the sprite file, since KTurtle uses SVG.<br>
<br>
</div>Yes, I was referring to the multiple sprite work. Changing the graphic<br>
is really simple compared to it. Of course, there is the issue of how<br>
to package...<br>
<div class="im"><br>
&gt; I think we should ultimately try to have some sort of packaged option. I<br>
&gt; hope we can reuse some of the code used in Plasma for their packages. A<br>
&gt; KTurtle program would then consist of the script, and all the SVG files and<br>
&gt; other resources (sounds, backgrounds anyone?) required by the program.<br>
&gt;<br>
&gt; This approach should also work great in combination with GHNS as Anne-Marie<br>
&gt; suggested in another mail. We could maybe also use GHNS for these SVG files<br>
&gt; themselves. This way a user would be able to use GHNS to make his KTurtle<br>
&gt; program look nicer by just clicking on the &#39;Download more sprites&#39; button.<br>
<br>
</div>Looks interesting. But maybe it is too complex? Not sure, if it can be<br>
made simple to the user and complex for us I am ok with it.</blockquote><div><br>I think this can be made very easy for our users. This save and open dialog should just allow users to save and open KTurtle packages.<br><br>
The GHNS dialog can be integrated nicely in KTurtle. As Anne-Marie wrote, we could have a &quot;File -&gt; Download example..&quot; or a &quot;File -&gt; Download sprite..&quot;. <br><br>The thing I&#39;m not sure about is how much work this is going to be for us. Most of the pieces seem to be used somewhere in KDE allready. With a bit of help we should be able to make use of them.<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>
<br>
&gt;&gt; settheme &quot;myfile.svg&quot;<br>
&gt;<br>
&gt; Putting a filename in a KTurtle command seems wrong to me. I think it would<br>
&gt; be better to change the sprite by a more human name. Ideally this would be a<br>
&gt; translated name for the sprite or theme. For example, in the English version<br>
&gt; a &#39;settheme &quot;hedgehog&quot;&#39; command would be possible. The Dutch version would<br>
&gt; have the command &#39;zetthema &quot;egel&quot;&#39; (&#39;egel&#39; being the Dutch word for<br>
&gt; hedgehog).<br>
<br>
</div>Have a look on how we do in the games, using the svg ids to identify<br>
the elements. We could use a translated name for the theme, for<br>
example<br>
<br>
settheme &quot;Egyptian&quot;<br>
<br>
For this to work you will have an egyptian.desktop metadescription of<br>
the theme, and this would be translated automatically by the existing<br>
infrastructure in KDE. In this .desktop file you could also list the<br>
element names. It would look like:<br>
<br>
Name=Egyptian<br>
Turtle=Turtle<br>
Propertyn=avalue<br>
....<br>
<br>
Scripty takes care of extracting these and exposing it to translators,<br>
and they are regenerated from the .po files. So eventually it turns<br>
into:<br>
<br>
Name=Egyptian<br>
Name[pt_BR}=Egípcio<br>
Name[nl]=xxx<br>
<br>
All you have to do in KTurtle is to get the localized string for the<br>
Name key, and it will automatically work.<br>
<br>
Notice that I would also add the ability to setsprite, not only<br>
settheme. So it could be:<br>
<br>
settheme &quot;Egyptian&quot;<br>
setsprite 1, &quot;Pharaoh&quot;<br>
setsprite 2, &quot;Crocodile&quot;<br>
setbackground &quot;Sand&quot;<br>
... and make them run into each other :)</blockquote><div><br>I was kinda hoping that you&#39;d bring this up. I&#39;ve implemented a KGameThemeSelector for Magazynier a while back. I noticed how the theme&#39;s are handled in the games. I think the solution could also work for KTurtle. <br>
<br>I&#39;m still not sure about the whole theme thing. I think just a sprite makes more sense and is easier to understand by users. <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>
Niels, I remember we discussed multiple sprites last year, but do not<br>
remember the conclusion. I have a vague recollection of Cies not being<br>
too enthusiastic about it, but not opposing it as well. Do you<br>
remember this?</blockquote><div><br>I had a quick search through my old mails, I found this e-mail from Cies: <a href="http://groups.google.com/group/kdeedu-kturtle/msg/93018e7efcd76f70">http://groups.google.com/group/kdeedu-kturtle/msg/93018e7efcd76f70</a><br>
<br>It&#39;s mostly that he likes the feature, but feels that there are more important things still missing from KTurtle. (Most notably the contextual help.) After that e-mail the discussion went kind of dead.<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>
<div><div></div><div class="h5"><br>
Regards,<br>
Mauricio Piacentini<br>
_______________________________________________<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>