TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: zlhyh on December 20, 2003, 07:14:07 AM

Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 20, 2003, 07:14:07 AM
Text,23,33,[updatetime],c,HH:mmt

don't work in TodayPlus0.11.0

I just write slider.txt like follow:
Text,23,33,[updatetime],c,HH:mmt
Load,city,1

Or

Load,city,1
Text,23,33,[updatetime],c,HH:mmt

These also don't work!Why?
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 20, 2003, 08:12:44 AM
The attached is mySkinFile! Who can help me?
Title: [updatetime] in TP0.11.0
Post by: joelw135 on December 20, 2003, 11:19:18 AM
Try this!

load,city,%var0%
text,23,33,[updatetime],c,HH:mmt
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 21, 2003, 12:48:52 AM
Quote from: joelw135Try this!

load,city,%var0%
text,23,33,[updatetime],c,HH:mmt


Yes, My slider.txt like Above, But it not work!
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 21, 2003, 12:57:29 AM
The follow is my slider.txt file

maxheight,418
height,190
//196

initregion,0,0
initregion,1,0
initregion,8,0
initregion,16,999
//initregion,19,999

calcvar,var29,fromconfig,numcities

offset,0,0

options,weathericondir,Weather Icons\Washington Post,gif
options,imagedir,Images\Colors-3D
changefont,tahoma,11,
color,transparent,255_0_255
color,replacement,-1_6_-1,0_0_0
color,shadow,125_125_125
color,font,-1_4_-1

//offsetadd,0,1

//=================================================
// REGION 0 - PAGE 0
//   Top section
//=================================================
   region,0,0,-1
   defregion,0,0,0,240,78,1
   offset,offset_-1,offset_-1   
   offsetadd,0,2

   if,region,1,=,0
      imagebutton,16,33,weather active.png,t,1,4,999,-1
   else
      imagebutton,16,33,weather.png,t,1,4,0,-1
   endif
   

   if,region,8,=,0
      imagebutton,30,33,battery active.png,t,8,4,999,-1
   else
      imagebutton,30,33,battery.png,t,8,4,0,-1
   endif

       //if,region,19,=,0
   //   imagebutton,44,33,clock active.png,t,19,4,999,-1
   //else
   //   imagebutton,44,33,clock.png,t,19,4,0,-1
   //endif  

   if,refresh,=,true
      imagebutton,2,33,refresh active.png,t,0,7,,-1
   else
      imagebutton,2,33,refresh.png,t,0,7,,-1
   endif
      //  快捷  按钮
   if,region,16,=,0         
      imagebutton,44,33,launch active.png,t,16,4,999,-1
   else
      imagebutton,44,33,launch.png,t,16,4,0,-1
   endif

       //关机
   //button,58,33,11,11,-1,0,%work8-highlight
       //image,58,33,reset.gif,t

//Puts Date on today screen
changefont,tahoma,14,
time,2,0,-1,5,l,"MM月dd日",
changefont,tahoma,14,
time,2,16,-1,5,l,"dddd",
changefont,tahoma,11,

//Puts month calendar and update time on today screen
region,18,0,-1
changefont,tahoma,15,
text,2,59,Last UpdateTime:,l

load,city,1   
text,88,59,[updatetime],c,HH:mmt

changefont,tahoma,14,
color,font,255_0_0
text,127,0,日,l
text,225,0,六,l
color,font,-1_4_-1
text,145,0,一 二 三 四 五,l
//calendarheader,127,0,16
//changefont,tahoma,11,
//color,font,255_255_255
calendar,0,0,127,13,16,12,l
changefont,tahoma,11,b
endregion,18,0

//Puts owner info on today screen
changefont,tahoma,14,
text,2,45,%owner name%,l
changefont,tahoma,14,
//text,28,45,%owner address%,l
image,70,0,%owner image%

   offsetadd,0,76
   endregion,0,0

