diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 470d894..15dfdc0 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -3569,6 +3569,8 @@ variables: notification_clear: 'esphome.{{ nspanel_name }}_notification_clear' play_rtttl: 'esphome.{{ nspanel_name }}_play_rtttl' set_settings_entity: 'esphome.{{ nspanel_name }}_set_settings_entity' + hide: 'esphome.{{ nspanel_name }}_send_command_hide' + show: 'esphome.{{ nspanel_name }}_send_command_show' show_all: 'esphome.{{ nspanel_name }}_send_command_show_all' tft_upload: 'esphome.{{ nspanel_name }}_upload_tft' set_button: 'esphome.{{ nspanel_name }}_set_button' @@ -6105,7 +6107,7 @@ action: | replace("%a", (dict.values(mui[language].weekdays_short) | list)[now().weekday()]) | replace("%B", (dict.values(mui[language].months) | list)[now().month-1]) | replace("%b", (dict.values(mui[language].months_short) | list)[now().month-1]) - ) + ) }} continue_on_error: true ##### NSPanel Time ##### @@ -7463,9 +7465,9 @@ action: state: '{{ states(climate_entity) }}' hvac_modes: '{{ state_attr(climate_entity, "hvac_modes") }}' current_temp: '{{ state_attr(climate_entity, "current_temperature") | float(default=-999) | round(1) }}' - target_temp: '{{ state_attr(climate_entity, "temperature") | float(default=-999) | round(1) }}' - min_temp: '{{state_attr(climate_entity, "min_temp") | round(0, default=5) | int }}' - max_temp: '{{state_attr(climate_entity, "max_temp") | round(0, default=25) | int }}' + target_temp: '{{ state_attr(climate_entity, "temperature") | float(default=-999) * 10 }}' + min_temp: '{{ (state_attr(climate_entity, "min_temp") | round(0, default=5) * 10) | int }}' + max_temp: '{{ (state_attr(climate_entity, "max_temp") | round(0, default=25) * 10) | int }}' continue_on_error: true ##### Buttons ##### @@ -7496,64 +7498,29 @@ action: component: 'climate.{{ repeat.item.component }}_icon' message: '{{ all_icons[repeat.item.icon] }}' continue_on_error: true - - ##- variables: - #outdoor_temp_state: '{{ states(outdoortemp) | default("unavailable") if outdoortemp is string else "unavailable" }}' - #outdoor_temp: '{{ outdoor_temp_state if is_number(outdoor_temp_state) else state_attr(weather_entity, "temperature") | default("unavailable") if weather_entity is string else "unavailable" }}' - #heating_state: '{{ mui[language].climate.states.off if hvac_mode == "off" else mui[language].climate.states.on }}' - - ## outdoor temp deprecatec in v3.3.1 - #- *delay-default - #- service: '{{ nextion.commands.text_printf }}' - # data: - # component: outdoor_temp - # message: > - # {{ - # (outdoor_temp | round(1) ~ temperature_units) - # if is_number(outdoor_temp) - # else - # ( - # mui[language].unavailable - # if outdoor_temp in ["unavailable", "unknown", "", None] - # else outdoor_temp - # ) - # }} - # continue_on_error: true - - ## heating state deprecated on v3.3.1 - #- service: '{{ nextion.commands.text_printf }}' - # data: - # component: heating_state - # message: '{{ heating_state }}' - # continue_on_error: true - - ## HVAC Button deprecated on v3.3.1 - #- variables: - # heating_bt_pic: '{{ nextion.pics.heating.button.off if hvac_mode == "off" else nextion.pics.heating.button.on }}' - #- *delay-default - #- service: '{{ nextion.commands.printf }}' - # data: - # cmd: heating_bt_pic.pic={{ heating_bt_pic }} - # continue_on_error: true - - ## hotwater deprecated on v3.3.1 - #- variables: - # hotwatercharge_state: '{{ states(hotwatercharge) | default("unavailable") if hotwatercharge is string else "unavailable" }}' - # hotwatertemp_state: '{{ states(hotwatertemp) | default("unavailable") if hotwatertemp is string else "unavailable" }}' - # hotw_bt_pic: '{{ nextion.pics.hvac.button[hotwatercharge_state] | default(nextion.pics.hvac.button.blank) if hotwatercharge_state not in ["unavailable", "unknown", "", None] else nextion.pics.hvac.button.blank }}' - #- *delay-default - #- service: '{{ nextion.commands.printf }}' - # data: - # cmd: hotw_bt_pic.pic={{ hotw_bt_pic }} - # continue_on_error: true - #- if: '{{ hotwatertemp_state not in ["unavailable", "unknown", "", None] }}' - # then: - # - *delay-default - # - service: '{{ nextion.commands.text_printf }}' - # data: - # component: climate.hotwater_temp - # message: '{{ (hotwatertemp_state | round(1) ~ temperature_units) if is_number(hotwatertemp_state) else hotwatertemp_state }}' - # continue_on_error: true + ### Show button ### + - *delay-default + - service: '{{ nextion.commands.show }}' + data: + component: '{{ repeat.item.component }}_icon' + continue_on_error: true + - *delay-default + - service: '{{ nextion.commands.show }}' + data: + component: '{{ repeat.item.component }}' + continue_on_error: true + else: + ### Hide button ### + - *delay-default + - service: '{{ nextion.commands.hide }}' + data: + component: '{{ repeat.item.component }}' + continue_on_error: true + - *delay-default + - service: '{{ nextion.commands.hide }}' + data: + component: '{{ repeat.item.component }}_icon' + continue_on_error: true ## ENTITY PAGES 01 - 04 ## - alias: Entity pages @@ -8148,33 +8115,6 @@ action: entity_id: '{{ settings_entity_dict.entity }}' continue_on_error: true - - alias: climate increasetemp decreasetemp - conditions: '{{ nspanel_event.component in ["decreasetemp", "increasetemp"] and nspanel_event.value == "release" }}' - sequence: - - *variables-settings_entity - - if: '{{ settings_entity_dict.entity is string and states(settings_entity_dict.entity) != "off" }}' - then: - - variables: - current_setpoint: '{{state_attr(settings_entity_dict.entity, "temperature") | default("unavailable") if settings_entity_dict.entity is string else "unavailable" }}' - - condition: '{{ is_number(current_setpoint) }}' - - variables: - delta: '{{ +0.5 if nspanel_event.component == "increasetemp" else -0.5 }}' - min_temp: '{{state_attr(settings_entity_dict.entity, "min_temp") | round(0, default=5) | int }}' - max_temp: '{{state_attr(settings_entity_dict.entity, "max_temp") | round(0, default=25) | int }}' - new_setpoint: '{{ current_setpoint + delta }}' - - variables: - new_setpoint: '{{ max(min_temp, min(max_temp, new_setpoint)) }}' - - condition: '{{ is_number(new_setpoint) }}' - - service: '{{ nextion.commands.set_climate_target_temp }}' - data: - target_temp: '{{ new_setpoint | round(1) }}' - continue_on_error: true - - service: climate.set_temperature - data: - entity_id: '{{ settings_entity_dict.entity }}' - temperature: '{{ new_setpoint | round(1) }}' - continue_on_error: true - - alias: climate climateslider conditions: - '{{ nspanel_event.page in [pages.climate, "climatesettings"] }}' @@ -8185,16 +8125,12 @@ action: then: - variables: new_setpoint: '{{ nspanel_event.value | int(-999) }}' - - if: '{{ is_number(new_setpoint) and new_setpoint > -999 }}' ## TODO - remove from here + - if: '{{ is_number(new_setpoint) and new_setpoint > -999 }}' then: - - service: '{{ nextion.commands.set_climate_target_temp }}' - data: - target_temp: '{{ new_setpoint }}' - continue_on_error: true - service: climate.set_temperature data: entity_id: '{{ settings_entity_dict.entity }}' - temperature: '{{ new_setpoint }}' + temperature: '{{ new_setpoint / 10 }}' continue_on_error: true - alias: climate button press @@ -8613,6 +8549,40 @@ action: }} sequence: *display_value + ##### Sync Climate ##### + - alias: Climate - Sync + conditions: + - condition: trigger + id: climate_state + - '{{ trigger.event.data.new_state.state not in ["unavailable", "unknown", "", None] }}' + - '{{ nspanel_event.page == pages.climate }}' + sequence: + - variables: + climate_entity: '{{ trigger.event.data.entity_id }}' + hvac_modes: > + {{ + trigger.event.data.new_state.attributes.hvac_modes + if trigger.event.data.new_state.attributes.hvac_modes is defined + else [] + }} + target_temperature: > + {{ + trigger.event.data.new_state.attributes.temperature * 10 + if + trigger.event.data.new_state.state != "off" + and trigger.event.data.new_state.attributes.temperature is defined + and is_number(trigger.event.data.new_state.attributes.temperature) + else -999 + }} + + - service: '{{ nextion.commands.set_climate_target_temp }}' + data: + target_temp: '{{ target_temperature }}' + continue_on_error: true + - repeat: + for_each: '{{ page_climate.buttons.hvac_mode }}' + sequence: *update_climate_button + ########## TRIGGER - HOME PAGE ########### ##### HOME PAGE - Values ##### @@ -8771,74 +8741,6 @@ action: - *delay-default - *refresh-page_home-weather_pic - ##### Sync Climate ##### -> muss noch in page changed climate wwenn climate page fertig - - alias: Climate - Sync - conditions: - - condition: trigger - id: climate_state - - '{{ trigger.event.data.new_state.state not in ["unavailable", "unknown", "", None] }}' - sequence: - - variables: - heating_state: > - {{ - mui[language].climate.states.off - if trigger.event.data.new_state.state == "off" - else mui[language].climate.states.on - }} - heating_bt_pic: > - {{ - nextion.pics.heating.button.off - if trigger.event.data.new_state.state == "off" - else nextion.pics.heating.button.on - }} - target_temperature: > - {{ - trigger.event.data.new_state.attributes.temperature | round(1) - if - trigger.event.data.new_state.attributes.temperature is defined and - is_number(trigger.event.data.new_state.attributes.temperature) - else - ( - ((trigger.event.data.new_state.attributes.target_temp_high + trigger.event.data.new_state.attributes.target_temp_low) / 2) | round(1) - if - trigger.event.data.new_state.attributes.target_temp_high is defined and - trigger.event.data.new_state.attributes.target_temp_low is defined and - is_number(trigger.event.data.new_state.attributes.target_temp_high) and - is_number(trigger.event.data.new_state.attributes.target_temp_low) - ) - }} - - - service: '{{ nextion.commands.text_printf }}' - data: - component: current_temp - message: '{{ trigger.event.data.new_state.attributes.current_temperature | round(1)}}{{ temperature_units }}' - continue_on_error: true - - service: '{{ nextion.commands.text_printf }}' - data: - component: heating_state - message: '{{heating_state}}' - continue_on_error: true - - service: '{{ nextion.commands.printf }}' - data: - cmd: heating_bt_pic.pic={{ heating_bt_pic }} - continue_on_error: true - - if: '{{ trigger.event.data.new_state.state != "off" and is_number(target_temperature) }}' - then: - - service: '{{ nextion.commands.set_climate_target_temp }}' - data: - target_temp: ' {{ target_temperature }}' - continue_on_error: true - else: - - service: '{{ nextion.commands.set_climate_target_temp }}' - data: - target_temp: '0' - continue_on_error: true - - service: '{{ nextion.commands.text_printf }}' - data: - component: target_temp - message: ' ' - continue_on_error: true - ##### Sync Hotwater Charge button-symbol ##### -> kann wenn climate page fertig - alias: Hotwater - Sync conditions: diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 3698831..b1d5afc 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -320,8 +320,26 @@ api: binary_sensor.is_on: nextion_init - &set_climate_target_temp lambda: |- - id(disp1).set_component_value("climate.climateslider", target_temp); - id(disp1).set_component_text_printf("climate.target_temp", "%.1f", target_temp); + if (target_temp > -999) + { + id(disp1).set_component_value("climateslider", target_temp); + id(disp1).set_component_value("target_temp", target_temp); + id(disp1).show_component("target_icon"); + id(disp1).show_component("target_temp"); + id(disp1).show_component("t0"); + id(disp1).show_component("climateslider"); + id(disp1).show_component("decrease_temp"); + id(disp1).show_component("increase_temp"); + } + else + { + id(disp1).hide_component("target_icon"); + id(disp1).hide_component("target_temp"); + id(disp1).hide_component("t0"); + id(disp1).hide_component("climateslider"); + id(disp1).hide_component("decrease_temp"); + id(disp1).hide_component("increase_temp"); + } #### Service to set climate state #### - service: set_climate @@ -337,9 +355,11 @@ api: binary_sensor.is_on: nextion_init - *set_climate_target_temp - lambda: |- - id(disp1).send_command_printf("climate.climateslider.minval=%i", min_temp); - id(disp1).send_command_printf("climate.climateslider.maxval=%i", max_temp); - id(disp1).set_component_text_printf("climate.current_temp", "%.1f°", current_temp); + id(disp1).send_command_printf("climateslider.minval=%i", min_temp); + id(disp1).send_command_printf("climateslider.maxval=%i", max_temp); + id(disp1).set_component_text_printf("current_temp", "%.1f°", current_temp); + id(disp1).show_component("current_temp"); + id(disp1).show_component("current_icon"); #### Service to set the buttons #### - service: set_button diff --git a/nspanel_eu.HMI b/nspanel_eu.HMI index cb5ff5f..601fcd2 100644 Binary files a/nspanel_eu.HMI and b/nspanel_eu.HMI differ diff --git a/nspanel_eu.tft b/nspanel_eu.tft index 1fc45df..7d38c43 100644 Binary files a/nspanel_eu.tft and b/nspanel_eu.tft differ diff --git a/nspanel_eu_code/Program.s.txt b/nspanel_eu_code/Program.s.txt index 81f0ee5..c76d01f 100644 --- a/nspanel_eu_code/Program.s.txt +++ b/nspanel_eu_code/Program.s.txt @@ -1,11 +1,17 @@ -Program.s - //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data - int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement - int r=0,g=0,b=0 - int h=0,s=0,v=0 - int p=0,q=0,t=0,f=0 - bauds=115200//Configure baudrat - recmod=0//Serial data parsing mode:0-Passive mode;1-Active mod - printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial pore - lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version - page 8//Power on start page boot +Program.s + //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data + int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement + int r=0,g=0,b=0 + int h=0,s=0,v=0 + int p=0,q=0,t=0,f=0 + bauds=115200//Configure baudrat + recmod=0//Serial data parsing mode:0-Passive mode;1-Active mod + printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial pore + lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"\", \"component\": \"\", \"value\": \"\"}",0 + printh 00 + printh FF FF FF + page 8//Power on start page boot diff --git a/nspanel_eu_code/boot.txt b/nspanel_eu_code/boot.txt index 2d98bd2..aef489b 100644 --- a/nspanel_eu_code/boot.txt +++ b/nspanel_eu_code/boot.txt @@ -1,302 +1,121 @@ -Page boot - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 98 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"boot\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - -Text ip_addr - Attributes - ID : 1 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 12 - Width : 172 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 98 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : Initializing... - Max. Text Size : 15 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text t0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 75 - Width : 250 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 4 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Please wait... - Max. Text Size : 15 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text t1 - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 109 - Width : 173 - Height : 36 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 1 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : The process can take several seconds! - Max. Text Size : 50 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tft_label - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 168 - Width : 40 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : TFT: - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text esph_label - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 193 - Width : 95 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : ESPHome: - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bluep_label - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 218 - Width : 92 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Blueprint: - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tft_version - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 72 - y coordinate : 168 - Width : 95 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : 3.3 - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text esph_version - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 193 - Width : 95 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bluep_version - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 218 - Width : 95 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 98 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Dual-state Button a01 - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : on press and release - Opacity : 127 - x coordinate : 26 - y coordinate : 267 - Width : 80 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : 3D auto - Font ID : 0 - Back. Color (Unpressed) : 50712 - Back. Picture ID (Pressed): 65535 - Back. Color (Pressed) : 9375 - Font Color (Unpressed) : 0 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : Reboot - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - +Page boot + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"boot\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + +Text ip_addr + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Initializing... + Max. Text Size : 15 + +Text t0 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Please wait... + Max. Text Size : 15 + +Text t1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : The process can take several seconds! + Max. Text Size : 50 + +Text tft_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : TFT: + Max. Text Size : 4 + +Text esph_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : ESPHome: + Max. Text Size : 8 + +Text bluep_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Blueprint: + Max. Text Size : 10 + +Text tft_version + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : 3.3.1 + Max. Text Size : 8 + +Text esph_version + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 8 + +Text bluep_version + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 8 + +Dual-state Button a01 + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : Reboot + Max. Text Size : 6 + diff --git a/nspanel_eu_code/buttonpage01.txt b/nspanel_eu_code/buttonpage01.txt index dc220d7..5a1fe58 100644 --- a/nspanel_eu_code/buttonpage01.txt +++ b/nspanel_eu_code/buttonpage01.txt @@ -1,1254 +1,628 @@ -Page buttonpage01 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 115 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"buttonpage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis button_back,1 - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage01\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage01\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) lastclick - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 100 - -Text button01text - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01bri - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02text - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02bri - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03text - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03bri - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04text - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04bri - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05text - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05bri - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06text - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06bri - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07text - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07bri - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08text - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08bri - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bpage01_label - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01icon - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02icon - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03icon - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04icon - Attributes - ID : 32 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05icon - Attributes - ID : 33 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06icon - Attributes - ID : 34 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07icon - Attributes - ID : 35 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08icon - Attributes - ID : 36 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture button01pic - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button02pic - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button03pic - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button04pic - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button05pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button06pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button07pic - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button08pic - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot button_back - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - page home - -Hotspot button01 - Attributes - ID : 37 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button02 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button03 - Attributes - ID : 39 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button04 - Attributes - ID : 40 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button05 - Attributes - ID : 41 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button06 - Attributes - ID : 42 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button07 - Attributes - ID : 43 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button08 - Attributes - ID : 44 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -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 home - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page buttonpage01 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage01\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage01\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 100 + +Text button01text + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02text + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02bri + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03bri + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04text + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04bri + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05bri + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07bri + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08bri + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bpage01_label + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text button01icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture button01pic + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button02pic + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button03pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button04pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button05pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button06pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button07pic + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button08pic + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot button_back + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button08 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +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 home + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/buttonpage02.txt b/nspanel_eu_code/buttonpage02.txt index d92a849..3d6af5d 100644 --- a/nspanel_eu_code/buttonpage02.txt +++ b/nspanel_eu_code/buttonpage02.txt @@ -1,1254 +1,628 @@ -Page buttonpage02 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 116 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis button_back,1 - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) lastclick - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 100 - -Text button01text - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01bri - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02text - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02bri - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03text - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03bri - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04text - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04bri - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05text - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05bri - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06text - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06bri - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07text - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07bri - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08text - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08bri - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bpage02_label - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01icon - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02icon - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03icon - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04icon - Attributes - ID : 32 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05icon - Attributes - ID : 33 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06icon - Attributes - ID : 34 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07icon - Attributes - ID : 35 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08icon - Attributes - ID : 36 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture button01pic - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button02pic - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button03pic - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button04pic - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button05pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button06pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button07pic - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button08pic - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot button_back - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - page home - -Hotspot button01 - Attributes - ID : 37 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button02 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button03 - Attributes - ID : 39 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button04 - Attributes - ID : 40 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button05 - Attributes - ID : 41 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button06 - Attributes - ID : 42 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button07 - Attributes - ID : 43 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button08 - Attributes - ID : 44 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -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 buttonpage01 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - page home - } - } - +Page buttonpage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 100 + +Text button01text + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02text + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02bri + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03bri + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04text + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04bri + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05bri + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07bri + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08bri + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bpage02_label + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text button01icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture button01pic + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button02pic + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button03pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button04pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button05pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button06pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button07pic + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button08pic + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot button_back + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button08 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +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 buttonpage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page home + } + } + diff --git a/nspanel_eu_code/buttonpage03.txt b/nspanel_eu_code/buttonpage03.txt index e09c8f7..375f8f6 100644 --- a/nspanel_eu_code/buttonpage03.txt +++ b/nspanel_eu_code/buttonpage03.txt @@ -1,1254 +1,628 @@ -Page buttonpage03 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 117 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"buttonpage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis button_back,1 - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage03\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) lastclick - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 100 - -Text button01text - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01bri - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02text - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02bri - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03text - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03bri - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04text - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04bri - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05text - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05bri - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06text - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06bri - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07text - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07bri - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08text - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08bri - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bpage03_label - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01icon - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02icon - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03icon - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04icon - Attributes - ID : 32 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05icon - Attributes - ID : 33 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06icon - Attributes - ID : 34 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07icon - Attributes - ID : 35 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08icon - Attributes - ID : 36 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture button01pic - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button02pic - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button03pic - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button04pic - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button05pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button06pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button07pic - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button08pic - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot button_back - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - page home - -Hotspot button01 - Attributes - ID : 37 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button01\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button01\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button02 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button02\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button02\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button03 - Attributes - ID : 39 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button03\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button03\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button04 - Attributes - ID : 40 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button04\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button04\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button05 - Attributes - ID : 41 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button05\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button05\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button06 - Attributes - ID : 42 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button06\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button06\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button07 - Attributes - ID : 43 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button07\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button07\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button08 - Attributes - ID : 44 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button08\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button08\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -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 buttonpage02 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - page home - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page buttonpage03 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage03\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 100 + +Text button01text + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02text + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02bri + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03bri + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04text + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04bri + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05bri + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07bri + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08bri + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bpage03_label + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text button01icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture button01pic + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button02pic + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button03pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button04pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button05pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button06pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button07pic + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button08pic + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot button_back + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button01\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button02\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button03\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button04\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button05\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button06\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button07\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button08 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button08\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage03\", \"component\": \"button08\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +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 buttonpage02 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page home + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/buttonpage04.txt b/nspanel_eu_code/buttonpage04.txt index 170f4cb..c66ee0f 100644 --- a/nspanel_eu_code/buttonpage04.txt +++ b/nspanel_eu_code/buttonpage04.txt @@ -1,1254 +1,628 @@ -Page buttonpage04 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 118 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"buttonpage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis button_back,1 - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"buttonpage04\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) lastclick - Attributes - ID : 45 - Scope : local - Text : - Max. Text Size: 100 - -Text button01text - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01bri - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02text - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02bri - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03text - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03bri - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04text - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 116 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04bri - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 55 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05text - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 27 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05bri - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 58 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06text - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 134 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06bri - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 165 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07text - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 241 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07bri - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 272 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08text - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 348 - y coordinate : 246 - Width : 80 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08bri - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 379 - y coordinate : 186 - Width : 50 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 4 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text bpage04_label - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01icon - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02icon - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03icon - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04icon - Attributes - ID : 32 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 55 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05icon - Attributes - ID : 33 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06icon - Attributes - ID : 34 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 130 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07icon - Attributes - ID : 35 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 237 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button08icon - Attributes - ID : 36 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 344 - y coordinate : 186 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture button01pic - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button02pic - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button03pic - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button04pic - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button05pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button06pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button07pic - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Picture button08pic - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot button_back - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - page home - -Hotspot button01 - Attributes - ID : 37 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button01\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button01\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button02 - Attributes - ID : 38 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button02\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button02\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button03 - Attributes - ID : 39 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button03\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button03\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button04 - Attributes - ID : 40 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 45 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button04\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button04\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button05 - Attributes - ID : 41 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 17 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button05\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button05\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button06 - Attributes - ID : 42 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 124 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button06\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button06\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button07 - Attributes - ID : 43 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 231 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button07\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button07\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button08 - Attributes - ID : 44 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 338 - y coordinate : 176 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button08\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button08\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -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 buttonpage03 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page buttonpage04 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"buttonpage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis 255,0 + vis button_back,1 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"buttonpage04\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 45 + Scope : local + Text : + Max. Text Size: 100 + +Text button01text + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02text + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02bri + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03bri + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04text + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04bri + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05bri + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06text + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06bri + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07bri + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08bri + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text bpage04_label + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text button01icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture button01pic + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button02pic + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button03pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button04pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button05pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button06pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button07pic + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture button08pic + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot button_back + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button01\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button02\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button03\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button04\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button05\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button06\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button07\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button08 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button08\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"buttonpage04\", \"component\": \"button08\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +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 buttonpage03 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/climate.txt b/nspanel_eu_code/climate.txt index ef5ac56..2c720bc 100644 --- a/nspanel_eu_code/climate.txt +++ b/nspanel_eu_code/climate.txt @@ -1,916 +1,561 @@ -Page climate - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 96 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (int32) climateslider - Attributes - ID : 7 - Scope: local - Value: 0 - -Variable (int32) va0 - Attributes - ID : 21 - Scope: local - Value: 0 - -Variable (string) climatesetting - Attributes - ID : 24 - Scope : local - Text : - Max. Text Size: 100 - -Number sliderval - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 460 - y coordinate : 280 - Width : 20 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment : right - Vertical Alignment : center - Value : 0 - Significant digits shown: all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text current_temp - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 171 - y coordinate : 87 - Width : 105 - Height : 55 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 5 - Cropped Back. Picture ID: 96 - Horizontal Alignment : right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text target_temp - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 171 - y coordinate : 145 - Width : 105 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 4 - Cropped Back. Picture ID: 96 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text outdoor_temp - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 16 - y coordinate : 52 - Width : 60 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 96 - Horizontal Alignment : right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text hotwater_temp - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 368 - y coordinate : 52 - Width : 60 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 96 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text heating_state - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 169 - y coordinate : 201 - Width : 115 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 3 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text climate_label - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 260 - Height : 22 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture climate_left - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 111 - y coordinate : 20 - Width : 58 - Height : 230 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 16 - - Events - Touch Press Event - slider.en=1 - - Touch Release Event - slider.en=0 - -Picture climate_middle - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 169 - y coordinate : 20 - Width : 114 - Height : 65 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 17 - - Events - Touch Press Event - slider.en=1 - - Touch Release Event - slider.en=0 - -Picture climate_right - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 283 - y coordinate : 20 - Width : 58 - Height : 230 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 18 - - Events - Touch Press Event - slider.en=1 - - Touch Release Event - slider.en=0 - -Picture climate_exit - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 415 - y coordinate : 10 - Width : 25 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 56 - -Picture hotw_bt_pic - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 374 - y coordinate : 237 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 79 - -Picture heating_bt_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 211 - y coordinate : 239 - Width : 30 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 82 - -Hotspot decrease_temp - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 133 - y coordinate : 252 - Width : 51 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot increase_temp - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 268 - y coordinate : 252 - Width : 50 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot climate_back - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot hotwater_bt - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 369 - y coordinate : 232 - Width : 60 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"hotwater\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"hotwater\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot heating_bt - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 206 - y coordinate : 232 - Width : 40 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"heating\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"heating\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - -Timer swipestore - Attributes - ID : 2 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - swipex=tch0 - swipey=tch1 - -Timer slider - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - // Left hand images vertical - if(tch0>=111&&tch0<169) // Left Hand images L/R coords - { - if(tch1>221&&tch1<=235) // step 0 - { - // climatesetting.txt="climateslider0" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 0}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>206&&tch1<=221) // step 1 - { - // climatesetting.txt="climateslider1" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 1}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>192&&tch1<=206) // step 2 - { - // climatesetting.txt="climateslider2" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 2}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>177&&tch1<=192) // step 3 - { - // climatesetting.txt="climateslider3" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 3}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>162&&tch1<=177) // step 4 - { - // climatesetting.txt="climateslider4" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 4}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>148&&tch1<=162) // step 5 up - { - // climatesetting.txt="climateslider5" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 5}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>133&&tch1<=148) // step 6 up - { - // climatesetting.txt="climateslider6" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 6}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>119&&tch1<=133) // step 7 up - { - // climatesetting.txt="climateslider7" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 7}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>105&&tch1<=119) // step 8 up - { - // climatesetting.txt="climateslider8" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 8}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>90&&tch1<=105) // step 9 up - { - // climatesetting.txt="climateslider9" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 9}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>70&&tch1<=90) // step 10 up - { - // climatesetting.txt="climateslider10" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 10}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>60&&tch1<=70) // step 11 up - { - // climatesetting.txt="climateslider11" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 11}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - } - // middle images horizontal - }else if(tch1>=35&&tch1<=80) // middle image U/D coords - { - if(tch0>169&&tch0<=188) // step 12 across - { - // climatesetting.txt="climateslider12" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 12}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch0>188&&tch0<=207) // step 13 - { - // climatesetting.txt="climateslider13" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 13}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch0>207&&tch0<=226) // step 14 - { - // climatesetting.txt="climateslider14" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 14}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch0>226&&tch0<=245) // step 15 - { - // climatesetting.txt="climateslider15" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 15}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch0>245&&tch0<=264) // step 16 - { - // climatesetting.txt="climateslider16" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 16}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch0>264&&tch0<=283) // step 17 - { - // climatesetting.txt="climateslider17" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 17}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - } - // right hand images vertical - }else if(tch0>=283&&tch0<=341) // right image L/R coords - { - if(tch1>60&&tch1<=80) // step 18 across - { - // climatesetting.txt="climateslider18" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 18}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>80&&tch1<=94) // step 19 - { - // climatesetting.txt="climateslider19" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 19}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>94&&tch1<=109) // step 20 - { - // climatesetting.txt="climateslider20" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 20}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>109&&tch1<=123) // step 21 - { - // climatesetting.txt="climateslider21" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 21}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>123&&tch1<=138) // step 22 - { - // climatesetting.txt="climateslider22" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 22}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>138&&tch1<=152) // step 23 - { - // climatesetting.txt="climateslider23" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 23}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>152&&tch1<=167) // step 24 - { - // climatesetting.txt="climateslider24" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 24}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>167&&tch1<=181) // step 25 - { - // climatesetting.txt="climateslider25" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 25}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>181&&tch1<=197) // step 26 - { - // climatesetting.txt="climateslider26" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 26}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>197&&tch1<=215) // step 27 - { - // climatesetting.txt="climateslider27" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 27}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - }else if(tch1>215&&tch1<=235) // step 28 - { - // climatesetting.txt="climateslider28" - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 28}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF - } - } - // pass climateslider.val - -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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page climate + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis target_icon,0 + vis target_temp,0 + vis current_temp,0 + vis current_icon,0 + vis climateslider,0 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) va1 + Attributes + ID : 27 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) climatesetting + Attributes + ID : 28 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) lastclick + Attributes + ID : 37 + Scope : local + Text : + Max. Text Size: 100 + +XFloat target_temp + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Value : 0 + +Text current_temp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text climate_label + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text current_icon + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text target_icon + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value01_icon + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value01 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01_icon + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02_icon + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03_icon + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04_icon + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05_icon + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06_icon + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07_icon + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text t0 + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : ° + Max. Text Size : 6 + +Picture climate_exit + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Slider climateslider + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + Position : 180 + Upper range limit: 250 + Lower range limit: 50 + + Events + Touch Release Event + covx climateslider.val,va1.txt,0,0 + target_temp.val=climateslider.val + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot decrease_temp + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climateslider.val-=1 + covx climateslider.val,va1.txt,0,0 + target_temp.val=climateslider.val + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot increase_temp + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climateslider.val+=1 + covx climateslider.val,va1.txt,0,0 + target_temp.val=climateslider.val + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot climate_back + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot button01 + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"climate\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/climate_backup.txt b/nspanel_eu_code/climate_backup.txt new file mode 100644 index 0000000..c08fed3 --- /dev/null +++ b/nspanel_eu_code/climate_backup.txt @@ -0,0 +1,689 @@ +Page climate_backup + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (int32) climateslider + Attributes + ID : 7 + Scope: local + Value: 0 + +Variable (int32) va0 + Attributes + ID : 21 + Scope: local + Value: 0 + +Variable (string) climatesetting + Attributes + ID : 24 + Scope : local + Text : + Max. Text Size: 100 + +Number sliderval + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Value : 0 + +Text current_temp + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text target_temp + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text outdoor_temp + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text hotwater_temp + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text heating_state + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text climate_label + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Picture climate_left + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + slider.en=1 + + Touch Release Event + slider.en=0 + +Picture climate_middle + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + slider.en=1 + + Touch Release Event + slider.en=0 + +Picture climate_right + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + slider.en=1 + + Touch Release Event + slider.en=0 + +Picture climate_exit + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture hotw_bt_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture heating_bt_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot decrease_temp + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot increase_temp + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot climate_back + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"close\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot hotwater_bt + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"hotwater\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"hotwater\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot heating_bt + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"heating\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + climatesetting.txt="{\"page\": \"climate\", \"component\": \"heating\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer slider + Attributes + ID : 6 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + // Left hand images vertical + if(tch0>=111&&tch0<169) // Left Hand images L/R coords + { + if(tch1>221&&tch1<=235) // step 0 + { + // climatesetting.txt="climateslider0" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 0}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>206&&tch1<=221) // step 1 + { + // climatesetting.txt="climateslider1" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 1}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>192&&tch1<=206) // step 2 + { + // climatesetting.txt="climateslider2" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 2}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>177&&tch1<=192) // step 3 + { + // climatesetting.txt="climateslider3" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 3}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>162&&tch1<=177) // step 4 + { + // climatesetting.txt="climateslider4" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 4}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>148&&tch1<=162) // step 5 up + { + // climatesetting.txt="climateslider5" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 5}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>133&&tch1<=148) // step 6 up + { + // climatesetting.txt="climateslider6" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 6}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>119&&tch1<=133) // step 7 up + { + // climatesetting.txt="climateslider7" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 7}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>105&&tch1<=119) // step 8 up + { + // climatesetting.txt="climateslider8" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 8}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>90&&tch1<=105) // step 9 up + { + // climatesetting.txt="climateslider9" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 9}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>70&&tch1<=90) // step 10 up + { + // climatesetting.txt="climateslider10" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 10}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>60&&tch1<=70) // step 11 up + { + // climatesetting.txt="climateslider11" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 11}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + } + // middle images horizontal + }else if(tch1>=35&&tch1<=80) // middle image U/D coords + { + if(tch0>169&&tch0<=188) // step 12 across + { + // climatesetting.txt="climateslider12" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 12}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch0>188&&tch0<=207) // step 13 + { + // climatesetting.txt="climateslider13" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 13}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch0>207&&tch0<=226) // step 14 + { + // climatesetting.txt="climateslider14" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 14}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch0>226&&tch0<=245) // step 15 + { + // climatesetting.txt="climateslider15" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 15}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch0>245&&tch0<=264) // step 16 + { + // climatesetting.txt="climateslider16" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 16}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch0>264&&tch0<=283) // step 17 + { + // climatesetting.txt="climateslider17" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 17}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + } + // right hand images vertical + }else if(tch0>=283&&tch0<=341) // right image L/R coords + { + if(tch1>60&&tch1<=80) // step 18 across + { + // climatesetting.txt="climateslider18" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 18}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>80&&tch1<=94) // step 19 + { + // climatesetting.txt="climateslider19" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 19}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>94&&tch1<=109) // step 20 + { + // climatesetting.txt="climateslider20" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 20}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>109&&tch1<=123) // step 21 + { + // climatesetting.txt="climateslider21" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 21}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>123&&tch1<=138) // step 22 + { + // climatesetting.txt="climateslider22" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 22}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>138&&tch1<=152) // step 23 + { + // climatesetting.txt="climateslider23" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 23}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>152&&tch1<=167) // step 24 + { + // climatesetting.txt="climateslider24" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 24}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>167&&tch1<=181) // step 25 + { + // climatesetting.txt="climateslider25" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 25}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>181&&tch1<=197) // step 26 + { + // climatesetting.txt="climateslider26" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 26}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>197&&tch1<=215) // step 27 + { + // climatesetting.txt="climateslider27" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 27}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + }else if(tch1>215&&tch1<=235) // step 28 + { + // climatesetting.txt="climateslider28" + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climateslider\", \"value\": 28}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + } + } + // pass climateslider.val + +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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/coversettings.txt b/nspanel_eu_code/coversettings.txt index a2bac87..a21dc96 100644 --- a/nspanel_eu_code/coversettings.txt +++ b/nspanel_eu_code/coversettings.txt @@ -1,455 +1,273 @@ -Page coversettings - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : solid color - Back. Color : 0 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"coversettings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) va1 - Attributes - ID : 9 - Scope : local - Text : newtxt - Max. Text Size: 10 - -Variable (string) coversetting - Attributes - ID : 15 - Scope : local - Text : - Max. Text Size: 100 - -Text battery_value - Attributes - ID : 1 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 326 - y coordinate : 69 - Width : 60 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text cover_value - Attributes - ID : 2 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 43 - Width : 83 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text cover_name - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 48 - y coordinate : 8 - Width : 300 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_state - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 12 - y coordinate : 8 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text battery_icon - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 291 - y coordinate : 66 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture cover_exit - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 415 - y coordinate : 10 - Width : 25 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 56 - -Slider coverslider - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 67 - Width : 83 - Height : 233 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Direction : vertical - Fill : image - Cursor width : auto - Cursor height : 255 - Back. Picture ID : 63 - Slided Back. Picture ID: 62 - Position : 0 - Upper range limit : 100 - Lower range limit : 0 - - Events - Touch Release Event - covx coverslider.val,va1.txt,0,0 - cover_value.txt=va1.txt+"%" - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"cover_position\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - -Button cover_open - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 295 - y coordinate : 186 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : image - Font ID : 1 - Background Picture ID (Unpressed): 57 - Back. Picture ID (Pressed) : 58 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"open_cover\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - -Button cover_close - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 295 - y coordinate : 250 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : image - Font ID : 1 - Background Picture ID (Unpressed): 59 - Back. Picture ID (Pressed) : 60 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close_cover\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - -Button cover_stop - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 104 - y coordinate : 250 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : image - Font ID : 1 - Background Picture ID (Unpressed): 65 - Back. Picture ID (Pressed) : 66 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"stop_cover\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot cover_back - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints coversetting.txt,0 - printh 00 - printh FF FF FF - -Timer swipestore - Attributes - ID : 8 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - swipex=tch0 - swipey=tch1 - -TouchCap swipe - Attributes - ID : 7 - 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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page coversettings + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"coversettings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) va1 + Attributes + ID : 9 + Scope : local + Text : newtxt + Max. Text Size: 10 + +Variable (string) coversetting + Attributes + ID : 15 + Scope : local + Text : + Max. Text Size: 100 + +Text battery_value + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text cover_value + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text cover_name + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text icon_state + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text battery_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture cover_exit + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Slider coverslider + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + Position : 0 + Upper range limit: 100 + Lower range limit: 0 + + Events + Touch Release Event + covx coverslider.val,va1.txt,0,0 + cover_value.txt=va1.txt+"%" + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"cover_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + +Button cover_open + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"open_cover\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + +Button cover_close + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close_cover\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + +Button cover_stop + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID: disabled + State : unpressed + Text : + Max. Text Size : 10 + + Events + Touch Press Event + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"stop_cover\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot cover_back + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints coversetting.txt,0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 8 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 7 + 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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/entitypage01.txt b/nspanel_eu_code/entitypage01.txt index 51a2560..0dae56e 100644 --- a/nspanel_eu_code/entitypage01.txt +++ b/nspanel_eu_code/entitypage01.txt @@ -1,797 +1,355 @@ -Page entitypage01 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 105 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"entitypage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage01\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage01\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text value01_label - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 55 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_label - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 178 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_label - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 148 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_label - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 87 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_label - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 118 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text entity01_label - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_label - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 208 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_label - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 238 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_label - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 268 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_pic - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 53 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_pic - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 86 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 116 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_pic - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 146 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_pic - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 176 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 206 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 236 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_pic - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 266 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 55 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 88 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 118 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 148 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05 - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 178 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06 - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 208 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 238 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 267 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Hotspot entity01_back - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 entitypage04 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - page entitypage03 - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - page entitypage04 - } - } - +Page entitypage01 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage01\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage01\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage01\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text entity01_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value07_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value08_label + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value01_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value06 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value07 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value08 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Hotspot entity01_back + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 entitypage04 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page entitypage03 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page entitypage04 + } + } + diff --git a/nspanel_eu_code/entitypage02.txt b/nspanel_eu_code/entitypage02.txt index b65b823..5c453cf 100644 --- a/nspanel_eu_code/entitypage02.txt +++ b/nspanel_eu_code/entitypage02.txt @@ -1,797 +1,355 @@ -Page entitypage02 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 106 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text value01_label - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 55 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_label - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 178 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_label - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 148 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_label - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 87 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_label - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 118 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text entity02_label - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_label - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 208 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_label - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 238 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_label - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 268 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_pic - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 53 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_pic - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 86 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 116 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_pic - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 146 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_pic - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 176 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 206 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 236 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_pic - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 266 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 55 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 88 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 118 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 148 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05 - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 178 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06 - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 208 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 238 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 267 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Hotspot entity02_back - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 entitypage01 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page entitypage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text entity02_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value07_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value08_label + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value01_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value06 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value07 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value08 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Hotspot entity02_back + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 entitypage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/entitypage03.txt b/nspanel_eu_code/entitypage03.txt index dc6f191..6c0658d 100644 --- a/nspanel_eu_code/entitypage03.txt +++ b/nspanel_eu_code/entitypage03.txt @@ -1,797 +1,355 @@ -Page entitypage03 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 107 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"entitypage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage03\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text value01_label - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 55 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_label - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 178 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_label - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 148 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_label - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 87 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_label - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 118 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text entity03_label - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_label - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 208 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_label - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 238 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_label - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 268 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_pic - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 53 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_pic - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 86 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 116 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_pic - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 146 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_pic - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 176 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 206 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 236 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_pic - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 266 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 55 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 88 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 118 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 148 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05 - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 178 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06 - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 208 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 238 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 267 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Hotspot entity03_back - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 entitypage02 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - page entitypage01 - } - } - +Page entitypage03 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage03\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text entity03_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value07_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value08_label + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value01_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value06 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value07 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value08 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Hotspot entity03_back + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 entitypage02 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page entitypage01 + } + } + diff --git a/nspanel_eu_code/entitypage04.txt b/nspanel_eu_code/entitypage04.txt index 012c549..76f4d0c 100644 --- a/nspanel_eu_code/entitypage04.txt +++ b/nspanel_eu_code/entitypage04.txt @@ -1,797 +1,355 @@ -Page entitypage04 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 108 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"entitypage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"entitypage04\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text value01_label - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 55 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_label - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 178 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_label - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 148 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_label - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 87 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_label - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 118 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text entity04_label - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_label - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 208 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_label - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 238 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_label - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 50 - y coordinate : 268 - Width : 270 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_pic - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 53 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02_pic - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 86 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03_pic - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 116 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04_pic - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 146 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05_pic - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 176 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06_pic - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 206 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 236 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08_pic - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 266 - Width : 28 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 7 - Cropped Back. Picture ID: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 55 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value02 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 88 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value03 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 118 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value04 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 148 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value05 - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 178 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value06 - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 208 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value07 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 238 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value08 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 330 - y coordinate : 267 - Width : 120 - Height : 28 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 0 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Hotspot entity04_back - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 entitypage03 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - page entitypage01 - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page entitypage04 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"entitypage04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"entitypage04\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text entity04_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value07_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value08_label + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text value01_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value06 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value07 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value08 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Hotspot entity04_back + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 entitypage03 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page entitypage01 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/home.txt b/nspanel_eu_code/home.txt index ddbbc3d..d821007 100644 --- a/nspanel_eu_code/home.txt +++ b/nspanel_eu_code/home.txt @@ -1,1324 +1,664 @@ -Page home - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 103 - - Events - Preinitialize Event - dim=brightness.val - dimtimer.en=1 - sleeptimer.en=1 - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis 255,0 - vis settings_click,1 - -Variable (int32) brightness - Attributes - ID : 2 - Scope: global - Value: 100 - -Variable (int32) brightdd - Attributes - ID : 3 - Scope: global - Value: 40 - -Variable (int32) disdim - Attributes - ID : 4 - Scope: global - Value: 0 - -Variable (int32) sleepmodus - Attributes - ID : 16 - Scope: global - Value: 0 - -Variable (string) lastclick - Attributes - ID : 54 - Scope : local - Text : - Max. Text Size: 100 - -Text time - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 251 - y coordinate : 45 - Width : 160 - Height : 62 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 6 - Cropped Back. Picture ID: 103 - Horizontal Alignment : right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text current_temp - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 59 - y coordinate : 178 - Width : 100 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 4 - Cropped Back. Picture ID: 103 - Horizontal Alignment : left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text outdoor_temp - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 133 - y coordinate : 124 - Width : 87 - Height : 37 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 4 - Cropped Back. Picture ID: 103 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : -28.7° - Max. Text Size : 8 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text date - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 221 - y coordinate : 110 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_state - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 56 - y coordinate : 222 - Width : 120 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 103 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text left_bt_text - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 47 - y coordinate : 283 - Width : 120 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 1 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text right_bt_text - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 288 - y coordinate : 281 - Width : 120 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 1 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_01 - Attributes - ID : 21 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 13 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_02 - Attributes - ID : 22 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 42 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_03 - Attributes - ID : 23 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 71 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_04 - Attributes - ID : 24 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 100 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_05 - Attributes - ID : 25 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 129 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_06 - Attributes - ID : 26 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 158 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_07 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 187 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_08 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 216 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_09 - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 245 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_top_10 - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 274 - y coordinate : 5 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01_icon - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 29 - y coordinate : 220 - 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: 103 - 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_state - Attributes - ID : 32 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 314 - y coordinate : 5 - Width : 100 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 103 - Horizontal Alignment : right - 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 : 33 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 416 - y coordinate : 5 - Width : 25 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - 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 : 34 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 29 - y coordinate : 245 - 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: 103 - 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_state - Attributes - ID : 35 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 56 - y coordinate : 247 - Width : 120 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 103 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text wifi_icon - Attributes - ID : 36 - Scope : global - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 424 - y coordinate : 53 - 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: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text indoortempicon - Attributes - ID : 37 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 184 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button01_icon - Attributes - ID : 38 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 292 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button02_icon - Attributes - ID : 39 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 339 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button03_icon - Attributes - ID : 40 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 386 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button04_icon - Attributes - ID : 41 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 245 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button05_icon - Attributes - ID : 42 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 292 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button06_icon - Attributes - ID : 43 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 339 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text button07_icon - Attributes - ID : 44 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 386 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 8 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text meridiem - Attributes - ID : 53 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 414 - y coordinate : 87 - Width : 35 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 2 - Cropped Back. Picture ID: 103 - Horizontal Alignment : center - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture weather - Attributes - ID : 11 - Scope : global - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 34 - y coordinate : 66 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 13 - -Picture left_bt_pic - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 47 - y coordinate : 307 - Width : 120 - Height : 3 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 77 - -Picture right_bt_pic - Attributes - ID : 20 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 288 - y coordinate : 307 - Width : 120 - Height : 3 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 77 - -Hotspot fc_weather - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 34 - y coordinate : 66 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot jump_climate - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 31 - y coordinate : 169 - Width : 108 - Height : 51 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button01 - Attributes - ID : 45 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 292 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button01\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button02 - Attributes - ID : 46 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 339 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button02\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button03 - Attributes - ID : 47 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 386 - y coordinate : 176 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button03\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button04 - Attributes - ID : 48 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 245 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button04\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button05 - Attributes - ID : 49 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 292 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button05\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button06 - Attributes - ID : 50 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 339 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button06\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot button07 - Attributes - ID : 51 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 386 - y coordinate : 224 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"home\", \"component\": \"button07\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot settings_click - Attributes - ID : 52 - Scope : local - Dragging : 0 - Send Component ID: on press and release - Opacity : 127 - x coordinate : 247 - y coordinate : 37 - Width : 167 - Height : 86 - Effect : load - Effect Priority : 0 - Effect Time : 300 - -Timer dimtimer - Attributes - ID : 1 - Scope : global - Period (ms): 50000 - Enabled : yes - - Events - Timer Event - if(disdim.val==0) - { - dim=brightdd.val // Dim down screen to val set from HA - } - -Timer swipestore - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - swipex=tch0 - swipey=tch1 - -Timer sleeptimer - Attributes - ID : 15 - Scope : local - Period (ms): 65000 - Enabled : no - - Events - Timer Event - if(sleepmodus.val==1) - { - screensaver.orign.val=0 - // Go to screensaver page - page screensaver - } - -TouchCap swipe - Attributes - ID : 5 - Scope: local - Value: 0 - - Events - Touch Press Event - swipestore.en=1 // Start swipestore timer - dim=brightness.val // Set brightness to saved value (from HA) - dimtimer.en=1 // Enable timer to calc down for dimming screen - sleeptimer.en=1 - - Touch Release Event - swipestore.en=0 - // Touch has ended, x - if(tch0==0) - { - swipec=swipex-tch2 - // From Left to Right - if(swipec>swipedx) - { - page buttonpage04 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - page buttonpage02 - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - page buttonpage03 - } - } - +Page home + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=brightness.val + dimtimer.en=1 + sleeptimer.en=1 + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + +Variable (int32) brightness + Attributes + ID : 2 + Scope: global + Value: 100 + +Variable (int32) brightdd + Attributes + ID : 3 + Scope: global + Value: 40 + +Variable (int32) disdim + Attributes + ID : 4 + Scope: global + Value: 0 + +Variable (int32) sleepmodus + Attributes + ID : 16 + Scope: global + Value: 0 + +Variable (string) lastclick + Attributes + ID : 54 + Scope : local + Text : + Max. Text Size: 100 + +Text time + Attributes + ID : 7 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text current_temp + Attributes + ID : 8 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 8 + +Text outdoor_temp + Attributes + ID : 9 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 8 + +Text date + Attributes + ID : 10 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text value01_state + Attributes + ID : 12 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text left_bt_text + Attributes + ID : 17 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text right_bt_text + Attributes + ID : 18 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text icon_top_01 + Attributes + ID : 21 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_02 + Attributes + ID : 22 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_03 + Attributes + ID : 23 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_04 + Attributes + ID : 24 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_05 + Attributes + ID : 25 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_06 + Attributes + ID : 26 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_07 + Attributes + ID : 27 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_08 + Attributes + ID : 28 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_09 + Attributes + ID : 29 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_top_10 + Attributes + ID : 30 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value01_icon + Attributes + ID : 31 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_state + Attributes + ID : 32 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 33 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 34 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_state + Attributes + ID : 35 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text wifi_icon + Attributes + ID : 36 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text indoortempicon + Attributes + ID : 37 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01_icon + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02_icon + Attributes + ID : 39 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03_icon + Attributes + ID : 40 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04_icon + Attributes + ID : 41 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05_icon + Attributes + ID : 42 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06_icon + Attributes + ID : 43 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07_icon + Attributes + ID : 44 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text meridiem + Attributes + ID : 53 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture weather + Attributes + ID : 11 + Scope : global + Dragging : 0 + Send Component ID: disabled + +Picture left_bt_pic + Attributes + ID : 19 + Scope : global + Dragging : 0 + Send Component ID: disabled + +Picture right_bt_pic + Attributes + ID : 20 + Scope : global + Dragging : 0 + Send Component ID: disabled + +Hotspot fc_weather + Attributes + ID : 13 + Scope : global + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot jump_climate + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button01 + Attributes + ID : 45 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button01\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button02 + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button02\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button03 + Attributes + ID : 47 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button03\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button04 + Attributes + ID : 48 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button04\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button05 + Attributes + ID : 49 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button05\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button06 + Attributes + ID : 50 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button06\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot button07 + Attributes + ID : 51 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"home\", \"component\": \"button07\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot settings_click + Attributes + ID : 52 + Scope : local + Dragging : 0 + Send Component ID: on press and release + +Timer dimtimer + Attributes + ID : 1 + Scope : global + Period (ms): 50000 + Enabled : yes + + Events + Timer Event + if(disdim.val==0) + { + dim=brightdd.val // Dim down screen to val set from HA + } + +Timer swipestore + Attributes + ID : 6 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer sleeptimer + Attributes + ID : 15 + Scope : local + Period (ms): 65000 + Enabled : no + + Events + Timer Event + if(sleepmodus.val==1) + { + screensaver.orign.val=0 + // Go to screensaver page + page screensaver + } + +TouchCap swipe + Attributes + ID : 5 + Scope: local + Value: 0 + + Events + Touch Press Event + swipestore.en=1 // Start swipestore timer + dim=brightness.val // Set brightness to saved value (from HA) + dimtimer.en=1 // Enable timer to calc down for dimming screen + sleeptimer.en=1 + + Touch Release Event + swipestore.en=0 + // Touch has ended, x + if(tch0==0) + { + swipec=swipex-tch2 + // From Left to Right + if(swipec>swipedx) + { + page buttonpage04 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page buttonpage02 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page buttonpage03 + } + } + diff --git a/nspanel_eu_code/lightsettings.txt b/nspanel_eu_code/lightsettings.txt index d9ef5de..b3fc5a7 100644 --- a/nspanel_eu_code/lightsettings.txt +++ b/nspanel_eu_code/lightsettings.txt @@ -1,983 +1,674 @@ -Page lightsettings - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : solid color - Back. Color : 0 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"lightsettings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - vis light_b_press,1 - vis lightslider,1 - vis light_value,1 - vis temp_value_2,1 - // #### OFF Button ##### - vis temp_b_press,0 - vis color_b_pres,0 - // #### OFF Value ##### - vis temp_value,0 - vis light_value_2,0 - // #### OFF Slider ##### - vis tempslider,0 - vis colorwheel,0 - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"lightsettings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"lightsettings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (int32) rgb565 - Attributes - ID : 22 - Scope: local - Value: 0 - -Variable (string) va1 - Attributes - ID : 23 - Scope : local - Text : newtxt - Max. Text Size: 20 - -Variable (string) va2 - Attributes - ID : 24 - Scope : local - Text : newtxt - Max. Text Size: 10 - -Variable (string) va3 - Attributes - ID : 25 - Scope : local - Text : newtxt - Max. Text Size: 10 - -Variable (int32) currenttab - Attributes - ID : 26 - Scope: local - Value: 0 - -Variable (string) lightsetting - Attributes - ID : 32 - Scope : local - Text : - Max. Text Size: 100 - -Number ring - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 459 - y coordinate : 188 - Width : 21 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment : right - Vertical Alignment : center - Value : 0 - Significant digits shown: all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Number field - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 459 - y coordinate : 233 - Width : 21 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 0 - Font Color : 0 - Horizontal Alignment : right - Vertical Alignment : center - Value : 0 - Significant digits shown: all - Format : decimal - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text light_value - Attributes - ID : 1 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 43 - Width : 83 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text light_name - Attributes - ID : 2 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 48 - y coordinate : 8 - Width : 300 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temp_value - Attributes - ID : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 43 - Width : 83 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text light_value_2 - Attributes - ID : 27 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 73 - y coordinate : 80 - Width : 50 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temp_value_2 - Attributes - ID : 28 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 331 - y coordinate : 80 - Width : 50 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: right - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text icon_state - Attributes - ID : 31 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 12 - y coordinate : 8 - Width : 35 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 8 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture light_button - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 20 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 69 - -Picture color_button - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 130 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 73 - -Picture temp_button - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 71 - -Picture light_b_press - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 20 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 70 - -Picture temp_b_press - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 72 - -Picture color_b_pres - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 130 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 74 - -Picture colorwheel - Attributes - ID : 16 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 125 - y coordinate : 68 - Width : 200 - Height : 200 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 50 - - Events - Touch Press Event - // Circular Color Picker for Nextion (c) Max Zuidberg 2022 - // This Source Code Form is subject to the terms of the Mozilla Public - // License, v. 2.0. If a copy of the MPL was not distributed with this - // file, You can obtain one at http://mozilla.org/MPL/2.0/. - // - // Put this code in the touch press or release - // event of the pic component with the color wheel. - // Requires the two variables field.val and ring.val - // - // sya0 = x, sya1 = sya1 - // Note the usage of the hidden sya0, sya1 variables - // within event code as local, temporary variable is fine. - sya0=tch0 - sya1=tch1 - // - // Convert absolute coordinates to coordinates relative to - // the color wheel center. - // sys0 = x_center, sys1 = y_center - sys0=colorwheel.w/2 - sys0+=colorwheel.x - sys1=colorwheel.h/2 - sys1+=colorwheel.y - sya0-=sys0 - sya1-=sys1 - // - // Determine ring - ring.val=0 - // sys0 = r^2 = x^2 + y^2 - sys0=sya0*sya0 - sys1=sya1*sya1 - sys0+=sys1 - // repeat for all rings - if(sys0>=156) - { - ring.val++ - } - if(sys0>=625) - { - ring.val++ - } - if(sys0>=1406) - { - ring.val++ - } - if(sys0>=2500) - { - ring.val++ - } - if(sys0>=3906) - { - ring.val++ - } - if(sys0>=5625) - { - ring.val++ - } - if(sys0>=7656) - { - ring.val++ - } - // - // Determine quadrant (0-3). Note: pixel y coords are inverted - // compared to mathematical y coords. But we want math. quadrants. - sya1*=-1 - sys2=0 - if(sya1<0) - { - sys2+=2 - } - sys0=sya0*sya1 - if(sys0<0) - { - sys2+=1 - // In this case we also want to swap x and y otherwise the - // atan(abs(x/y)) (calculated below) gives values running - // "the wrong way" (cw instead of ccw). - sys1=sya1 - sya1=sya0 - sya0=sys1 - } - // - field.val=sys2*6 - // - // x,y sign is not required anymore - if(sya0<0) - { - sya0*=-1 - } - if(sya1<0) - { - sya1*=-1 - } - // - // Determine field in ring quadrant - // Factor 100000 chosen more or less arbitrarily. - // sys0 = 100000 * tan_a = 100000 * y / x - sys0=100000*sya1 - sys0/=sya0 - // repeat for all fields - if(sys0>=26794) - { - field.val++ - } - if(sys0>=57735) - { - field.val++ - } - if(sys0>=99999) - { - field.val++ - } - if(sys0>=173205) - { - field.val++ - } - if(sys0>=373205) - { - field.val++ - } - covx r,va1.txt,0,0 - covx g,va2.txt,0,0 - covx b,va3.txt,0,0 - va1.txt="" - va2.txt="" - va3.txt="" - - Touch Release Event - // Adjust field.val "orientation" and offset to match the h value of the colors in the wheel - h=23-field.val// 0 <= field.val <= 23 - // h is expected to be 0-6*256 (see hsv2rgb) - h*=6*256 - h/=24// Number of fields - // - // s is expected to be 0-256 (see hsv2rgb) - s=ring.val*256 - s/=8// Number of rings - // no "value" selectable; fix it to the maximum (matching the colors in the wheels shown. - v=255 - click hsv2rgb,0 - click rgb888to565,0 - //colPreview.bco=rgb565.val - covx r,va1.txt,0,0 - covx g,va2.txt,0,0 - covx b,va3.txt,0,0 - lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+","+va2.txt+","+va3.txt+"]}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lightsetting.txt,0 - printh 00 - printh FF FF FF - va1.txt="" - va2.txt="" - va3.txt="" - -Picture light_exit - Attributes - ID : 29 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 415 - y coordinate : 10 - Width : 25 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 56 - -Slider lightslider - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 67 - Width : 85 - Height : 235 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Direction : vertical - Fill : image - Cursor width : auto - Cursor height : 255 - Back. Picture ID : 75 - Slided Back. Picture ID: 76 - Position : 0 - Upper range limit : 100 - Lower range limit : 0 - - Events - Touch Release Event - covx lightslider.val,va1.txt,0,0 - light_value.txt=va1.txt+"%" - light_value_2.txt=va1.txt+"%" - lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"brightness_pct\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lightsetting.txt,0 - printh 00 - printh FF FF FF - -Slider tempslider - Attributes - ID : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 183 - y coordinate : 67 - Width : 85 - Height : 235 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Direction : vertical - Fill : image - Cursor width : auto - Cursor height : 255 - Back. Picture ID : 64 - Slided Back. Picture ID: 64 - Position : 0 - Upper range limit : 500 - Lower range limit : 153 - - Events - Touch Release Event - covx tempslider.val,va1.txt,0,0 - temp_value.txt=va1.txt - temp_value_2.txt=va1.txt - lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"color_temp\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lightsetting.txt,0 - printh 00 - printh FF FF FF - -Hotspot hsv2rgb - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 440 - y coordinate : 278 - Width : 40 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - // https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_HSV_in_RGB - // The values range from 0..255 instead of 0..1 - // h ranges from 0..(6*256) - if(s>=256) - { - s=255 - }else if(s<0) - { - s=0 - } - if(v>=256) - { - v=255 - }else if(v<0) - { - v=0 - } - f=h&0xff - p=256-s - p*=v - p=p>>8// / 256 - q=s*f// 0-256*256 = 0-65536 - q=65536-q - q*=v - q=q>>16 - t=256-f - t*=s - t=65536-t - t*=v - t=t>>16 - // - f=h>>8 - if(f==1) - { - r=q - g=v - b=p - }else if(f==2) - { - r=p - g=v - b=t - }else if(f==3) - { - r=p - g=q - b=v - }else if(f==4) - { - r=t - g=p - b=v - }else if(f==5) - { - r=v - g=p - b=q - }else - { - r=v - g=t - b=p - } - -Hotspot rgb888to565 - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 440 - y coordinate : 300 - Width : 40 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - r=r&0xff - g=g&0xff - b=b&0xff - sys1=r>>3 - sys2=sys1<<6 - sys1=g>>2 - sys2+=sys1 - sys2=sys2<<5 - sys1=b>>3 - sys2+=sys1 - rgb565.val=sys2 - -Hotspot light_touch - Attributes - ID : 17 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 20 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - vis light_b_press,1 - vis lightslider,1 - vis light_value,1 - vis temp_value_2,1 - // #### OFF Button ##### - vis temp_b_press,0 - vis color_b_pres,0 - // #### OFF Value ##### - vis temp_value,0 - vis light_value_2,0 - // #### OFF Slider ##### - vis tempslider,0 - vis colorwheel,0 - -Hotspot temp_touch - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 67 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - vis temp_b_press,1 - vis tempslider,1 - vis temp_value,1 - vis light_value_2,1 - // #### OFF Button ##### - vis light_b_press,0 - vis color_b_pres,0 - // #### OFF Value ##### - vis light_value,0 - vis temp_value_2,0 - // #### OFF Slider ##### - vis lightslider,0 - vis colorwheel,0 - -Hotspot color_touch - Attributes - ID : 19 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 389 - y coordinate : 130 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - vis color_b_pres,1 - vis colorwheel,1 - vis light_value_2,1 - // #### OFF Button ##### - vis light_b_press,0 - vis temp_b_press,0 - // #### OFF Value ##### - vis light_value,0 - vis temp_value,0 - vis temp_value_2,0 - // #### OFF Slider ##### - vis lightslider,0 - vis tempslider,0 - // #### OFF Color ##### - -Hotspot light_back - Attributes - ID : 30 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 60 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"close\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lightsetting.txt,0 - printh 00 - printh FF FF FF - - Touch Release Event - lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"close\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lightsetting.txt,0 - printh 00 - printh FF FF FF - -Timer swipestore - Attributes - ID : 21 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - swipex=tch0 - swipey=tch1 - -TouchCap swipe - Attributes - ID : 20 - 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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page lightsettings + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"lightsettings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + vis light_b_press,1 + vis lightslider,1 + vis light_value,1 + vis temp_value_2,1 + // #### OFF Button ##### + vis temp_b_press,0 + vis color_b_pres,0 + // #### OFF Value ##### + vis temp_value,0 + vis light_value_2,0 + // #### OFF Slider ##### + vis tempslider,0 + vis colorwheel,0 + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"lightsettings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"lightsettings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (int32) rgb565 + Attributes + ID : 22 + Scope: local + Value: 0 + +Variable (string) va1 + Attributes + ID : 23 + Scope : local + Text : newtxt + Max. Text Size: 20 + +Variable (string) va2 + Attributes + ID : 24 + Scope : local + Text : newtxt + Max. Text Size: 10 + +Variable (string) va3 + Attributes + ID : 25 + Scope : local + Text : newtxt + Max. Text Size: 10 + +Variable (int32) currenttab + Attributes + ID : 26 + Scope: local + Value: 0 + +Variable (string) lightsetting + Attributes + ID : 32 + Scope : local + Text : + Max. Text Size: 100 + +Number ring + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Value : 0 + +Number field + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Value : 0 + +Text light_value + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text light_name + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text temp_value + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text light_value_2 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text temp_value_2 + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text icon_state + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture light_button + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture color_button + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture temp_button + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture light_b_press + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture temp_b_press + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture color_b_pres + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture colorwheel + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + // Circular Color Picker for Nextion (c) Max Zuidberg 2022 + // This Source Code Form is subject to the terms of the Mozilla Public + // License, v. 2.0. If a copy of the MPL was not distributed with this + // file, You can obtain one at http://mozilla.org/MPL/2.0/. + // + // Put this code in the touch press or release + // event of the pic component with the color wheel. + // Requires the two variables field.val and ring.val + // + // sya0 = x, sya1 = sya1 + // Note the usage of the hidden sya0, sya1 variables + // within event code as local, temporary variable is fine. + sya0=tch0 + sya1=tch1 + // + // Convert absolute coordinates to coordinates relative to + // the color wheel center. + // sys0 = x_center, sys1 = y_center + sys0=colorwheel.w/2 + sys0+=colorwheel.x + sys1=colorwheel.h/2 + sys1+=colorwheel.y + sya0-=sys0 + sya1-=sys1 + // + // Determine ring + ring.val=0 + // sys0 = r^2 = x^2 + y^2 + sys0=sya0*sya0 + sys1=sya1*sya1 + sys0+=sys1 + // repeat for all rings + if(sys0>=156) + { + ring.val++ + } + if(sys0>=625) + { + ring.val++ + } + if(sys0>=1406) + { + ring.val++ + } + if(sys0>=2500) + { + ring.val++ + } + if(sys0>=3906) + { + ring.val++ + } + if(sys0>=5625) + { + ring.val++ + } + if(sys0>=7656) + { + ring.val++ + } + // + // Determine quadrant (0-3). Note: pixel y coords are inverted + // compared to mathematical y coords. But we want math. quadrants. + sya1*=-1 + sys2=0 + if(sya1<0) + { + sys2+=2 + } + sys0=sya0*sya1 + if(sys0<0) + { + sys2+=1 + // In this case we also want to swap x and y otherwise the + // atan(abs(x/y)) (calculated below) gives values running + // "the wrong way" (cw instead of ccw). + sys1=sya1 + sya1=sya0 + sya0=sys1 + } + // + field.val=sys2*6 + // + // x,y sign is not required anymore + if(sya0<0) + { + sya0*=-1 + } + if(sya1<0) + { + sya1*=-1 + } + // + // Determine field in ring quadrant + // Factor 100000 chosen more or less arbitrarily. + // sys0 = 100000 * tan_a = 100000 * y / x + sys0=100000*sya1 + sys0/=sya0 + // repeat for all fields + if(sys0>=26794) + { + field.val++ + } + if(sys0>=57735) + { + field.val++ + } + if(sys0>=99999) + { + field.val++ + } + if(sys0>=173205) + { + field.val++ + } + if(sys0>=373205) + { + field.val++ + } + covx r,va1.txt,0,0 + covx g,va2.txt,0,0 + covx b,va3.txt,0,0 + va1.txt="" + va2.txt="" + va3.txt="" + + Touch Release Event + // Adjust field.val "orientation" and offset to match the h value of the colors in the wheel + h=23-field.val// 0 <= field.val <= 23 + // h is expected to be 0-6*256 (see hsv2rgb) + h*=6*256 + h/=24// Number of fields + // + // s is expected to be 0-256 (see hsv2rgb) + s=ring.val*256 + s/=8// Number of rings + // no "value" selectable; fix it to the maximum (matching the colors in the wheels shown. + v=255 + click hsv2rgb,0 + click rgb888to565,0 + //colPreview.bco=rgb565.val + covx r,va1.txt,0,0 + covx g,va2.txt,0,0 + covx b,va3.txt,0,0 + lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+","+va2.txt+","+va3.txt+"]}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lightsetting.txt,0 + printh 00 + printh FF FF FF + va1.txt="" + va2.txt="" + va3.txt="" + +Picture light_exit + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Slider lightslider + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + Position : 0 + Upper range limit: 100 + Lower range limit: 0 + + Events + Touch Release Event + covx lightslider.val,va1.txt,0,0 + light_value.txt=va1.txt+"%" + light_value_2.txt=va1.txt+"%" + lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"brightness_pct\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lightsetting.txt,0 + printh 00 + printh FF FF FF + +Slider tempslider + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + Position : 0 + Upper range limit: 500 + Lower range limit: 153 + + Events + Touch Release Event + covx tempslider.val,va1.txt,0,0 + temp_value.txt=va1.txt + temp_value_2.txt=va1.txt + lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"color_temp\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lightsetting.txt,0 + printh 00 + printh FF FF FF + +Hotspot hsv2rgb + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + // https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_HSV_in_RGB + // The values range from 0..255 instead of 0..1 + // h ranges from 0..(6*256) + if(s>=256) + { + s=255 + }else if(s<0) + { + s=0 + } + if(v>=256) + { + v=255 + }else if(v<0) + { + v=0 + } + f=h&0xff + p=256-s + p*=v + p=p>>8// / 256 + q=s*f// 0-256*256 = 0-65536 + q=65536-q + q*=v + q=q>>16 + t=256-f + t*=s + t=65536-t + t*=v + t=t>>16 + // + f=h>>8 + if(f==1) + { + r=q + g=v + b=p + }else if(f==2) + { + r=p + g=v + b=t + }else if(f==3) + { + r=p + g=q + b=v + }else if(f==4) + { + r=t + g=p + b=v + }else if(f==5) + { + r=v + g=p + b=q + }else + { + r=v + g=t + b=p + } + +Hotspot rgb888to565 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + r=r&0xff + g=g&0xff + b=b&0xff + sys1=r>>3 + sys2=sys1<<6 + sys1=g>>2 + sys2+=sys1 + sys2=sys2<<5 + sys1=b>>3 + sys2+=sys1 + rgb565.val=sys2 + +Hotspot light_touch + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + vis light_b_press,1 + vis lightslider,1 + vis light_value,1 + vis temp_value_2,1 + // #### OFF Button ##### + vis temp_b_press,0 + vis color_b_pres,0 + // #### OFF Value ##### + vis temp_value,0 + vis light_value_2,0 + // #### OFF Slider ##### + vis tempslider,0 + vis colorwheel,0 + +Hotspot temp_touch + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + vis temp_b_press,1 + vis tempslider,1 + vis temp_value,1 + vis light_value_2,1 + // #### OFF Button ##### + vis light_b_press,0 + vis color_b_pres,0 + // #### OFF Value ##### + vis light_value,0 + vis temp_value_2,0 + // #### OFF Slider ##### + vis lightslider,0 + vis colorwheel,0 + +Hotspot color_touch + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + vis color_b_pres,1 + vis colorwheel,1 + vis light_value_2,1 + // #### OFF Button ##### + vis light_b_press,0 + vis temp_b_press,0 + // #### OFF Value ##### + vis light_value,0 + vis temp_value,0 + vis temp_value_2,0 + // #### OFF Slider ##### + vis lightslider,0 + vis tempslider,0 + // #### OFF Color ##### + +Hotspot light_back + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"close\", \"value\": \"press\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lightsetting.txt,0 + printh 00 + printh FF FF FF + + Touch Release Event + lightsetting.txt="{\"page\": \"lightsettings\", \"component\": \"close\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lightsetting.txt,0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 21 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 20 + 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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/notification.txt b/nspanel_eu_code/notification.txt index afe6a7a..8ce367b 100644 --- a/nspanel_eu_code/notification.txt +++ b/nspanel_eu_code/notification.txt @@ -1,268 +1,181 @@ -Page notification - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 114 - - Events - Preinitialize Event - dim=home.brightness.val - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"notification\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Variable (string) lastclick - Attributes - ID : 10 - Scope : local - Text : - Max. Text Size: 100 - -Text notifi_text01 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 60 - Width : 398 - Height : 191 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 3 - Back. Color : 0 - Font Color : 65535 - Horizontal Alignment: center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 100 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text notifi_label - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 17 - y coordinate : 7 - Width : 300 - Height : 42 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 3 - Back. Color : 0 - Font Color : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture accept_pic - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 96 - y coordinate : 260 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 85 - -Picture clear_pic - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 270 - y coordinate : 260 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 86 - -Hotspot notifi_back - Attributes - ID : 1 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 35 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Press Event - page home - -Hotspot accept - Attributes - ID : 6 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 96 - y coordinate : 260 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Hotspot clear - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 270 - y coordinate : 260 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - - Events - Touch Release Event - lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints lastclick.txt,0 - printh 00 - printh FF FF FF - -Timer swipestore - Attributes - ID : 9 - Scope : local - Period (ms): 50 - Enabled : no - - Events - Timer Event - swipex=tch0 - swipey=tch1 - -TouchCap swipe - Attributes - ID : 8 - 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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page notification + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"notification\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Variable (string) lastclick + Attributes + ID : 10 + Scope : local + Text : + Max. Text Size: 100 + +Text notifi_text01 + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text notifi_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Picture accept_pic + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture clear_pic + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot notifi_back + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Press Event + page home + +Hotspot accept + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"notification\", \"component\": \"accept\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot clear + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: disabled + + Events + Touch Release Event + lastclick.txt="{\"page\": \"notification\", \"component\": \"clear\", \"value\": \"release\"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Timer swipestore + Attributes + ID : 9 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +TouchCap swipe + Attributes + ID : 8 + 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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/qrcode.txt b/nspanel_eu_code/qrcode.txt index faf3142..47a3d93 100644 --- a/nspanel_eu_code/qrcode.txt +++ b/nspanel_eu_code/qrcode.txt @@ -1,168 +1,125 @@ -Page qrcode - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 104 - - Events - Preinitialize Event - dim=home.brightness.val - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"qrcode\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"qrcode\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"qrcode\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text qrcode_label - Attributes - ID : 4 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 10 - y coordinate : 0 - Width : 300 - 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 : 50712 - Horizontal Alignment: left - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 30 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -QR Code qrcode_value - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 113 - y coordinate : 62 - Width : 222 - Height : 222 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Logo overlay : no - Text : - Max. Text Size : 50 - -Hotspot qrcode_back - Attributes - ID : 3 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page qrcode + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=home.brightness.val + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"qrcode\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"qrcode\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"qrcode\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text qrcode_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 30 + +QR Code qrcode_value + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + Text : + Max. Text Size : 50 + +Hotspot qrcode_back + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/screensaver.txt b/nspanel_eu_code/screensaver.txt index 4f9030d..5c7168e 100644 --- a/nspanel_eu_code/screensaver.txt +++ b/nspanel_eu_code/screensaver.txt @@ -1,48 +1,41 @@ -Page screensaver - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : solid color - Back. Color : 0 - - Events - Preinitialize Event - dim=0 - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"screensaver\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - page home - -Variable (int32) orign - Attributes - ID : 2 - Scope: global - Value: 0 - -TouchCap wakeup - Attributes - ID : 1 - Scope: local - Value: 0 - - Events - Touch Press Event - page orign.val - +Page screensaver + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=0 + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"screensaver\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + page home + +Variable (int32) orign + Attributes + ID : 2 + Scope: global + Value: 0 + +TouchCap wakeup + Attributes + ID : 1 + Scope: local + Value: 0 + + Events + Touch Press Event + page orign.val + diff --git a/nspanel_eu_code/settings.txt b/nspanel_eu_code/settings.txt index 865b2ac..9c993e4 100644 --- a/nspanel_eu_code/settings.txt +++ b/nspanel_eu_code/settings.txt @@ -1,418 +1,228 @@ -Page settings - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 99 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 - printh 00 - printh FF FF FF - -Text a03 - Attributes - ID : 5 - Scope : global - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 328 - y coordinate : 46 - Width : 40 - Height : 20 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 99 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 3 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text a04 - Attributes - ID : 6 - Scope : global - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 328 - y coordinate : 77 - Width : 40 - Height : 21 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 99 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 3 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text a06 - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 38 - Width : 120 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 99 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Reboot - Max. Text Size : 6 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text a07 - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 84 - Width : 120 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 3 - Cropped Back. Picture ID: 99 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Sleep - Max. Text Size : 5 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text a08 - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 183 - Width : 85 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 1 - Cropped Back. Picture ID: 99 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Brightness - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text a09 - Attributes - ID : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 243 - Width : 85 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Associated Keyboard : none - Font ID : 1 - Cropped Back. Picture ID: 99 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : Dimming - Max. Text Size : 7 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture settings_exit - Attributes - ID : 11 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 415 - y coordinate : 10 - Width : 25 - Height : 25 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 56 - -Slider brightslider - Attributes - ID : 3 - Scope : global - Dragging : 0 - Send Component ID : on press and release - Opacity : 127 - x coordinate : 140 - y coordinate : 183 - Width : 255 - Height : 41 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Direction : horizontal - Fill : crop image - Cursor width : auto - Cursor height : 255 - Cropped Back. Picture ID : 99 - Cropped Slided Back. Picture ID: 100 - Position : 80 - Upper range limit : 100 - Lower range limit : 0 - - Events - Touch Release Event - printh 91 - prints "brightslider",0 - printh 00 - prints brightslider.val,0 - printh FF FF FF - -Slider dimslider - Attributes - ID : 4 - Scope : global - Dragging : 0 - Send Component ID : on press and release - Opacity : 127 - x coordinate : 140 - y coordinate : 243 - Width : 255 - Height : 41 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Direction : horizontal - Fill : crop image - Cursor width : auto - Cursor height : 255 - Cropped Back. Picture ID : 99 - Cropped Slided Back. Picture ID: 100 - Position : 20 - Upper range limit : 100 - Lower range limit : 0 - - Events - Touch Release Event - printh 91 - prints "dimslider",0 - printh 00 - prints dimslider.val,0 - printh FF FF FF - -Dual-state Button bt0 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Send Component ID : on press and release - Opacity : 127 - x coordinate : 136 - y coordinate : 36 - Width : 83 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Font ID : 1 - Cropped Back. Picture ID (Unpressed): 99 - Back. Picture ID (Pressed) : 65535 - Cropped Back. Picture ID (Pressed) : 100 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 0 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Dual-state Button bt1 - Attributes - ID : 14 - Scope : global - Dragging : 0 - Send Component ID : on press and release - Opacity : 127 - x coordinate : 138 - y coordinate : 88 - Width : 83 - Height : 40 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : crop image - Font ID : 1 - Cropped Back. Picture ID (Unpressed): 99 - Back. Picture ID (Pressed) : 65535 - Cropped Back. Picture ID (Pressed) : 100 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 0 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Hotspot setings_back - Attributes - ID : 12 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - y coordinate : 0 - Width : 60 - Height : 60 - 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 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page settings + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text a03 + Attributes + ID : 5 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text a04 + Attributes + ID : 6 + Scope : global + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text a06 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Reboot + Max. Text Size : 6 + +Text a07 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Sleep + Max. Text Size : 5 + +Text a08 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Brightness + Max. Text Size : 10 + +Text a09 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Dimming + Max. Text Size : 7 + +Picture settings_exit + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Slider brightslider + Attributes + ID : 3 + Scope : global + Dragging : 0 + Send Component ID: on press and release + Position : 80 + Upper range limit: 100 + Lower range limit: 0 + + Events + Touch Release Event + printh 91 + prints "brightslider",0 + printh 00 + prints brightslider.val,0 + printh FF FF FF + +Slider dimslider + Attributes + ID : 4 + Scope : global + Dragging : 0 + Send Component ID: on press and release + Position : 20 + Upper range limit: 100 + Lower range limit: 0 + + Events + Touch Release Event + printh 91 + prints "dimslider",0 + printh 00 + prints dimslider.val,0 + printh FF FF FF + +Dual-state Button bt0 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : + Max. Text Size : 0 + +Dual-state Button bt1 + Attributes + ID : 14 + Scope : global + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : + Max. Text Size : 0 + +Hotspot setings_back + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/weather01.txt b/nspanel_eu_code/weather01.txt index db7ecd9..b3c876c 100644 --- a/nspanel_eu_code/weather01.txt +++ b/nspanel_eu_code/weather01.txt @@ -1,516 +1,252 @@ -Page weather01 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 218 - y coordinate : 55 - 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: 0 - 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 : 188 - y coordinate : 97 - 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: 0 - 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 : 40 - y coordinate : 148 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 15 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text loading - Attributes - ID : 8 - 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 - -Text value01 - Attributes - ID : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 162 - 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: 0 - 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 : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 278 - 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: 0 - 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 : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 249 - 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: 0 - 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 : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 191 - 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: 0 - 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 : 13 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 219 - 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: 0 - 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 : 14 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 400 - y coordinate : 159 - 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: 0 - 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 : 15 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 400 - y coordinate : 188 - 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: 0 - 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 : 16 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 400 - y coordinate : 218 - 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: 0 - 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 : 17 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 400 - y coordinate : 245 - 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: 0 - 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 : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 400 - y coordinate : 275 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - 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 : 50 - y coordinate : 41 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot weather_back - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page weather01 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + 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 + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text date + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text temperature + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text loading + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 1 + +Text value01 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value05 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value04 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value02 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value03 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value01_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05_icon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture weather_icon + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot weather_back + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/weather02.txt b/nspanel_eu_code/weather02.txt index e4ae451..5c39501 100644 --- a/nspanel_eu_code/weather02.txt +++ b/nspanel_eu_code/weather02.txt @@ -1,516 +1,252 @@ -Page weather02 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 110 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"weather02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather02\", \"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 : 218 - y coordinate : 55 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text loading - Attributes - ID : 6 - 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 - -Text date - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 188 - y coordinate : 97 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 162 - 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: 0 - 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 : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 278 - 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: 0 - 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 : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 249 - 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: 0 - 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 : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 191 - 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: 0 - 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 : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 219 - 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: 0 - 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 : 400 - y coordinate : 159 - 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: 0 - 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 : 400 - y coordinate : 188 - 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: 0 - 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 : 400 - y coordinate : 218 - 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: 0 - 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 : 400 - y coordinate : 245 - 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: 0 - 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 : 400 - y coordinate : 275 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temperature - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 40 - y coordinate : 148 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 15 - 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 : 50 - y coordinate : 41 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot weather_back - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 weather01 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page weather02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"weather02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather02\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather02\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text day + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text loading + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 1 + +Text date + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text value01 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value05 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value04 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value02 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value03 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value01_icon + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text temperature + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Picture weather_icon + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot weather_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 weather01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/weather03.txt b/nspanel_eu_code/weather03.txt index 5aa6844..5ef9270 100644 --- a/nspanel_eu_code/weather03.txt +++ b/nspanel_eu_code/weather03.txt @@ -1,516 +1,252 @@ -Page weather03 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 111 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"weather03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather03\", \"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 : 218 - y coordinate : 55 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text loading - Attributes - ID : 6 - 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 - -Text date - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 188 - y coordinate : 97 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 162 - 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: 0 - 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 : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 278 - 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: 0 - 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 : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 249 - 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: 0 - 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 : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 191 - 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: 0 - 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 : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 219 - 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: 0 - 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 : 400 - y coordinate : 159 - 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: 0 - 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 : 400 - y coordinate : 188 - 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: 0 - 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 : 400 - y coordinate : 218 - 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: 0 - 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 : 400 - y coordinate : 245 - 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: 0 - 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 : 400 - y coordinate : 275 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temperature - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 40 - y coordinate : 148 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 15 - 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 : 50 - y coordinate : 41 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot weather_back - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 weather02 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page weather03 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"weather03\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather03\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather03\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text day + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text loading + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 1 + +Text date + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text value01 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value05 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value04 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value02 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value03 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value01_icon + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text temperature + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Picture weather_icon + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot weather_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 weather02 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/weather04.txt b/nspanel_eu_code/weather04.txt index 391dd64..ba3bcf6 100644 --- a/nspanel_eu_code/weather04.txt +++ b/nspanel_eu_code/weather04.txt @@ -1,516 +1,252 @@ -Page weather04 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 112 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"weather04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather04\", \"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 : 218 - y coordinate : 55 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text loading - Attributes - ID : 6 - 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 - -Text date - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 188 - y coordinate : 97 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 162 - 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: 0 - 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 : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 278 - 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: 0 - 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 : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 249 - 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: 0 - 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 : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 191 - 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: 0 - 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 : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 219 - 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: 0 - 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 : 400 - y coordinate : 159 - 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: 0 - 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 : 400 - y coordinate : 188 - 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: 0 - 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 : 400 - y coordinate : 218 - 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: 0 - 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 : 400 - y coordinate : 245 - 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: 0 - 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 : 400 - y coordinate : 275 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temperature - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 40 - y coordinate : 148 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 15 - 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 : 50 - y coordinate : 41 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot weather_back - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 weather03 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page weather04 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"weather04\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather04\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather04\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text day + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text loading + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 1 + +Text date + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text value01 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value05 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value04 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value02 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value03 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value01_icon + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text temperature + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Picture weather_icon + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot weather_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 weather03 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/nspanel_eu_code/weather05.txt b/nspanel_eu_code/weather05.txt index 4e286ad..52c56c3 100644 --- a/nspanel_eu_code/weather05.txt +++ b/nspanel_eu_code/weather05.txt @@ -1,516 +1,252 @@ -Page weather05 - Attributes - ID : 0 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - 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 : 113 - - Events - Preinitialize Event - printh 92 - prints "nspanelevent",0 - printh 00 - prints "{\"page\": \"weather05\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 - printh 00 - printh FF FF FF - - Touch Press Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather05\", \"component\": \"touchevent\", \"value\": \"press\"}",0 - printh 00 - printh FF FF FF - - Touch Release Event - printh 92 - prints "touchevent",0 - printh 00 - prints "{\"page\": \"weather05\", \"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 : 218 - y coordinate : 55 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text loading - Attributes - ID : 6 - 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 - -Text date - Attributes - ID : 7 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 188 - y coordinate : 97 - 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: 0 - Horizontal Alignment : right - Vertical Alignment : bottom - Input Type : character - Text : - Max. Text Size : 25 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text value01 - Attributes - ID : 8 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 162 - 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: 0 - 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 : 9 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 278 - 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: 0 - 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 : 10 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 249 - 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: 0 - 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 : 11 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 191 - 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: 0 - 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 : 12 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 170 - y coordinate : 219 - 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: 0 - 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 : 400 - y coordinate : 159 - 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: 0 - 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 : 400 - y coordinate : 188 - 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: 0 - 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 : 400 - y coordinate : 218 - 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: 0 - 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 : 400 - y coordinate : 245 - 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: 0 - 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 : 400 - y coordinate : 275 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text temperature - Attributes - ID : 18 - Scope : local - Dragging : 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 40 - y coordinate : 148 - 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: 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 15 - 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 : 50 - y coordinate : 41 - Width : 100 - Height : 100 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 1 - -Hotspot weather_back - Attributes - ID : 5 - Scope : local - Dragging : 0 - Send Component ID: disabled - Opacity : 127 - x coordinate : 387 - 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 weather04 - } - // Right to Left - swipec2=0-swipedx - if(swipec100) - { - //page - } - // Down to Up - swipec2=0-swipedy - if(swipec<-100) - { - //page - } - } - +Page weather05 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"weather05\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather05\", \"component\": \"touchevent\", \"value\": \"press\"}",0 + printh 00 + printh FF FF FF + + Touch Release Event + printh 92 + prints "touchevent",0 + printh 00 + prints "{\"page\": \"weather05\", \"component\": \"touchevent\", \"value\": \"release\"}",0 + printh 00 + printh FF FF FF + +Text day + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text loading + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 1 + +Text date + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 25 + +Text value01 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value05 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value04 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value02 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value03 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Text value01_icon + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value05_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text temperature + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 15 + +Picture weather_icon + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Hotspot weather_back + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + + 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 weather04 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } +