• Welcome to TodayPlus Boards v2.
 

How to build a new skin.....

Started by bernd1002, December 08, 2003, 08:18:24 PM

Previous topic - Next topic

bernd1002

Hi,
for a better understanding of the skins I try to build my own. I don't want to copy another skin and make some changes... I want understand how it works...

Now I have a problem with the second region, it dissapears after a second and I don't know why.....

Thanks for your help
Bernd


Here is my code:

maxheight,300
height,200

initregion,0,0
initregion,1,0

offset,0,0

//==========================
// REGION 0
//==========================

region,0,0,-1
 defregion,0,0,0,240,50,1
 draw,roundrect,0,0,220,40,255_0_0,h
 offsetadd,0,55
endregion,0,0


//==========================
// REGION 1
//==========================

region,1,0,-1
 defregion,1,0,0,240,50,1
 draw,roundrect,0,0,220,40,255_255_0,h
endregion,1,0

jhollin1138

I loaded your "test" onto my PPC.  After 2 min, still have a "redish" and "yellowish" box.  Which version of TodayPlus are you running?

Edit: Ok, the "yellowish" box disappeared after I left my Today screen and it was gone.
Jim H

srs

well after the second region you don't increase the offsets so the height of the plugin is calculated to be 55 pixels.

either add an offsetadd at the end or offset,0,110 at the end.

bernd1002

@jhoolin1138: I'm working with version 0.10.2

@srs: Fine in works...  So it is not enough to specifie the high of the plugin with the "height" command?