• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

On the wishlist

Started by Daan, March 17, 2005, 04:34:18 AM

Previous topic - Next topic

uk_skinner

QuoteBut as a side effect you cannot scroll in the radar pictures.
Its not clear to me why not.

Did you move the radar image or scroll from city1 to city2?

Daan

You can move from city1 to city2.

But within the picture you cannot scroll anymore.

uk_skinner

Daan:

 I see the problem.  Give me some time to find a solution.

Edit:

Daan:

  This is going to test your ability to "seek" the codes in Hammerskin.  Make a back-up, in case something goes wrong.  The new/changed codes are in red.

1. in region,3,0


             
Quote

      imagebutton,177,78,Radar.png,t,7,4,6,-1
      //button,177,78,32,32,-1,6,var3=-8,
      //button,177,78,32,32,-1,6,var23=18,
               button,177,78,32,32,-1,6,var2=1,

      button,177,78,32,32,-1,6,var25=0,
      button,177,78,32,32,3,4,999
      button,177,78,32,32,1,4,999

2 in region,7,6

   
Quoteload,city,%var9%

      if,var,var2,,=,1
          calcvar,var26,fromconfig,xpos%var9%
          calcvar,var27,fromconfig,ypos%var9%
          storevar,var3=%var26%
          storevar,var23=%var27%
          storevar,var2=0
       else
       endif


       

  image,%var3%,%var23%,%var9%.png
  image,%var3%,%var23%,%var9%.jpg
  image,%var3%,%var23%,%var9%.gif


3 near the bottom of region,7,6

       
Quoteimagebutton,153,236,Kalenderpfeil_rechts.png,t,7,13,var9_1,7
       button,153,236,70,12,-1,6,var2=1,7
   //button,153,236,70,12,-1,6,var3=-8,7  //Reset Image Position
   //button,153,236,70,12,-1,6,var23=18,7  //Reset Image Position


   imagebutton,17,236,Kalenderpfeil_links.png,t,7,13,var9_-1,7
      button,17,236,70,12,-1,6,var2=1,7
   //button,17,236,70,12,-1,6,var3=-8,7  //Reset Image Position
   //button,17,236,70,12,-1,6,var23=18,7  //Reset Image Position

Sorry, I did not test these codes.  Try it .  :wink:

Daan

Quote from: uk_skinnerDaan:

 I see the problem.  Give me some time to find a solution.

Edit:

Daan:

  This is going to test your ability to "seek" the codes in Hammerskin.  

I'm not that stupid. Maybe it seems a bit like it ...  :oops:  :D  :wink:

But i'm quit capable .. at least i think i am. (In version 9.8 I did wright my own skin)  :wink:

