Page weather01
    Attributes
        ID                 : 0
        Scope              : local
        Dragging           : 0
        Send Component ID  : disabled
        Opacity            : 127
        Width              : 320
        Effect             : load
        Effect Priority    : 0
        Effect Time        : 300
        Locked             : no
        Swide up page ID   : disabled
        Swide down page ID : disabled
        Swide left page ID : disabled
        Swide right page ID: disabled
        Fill               : picture
        Back. Picture ID   : 109
    
    Events
        Preinitialize Event
            printh 92
            prints "nspanelevent",0
            printh 00
            prints "{\"page\": \"weather01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
            printh 00
            printh FF FF FF
        
        Touch Press Event
            printh 92
            prints "touchevent",0
            printh 00
            prints "{\"page\": \"weather01\", \"component\": \"touchevent\", \"value\": \"press\"}",0
            printh 00
            printh FF FF FF
        
        Touch Release Event
            printh 92
            prints "touchevent",0
            printh 00
            prints "{\"page\": \"weather01\", \"component\": \"touchevent\", \"value\": \"release\"}",0
            printh 00
            printh FF FF FF
        
Text day
    Attributes
        ID                      : 4
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 97
        y coordinate            : 59
        Width                   : 200
        Height                  : 40
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : bottom
        Input Type              : character
        Text                    : 
        Max. Text Size          : 20
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text date
    Attributes
        ID                      : 5
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 67
        y coordinate            : 102
        Width                   : 230
        Height                  : 30
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : bottom
        Input Type              : character
        Text                    : 
        Max. Text Size          : 25
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text temperature
    Attributes
        ID                      : 6
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 21
        y coordinate            : 249
        Width                   : 120
        Height                  : 23
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value01
    Attributes
        ID                      : 7
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 17
        y coordinate            : 308
        Width                   : 220
        Height                  : 22
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : bottom
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value05
    Attributes
        ID                      : 8
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 17
        y coordinate            : 428
        Width                   : 220
        Height                  : 22
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : top
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value04
    Attributes
        ID                      : 9
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 17
        y coordinate            : 398
        Width                   : 220
        Height                  : 21
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : top
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value02
    Attributes
        ID                      : 10
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 17
        y coordinate            : 338
        Width                   : 220
        Height                  : 22
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : bottom
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value03
    Attributes
        ID                      : 11
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 17
        y coordinate            : 368
        Width                   : 220
        Height                  : 24
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 3
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : right
        Vertical Alignment      : bottom
        Input Type              : character
        Text                    : 
        Max. Text Size          : 15
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value01_icon
    Attributes
        ID                      : 13
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 246
        y coordinate            : 305
        Width                   : 25
        Height                  : 25
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 7
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 10
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value02_icon
    Attributes
        ID                      : 14
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 246
        y coordinate            : 335
        Width                   : 25
        Height                  : 25
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 7
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 10
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value03_icon
    Attributes
        ID                      : 15
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 246
        y coordinate            : 365
        Width                   : 25
        Height                  : 25
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 7
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 10
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value04_icon
    Attributes
        ID                      : 16
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 246
        y coordinate            : 395
        Width                   : 25
        Height                  : 25
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 7
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 10
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text value05_icon
    Attributes
        ID                      : 17
        Scope                   : local
        Dragging                : 0
        Send Component ID       : disabled
        Opacity                 : 127
        x coordinate            : 246
        y coordinate            : 425
        Width                   : 25
        Height                  : 25
        Effect                  : load
        Effect Priority         : 0
        Effect Time             : 300
        Fill                    : crop image
        Associated Keyboard     : none
        Font ID                 : 7
        Cropped Back. Picture ID: 109
        Horizontal Alignment    : center
        Vertical Alignment      : center
        Input Type              : character
        Text                    : 
        Max. Text Size          : 10
        Word wrap               : disabled
        Horizontal Spacing      : 0
        Vertical Spacing        : 0
    
Text loading
    Attributes
        ID                  : 18
        Scope               : local
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 45
        y coordinate        : 5
        Width               : 100
        Height              : 30
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 3
        Back. Color         : 0
        Font Color          : 0
        Horizontal Alignment: center
        Vertical Alignment  : center
        Input Type          : character
        Text                : 
        Max. Text Size      : 1
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Picture weather_icon
    Attributes
        ID               : 3
        Scope            : local
        Dragging         : 0
        Send Component ID: disabled
        Opacity          : 127
        x coordinate     : 20
        y coordinate     : 143
        Width            : 100
        Height           : 100
        Effect           : load
        Effect Priority  : 0
        Effect Time      : 300
        Picture ID       : 1
    
Hotspot weather_back
    Attributes
        ID               : 12
        Scope            : local
        Dragging         : 0
        Send Component ID: disabled
        Opacity          : 127
        x coordinate     : 260
        y coordinate     : 0
        Width            : 60
        Height           : 35
        Effect           : load
        Effect Priority  : 0
        Effect Time      : 300
    
    Events
        Touch Press Event
            page home
        
Timer swipestore
    Attributes
        ID         : 2
        Scope      : local
        Period (ms): 50
        Enabled    : no
    
    Events
        Timer Event
            swipex=tch0
            swipey=tch1
        
TouchCap swipe
    Attributes
        ID   : 1
        Scope: local
        Value: 0
    
    Events
        Touch Press Event
            swipestore.en=1 // Start swipestore timer
        
        Touch Release Event
            swipestore.en=0
            // Touch has ended, x
            if(tch0==0)
            {
                swipec=swipex-tch2
                // From Left to Right
                if(swipec>swipedx)
                {
                    page weather05
                }
                // Right to Left
                swipec2=0-swipedx
                if(swipec<swipec2)
                {
                    page weather02
                }
            }
            // Touch has ended, y
            if(tch1==0)
            {
                swipec=swipey-tch3
                // From Up to Down
                if(swipec>100)
                {
                    //page
                }
                // Down to Up
                swipec2=0-swipedy
                if(swipec<-100)
                {
                    //page
                }
            }
        
