Welcome, Guest
Please Login or Register.    Lost Password?

Details about ?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Details about ?
#14018
Details about ? 3 Years, 8 Months ago  
Can i use the <copygroup> item just like a for cycle?
I need 2 groups of 240 <image...> items and now i have those items one below the other.
Code:

<image id="copygroup.group1.item.0" element="bitmap.bitmap0" x1="0" y1="100" />
<image id="copygroup.group1.item.1" element="bitmap.bitmap0" x1="1" y1="100" />
<image id="copygroup.group1.item.2" element="bitmap.bitmap0" x1="2" y1="100" />
...



Is there a way of doing something like this:
Code:

<copygroup id="copygroup.group1" xcount="240" ycount="1">
    <image id="copygroup.group1.item" element="bitmap.bitmap0" x1="#XCOUNT#" y1="100" />
</copygroup>
-----------------------------------------------------------------------------
for i = 0, 240 do
   Rainlendar_SetItemValue(window, "copygroup.group1.item." .. i, "element", "bitmap.bitmap1")
do



I know that this could be hard to implement. So, if there is no way, forget i said this.
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#14029
Re: Details about ? 3 Years, 8 Months ago  
At the moment no because the "id" will be the same for all copies so you can access just one of them. I can see if it's possible to fix this.
Rainy
Moderator
Posts: 5949
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14034
Re: Details about ? 3 Years, 8 Months ago  
The common expression says: "if it ain't broke, don't fix it".
Just was a thought.

This is an example of what i did (and yes... i'm trying to make me some publicity ). In fact, this isn't a curve, just 480 bitmaps on the screen.


Sun and Moon daily view from Tampere, FIN.
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2010/12/21 14:14 By Jorge_Luis.Reason: Missing picture
The administrator has disabled public write access.
 
#14052
Re:Details about ? 3 Years, 8 Months ago  
Wow. I wasn't expecting that anyone would do something like that with just images . Nice work. I wonder how difficult it would be to add support for (antialiased) line/polygon drawing into Rainlendar's skins. I could do some research on this...
Rainy
Moderator
Posts: 5949
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop