On Thu, 29 Sep 2011 19:33:16 +1000 David Seikel <onef...@gmail.com>
wrote:

> OK, lua2 has no text part support, and that's what I needed.  So I
> went with embryo.  More about that below, but first the important
> part of this post.  For a later project, I'll really need lua in EFL,
> but for this one, the embryo stuff works.  I did want to get stuck
> into lua2 with this project though, just as a warm up to that later
> one.
> 
> I spent part of yesterday going over edje's internals, to figure out
> what I don't know, and how much work it might be to implement lua2
> text part support.  I might be able to implement text parts in lua2,
> at least enough to satisfy my own needs.  After writing the first few
> bits of lua2 stuff, lots of the rest are likely to be trivial boiler
> plate code. Just gotta get my head around it and get up to speed.

Spent some more time going over the edje internals today.

From what I understand, lua can only be used in script only groups.
Script only groups don't have parts.  The script is supposed to create
them.  The original description of script only was that you would either
create your own parts, or could import them somehow from some other
group in the edje file.  I'm not seeing any signs of that being
possible in embryo, and current lua only creates rectangles.  No sign
anywhere of the import ability. 

I only have one rect in my edje, it's the black background.  lol 

But ... the stuff you create in lua is not hooked up to the edje
geometry stuff.  You gotta deal with resizing your parts relative to
each other yourself.  Which sucks.

Basically, starting to look to me like the script only stuff was not
really implemented enough to be useful, which cripples lua coz it's
limited to script only and rectangles.  sigh 

I've restructured my edje so that there is a separate group with just
embryo scripts in it.  This group does not do any part manipulation, it
just sends signals to the group with the parts.  Next I can translate
that group to a script only lua script.  That will at least get me
started with lua.

I could start to implement lua importing and colour class manipulation,
as that is what I'll need right now.  Unless my client is suddenly in a
hurry, then I'll just go with what I got so far.  Come back to it later
to be ready for the big lua project I have planned.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to