Tested it! The code I mean.
I'm sorry. Picture loads.
But scrolling means disappearing of the skin  :(  :(
Only reload makes it come back.

uk_skinner

QuoteBut i'm quit capable .. at least i think i am. (In version 9.8 I did wright my own skin)

Sorry, I just wanted to be more careful.  :wink:

QuoteBut scrolling means disappearing of the skin

That was bad... The total skin gone?

Daan

Quote from: uk_skinner

QuoteBut scrolling means disappearing of the skin

That was bad... The total skin gone?

Nope, just reload with "config", and the skin is there  :lol:

But still ... not a workable solution.

You try to recalculate var3,23 only when selecting a new picture by setting var2 on 1.

In that case I don't think we need 26,27 anymore?!

Only
if,var,var2,,=,1
       calcvar,var3,fromconfig,xpos%var9%
       calcvar,var23,fromconfig,ypos%var9%
       else
      end if


If i'm right.

But why does it crash ... :?:  :?

uk_skinner

QuoteYou try to recalculate var3,23 only when selecting a new picture by setting var2 on 1.

In that case I don't think we need 26,27 anymore?!

In fact, when scorlling/moving happened, var3 and var23 are calcualted using these codes:

imagebutton,98,236,links.png,t,-1,13,var3_50,7  //left

imagebutton,128,236,rechts.png,t,-1,13,var3_-50,7  //right

imagebutton,113,251,unten.png,t,-1,13,var23_-50,7  //down

imagebutton,113,221,oben.png,t,-1,13,var23_50,7  //up

imagebutton,128,221,rechts_oben.png,t,-1,13,var3_-50,7  //upright
button,128,221,13,13,-1,13,var23_50,7

imagebutton,98,221,links_oben.png,t,-1,13,var3_50,7  //upleft
button,98,221,13,13,-1,13,var23_50,7

imagebutton,128,251,rechts_unten.png,t,-1,13,var3_-50,7  //downright
button,128,251,13,13,-1,13,var23_-50,7

imagebutton,98,251,links_unten.png,t,-1,13,var3_50,7  //downleft
button,98,251,13,13,-1,13,var23_-50,7

imagebutton,113,236,refresh.png,t,-1,6,var3=-8,7  //Reset Image Position
button,113,236,13,13,-1,6,var23=18,7  //Reset Image Position


Supposedly the if/else/endif will only be executed when you change the city and after new var3/var23 are set, the var2 set to 0.  That prevent the var2/var23 get values from the registry key again.  The only time var will be set back to "1" is when you tap right/left arrow.  

If possible, can you just post the whole region,7,6 here, or better upload the whole skin here.  Sometimes, if you have some extra space after the codes, it will cuase unexpected effect.  This only can be examined when you have the text file.

Daan

I also tried this:
imagebutton,113,236,refresh.png,t,-1,6,var2=1,7  //Reset Image Position
       //imagebutton,113,236,refresh.png,t,-1,6,var3=%var26%,7  //Reset Image Position
//button,113,236,13,13,-1,6,var23=%var27%,7  //Reset Image Position


with the same effect as before ... crash.

Here's the skin ...

Daan

I noticed two other strange things. I updated this morning. Its friday and on my skin thursday (donderdag) still shows ...In the buffer there are only files from friday.

And after "Lucht:"  standing Haze. But I'm using the dutch forecasttext.txt Or is this in the registry too ?

Wichtel

That´s a problem with msnbc. Up to 10:00 in the Morning msnbc will show the Weatherforecast from the last day. When you sync at ~10:30 you get the weather forecast from today

Edit: the "haze" and all other information(Windirection, Windspeed ...) in this area is Branded in the City.txt and is not read from the forecast.txt
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

uk_skinner

Daan:

    I made some change to remove some extra space after some codes.  I don't know this made any difference or not but if you can try again, let me know the result.

Broesel

Thanks uk_skinner, for continue the help, had a little much work
the last days

@daan: let us know, if the solutioin from uk_skinenr helps

Regards Broesel

Daan

I actual think it works  :lol:

Testing a bit more ... still works. Works quiet well!!!  8)

What did you change?

Broesel

Quote from: DaanI actual think it works  :lol:

What did you change?

I think, as uk_skinner posted, he removed the "blank spaces" after some
lines.
When you copy code from the forum into your skin, it happens, that
there are "spaces" after some of the copied lines ant that can lead to
several problems in the skin, among other things it can cause a softreset,
like it did for you or the codelines don't work .....

Regards Broesel

uk_skinner

Quote from: Broesel
Quote from: DaanI actual think it works  :lol:

What did you change?

I think, as uk_skinner posted, he removed the "blank spaces" after some
lines.
When you copy code from the forum into your skin, it happens, that
there are "spaces" after some of the copied lines ant that can lead to
several problems in the skin, among other things it can cause a softreset,
like it did for you or the codelines don't work .....

Regards Broesel

broesel:

 I could not say better... :approve:

That exactly what I did, I found some extra space that I believed you copy/paste the code from here.  Sorry, I did not remind you for that.  :oops: