<br><br><div class="gmail_quote">2009/5/28 Mauricio Piacentini <span dir="ltr"><<a href="mailto:piacentini@kde.org">piacentini@kde.org</a>></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 <<a href="mailto:nielsslot@gmail.com">nielsslot@gmail.com</a>> wrote:<br>
>> 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)...<br>
><br>
> Not sure which groundwork you're referring to. I did some work on allowing<br>
> multiple turtles to exist, but that wasn't directly related to different<br>
> sprites. Starting with the KTurtle version in KDE 4.0, it hasn't been hard<br>
> 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>
> I think we should ultimately try to have some sort of packaged option. I<br>
> hope we can reuse some of the code used in Plasma for their packages. A<br>
> KTurtle program would then consist of the script, and all the SVG files and<br>
> other resources (sounds, backgrounds anyone?) required by the program.<br>
><br>
> This approach should also work great in combination with GHNS as Anne-Marie<br>
> suggested in another mail. We could maybe also use GHNS for these SVG files<br>
> themselves. This way a user would be able to use GHNS to make his KTurtle<br>
> program look nicer by just clicking on the 'Download more sprites' 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 "File -> Download example.." or a "File -> Download sprite..". <br><br>The thing I'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>
>> settheme "myfile.svg"<br>
><br>
> Putting a filename in a KTurtle command seems wrong to me. I think it would<br>
> be better to change the sprite by a more human name. Ideally this would be a<br>
> translated name for the sprite or theme. For example, in the English version<br>
> a 'settheme "hedgehog"' command would be possible. The Dutch version would<br>
> have the command 'zetthema "egel"' ('egel' being the Dutch word for<br>
> 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 "Egyptian"<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 "Egyptian"<br>
setsprite 1, "Pharaoh"<br>
setsprite 2, "Crocodile"<br>
setbackground "Sand"<br>
... and make them run into each other :)</blockquote><div><br>I was kinda hoping that you'd bring this up. I've implemented a KGameThemeSelector for Magazynier a while back. I noticed how the theme's are handled in the games. I think the solution could also work for KTurtle. <br>
<br>I'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'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>