• Welcome to TodayPlus Boards v2.
 

Floating region

Started by MadTxn, December 30, 2003, 11:24:28 AM

Previous topic - Next topic

MadTxn

I am trying to have my weather region "float" over my other regions, much like the FILTERS section in the default slider skin.  Here's what I have:


It more or less works, but I have a couple of problems...

1.  When the regions underneath (meaning z-index, not y-index) refresh, they overwrite the weather region.  How do I stop that?

2.  I use a deactivate buttons command to stop the lower regions from being activated when I click in the weather region, but how do I reactivate them once I close the weather?

Thanks in advance.

srs

looking nice :)

Quote1. When the regions underneath (meaning z-index, not y-index) refresh, they overwrite the weather region. How do I stop that?

I can think of two things.

1.  enclose the regions underneath within if statements, so that they won't be updated when the weather region is active.



if,region,1,0 (weather region active)
else
   region,2,0,10 (regions underneath...)
   endregion,2,0
endif



2.  when a region underneath refreshes, also refresh the weather region.  Note, that this would require the weather region to be below (physically in the skin txt) the regions underneath as the updateregions command only works on subsequent lines.



region2,0,10
if,region,1,0  (if weather region is active)
   updateregions,1  (update the weather region)
else
endif

region,1,0,-1  (weather region)
endregion,1,0



hope this helps.


- edit, one thought occurs to me to maybe enhance the look of the of the floating weather region... instead of having a solid purple background, you could have an partially transparent png, allowing a bit of the background to show through.

srs

and I forgot about the second question too...

Quote2. I use a deactivate buttons command to stop the lower regions from being activated when I click in the weather region, but how do I reactivate them once I close the weather?

use the activatebuttons command (works exactly the same as the deactivatebuttons command).

MadTxn

Quote from: srslooking nice :)

thanks ;)

Quote
1.  enclose the regions underneath within if statements, so that they won't be updated when the weather region is active.



if,region,1,0 (weather region active)
else
   region,2,0,10 (regions underneath...)
   endregion,2,0
endif



I think I'll do that

Quote
- edit, one thought occurs to me to maybe enhance the look of the of the floating weather region... instead of having a solid purple background, you could have an partially transparent png, allowing a bit of the background to show through.

That was the original plan, but then I started using a bunch of "draw,roundrect" to break up the region.


Once I get everything the way I want it, I'll probably spend some time in PhotoShop to pretty everything up.  I still have to work on my RSS section, but if I get this working, that should be cake.  Chocolate cake... with chocolate icing... mmm...

edit:
Quote
use the activatebuttons command (works exactly the same as the deactivatebuttons command).

where do I put this?  If I put it in the weather region, won't it just keep the buttons active? Or do I need to make a new invisible region?

srs

If you are going to go with a partially transparent background, then I think the second method would be better, because it would allow the meters underneath to update and display the correct information, even with the weather region active.  If its a solid background the first method will be better as it will take less time to update.

You can put the activatebuttons command into the region/page thats for the inactive weather region.

so if region 1 is the weather regions (page 0 is active, and page 999 is inactive)


region,1,0,-1
deactivatebuttons,...
endregion,1,0

region,1,999,-1
activatebuttons,....
endregion,1,999

jhollin1138

Wow, that looks great!  I always amazed to see what talented people can truly do with this great program srs has written.  I look for to seeing the final version of this skin!  8)
Jim H

MadTxn

I think I'm getting the hang of this thing.  Here's my RSS section...



Now I just need to finish up the images...

joelw135

Nice, What rss are you using for the movie feeds?
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

MadTxn


Lordtwisted

madTxn could you throw my edited scrip on your server, my sever dosen't run php?

Lordtwisted :(

Eitel

I can't make the script work.  I change the theater name and the zip code and I only get errors.   :(

MadTxn

Eitel -
What errors are you getting?  First, go to http://movies.yahoo.com, find your theater, then copy the exact name and zip code to put in the "array" section.

Lordtwisted -
I'm running my PHP server from a laptop at home.  My upload is only 256K, and I already run two web servers, an FTP server, an HTTPort server, a mail server, two VNC boxes, and a Shoutcast server (music streaming).  However, I can help you if you want to setup an Apache/PHP server.  It only takes about 30 minutes. ;)

Eitel

Ok, here's my theather, and here's the php code.

Since I just want one theater, I'm just changing the "Muvico" for mine and then the first zip code for mine.

MadTxn

Well feces.  Your theater actually uses the different Dolby legend star thingies (take a look at the left side of the screen on the yahoo page).  My parsing doesn't take care of that.  I'll fix it in the morning and post a zip file.

Happy New Year

Eitel

Glad to know I wasn't crazy.  :D

Thanks a lot, and Happy New Year to you too.