//=================================================
// REGION 1 - PAGE 0
//   Container for weather sections
//   Subregions: 2,3
//   Vars used:
//   Dimensions:  240 x 44
//=================================================
   region,1,0,-1
   defregion,1,0,0,240,44,6
   offset,offset_-1,offset_-1
   updateregions,2,3
   image,0,0,dotted_line.png,tr

   if,refresh
      color,font,125_125_125
   else
      color,font,-1_4_-1
   endif

   offsetadd,0,2

   //=================================================
   // REGION 3 - PAGE 0
   //   Weather forecast
   //   Vars used: 1
   //=================================================
      region,3,0,-1
      initvar,var0,1      
      imagebutton,226,2,right_arrow.png,t,1,13,var0_1
      
      if,var,var0,,>,%var29%
         storevar,var0=1
      else
      endif
            
      load,city,%var0%
      changefont,tahoma,14,
      text,24,0,[name],c
      //changefont,tahoma,14,

              //todayicon,8,16,,t
         //button,5,0,46,40,3,4,100,1
              forecasticon,1,8,16,,t
         button,5,0,46,15,3,4,100,1
         button,5,0,46,15,-1,6,var1=1   
                       button,5,16,46,24,3,4,200,1
         button,5,16,46,24,-1,6,var1=1
         
                       forecasticon,2,54,16,,t
         button,51,0,46,40,3,4,200,1
         button,51,0,46,40,-1,6,var1=2
         forecasticon,3,100,16,,t
         button,97,0,46,40,3,4,200,1
         button,97,0,46,40,-1,6,var1=3
         forecasticon,4,146,16,,t
         button,143,0,46,40,3,4,200,1
         button,143,0,46,40,-1,6,var1=4
         forecasticon,5,192,16,,t
         button,189,0,30,40,3,4,200,1
         button,189,0,30,40,-1,6,var1=5
         
                       //forecast,date_ddd,1,24,0,,,c
         forecast,date_ddd,2,69,0,,,c
         forecast,date_ddd,3,115,0,,,c
         forecast,date_ddd,4,161,0,,,c
         forecast,date_ddd,5,207,0,,,c
         
                       changefont,tahoma,12,
                       //today,temp,40,15,,,l
              //today,realtemp,40,29,,,l
                    forecast,high,1,51,16,,,r
           forecast,low,1,51,28,,,r
                       forecast,high,2,97,16,,,r
         forecast,low,2,97,28,,,r
         forecast,high,3,143,16,,,r
         forecast,low,3,143,28,,,r
         forecast,high,4,189,16,,,r
         forecast,low,4,189,28,,,r
         forecast,high,5,235,16,,,r
         forecast,low,5,235,28,,,r
      
      offsetadd,0,44
      endregion,3,0
   //=================================================
   // REGION 3 - PAGE 100
   //      Current Weather Details
   //=================================================
      region,3,100,-1
      load,city,%var0%
      button,0,0,240,42,3,3,,1
      changefont,tahoma,14,
      text,24,0,[name],c
      todayicon,8,16,,t
      
      text,47,14,温度:,l
      text,47,27,湿度:,l
               text,108,14,气压:,l
      text,108,27,紫外线:,l
      text,177,14,风速:,l
      text,177,27,风向:,l
               color,font,0_0_153
               today,sky,47,0,,,l
               changefont,tahoma,13,
               today,windspeed,235,14,,,r
               today,temp,103,14,,℃,r
               
               today,humidity,103,27,,%,r
               today,barometer,173,14,,in,r
               today,uv,173,27,,,r
               today,winddir,235,27,,,r
               color,font,102_102_102              
               //text,160,0,同步:,l
               //text,110,0,[updatetime],r,l
               today,date,235,1,,,r

      offsetadd,0,44
      endregion,3,100
   //=================================================
   // REGION 3 - PAGE 200
   //   Vars used: 1
   //=================================================
      region,3,200,-1
      load,city,%var0%
      button,0,0,240,44,3,3,,1
      changefont,tahoma,14,
//addvar,var1,1
      forecast,date_ddd,%var1%,24,0,,,c
//addvar,var1,-1

      changefont,tahoma,14,
      forecasticon,%var1%,8,16,,t
      nightforecasticon,%var1%,202,16,,t      
      changefont,tahoma,14,
      text,217,0,晚 上,c
      changefont,tahoma,14
      forecast,text,%var1%,110,2,白天: ,,l
      forecast,nighttext,%var1%,110,14,晚上: ,,l
      
      forecast,high,%var1%,78,15,,度,l
      forecast,low,%var1%,78,28,,度,l
      forecast,precipitation,%var1%,165,28,,%,l
      
      text,50,15,最高:,l
      text,50,28,最低:,l
      text,110,28,降水概率:,l
      offsetadd,0,44
      endregion,3,200
      
   color,font,-1_4_-1         
   endregion,1,0



//============
// REGION 8 - PAGE 0
//   System Information Container
//   Subregions: 9
//============
   region,8,0,30
   defregion,8,0,0,240,24,1
.......
...............
......
.....


The [updatetime] not work!!!
Title: [updatetime] in TP0.11.0
Post by: joelw135 on December 21, 2003, 08:56:19 AM
Try using the code line I had with the % line.
Title: [updatetime] in TP0.11.0
Post by: joelw135 on December 21, 2003, 10:42:40 AM
I changed the lines so now you get Full AM or PM

load,city,%var0%
text,23,33,[updatetime],c,HH:mm:tt
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 21, 2003, 11:35:45 PM
Not work!!!
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 23, 2003, 08:57:06 AM
Who can give me the answer?
Title: [updatetime] in TP0.11.0
Post by: Itanium on December 23, 2003, 10:55:38 AM
Are you getting weather updates correctly? One possible reason can be that weather update files don't have this information and hence its not displayed. Try flushing your buffer once. Just a try.
Title: [updatetime] in TP0.11.0
Post by: Scotty on December 23, 2003, 11:23:55 AM
Hi zlhyh:

I'm a bit confused. On Sat 20th, Joelw135 told you that you needed to have the line

load,city,%var0%

before any updatetime line

You replied saying that yes, you had that in your skin -- but in the skin file that you posted, the line was written

load,city,1

That line worked for versions earlier than v11, but for v11, maybe you should try what joelw135 suggested: change the 1 to %var0%

If you've already tried - apologies...

Good luck

Scotty.....
Title: [updatetime] in TP0.11.0
Post by: zlhyh on December 23, 2003, 11:47:54 PM
Thanks,I have corrected this!