svghmi/widgets_common.ysl2
branchsvghmi
changeset 3040 acecaeadf20d
parent 3026 d454ed480c0f
child 3058 6ea4b7e1a9ed
equal deleted inserted replaced
3039:5ca37a7b89e2 3040:acecaeadf20d
   181         change_hmi_value(index,opstr) {
   181         change_hmi_value(index,opstr) {
   182             return change_hmi_value(this.get_variable_index(index), opstr);
   182             return change_hmi_value(this.get_variable_index(index), opstr);
   183         }
   183         }
   184 
   184 
   185         apply_hmi_value(index, new_val) {
   185         apply_hmi_value(index, new_val) {
   186             return apply_hmi_value(this.get_variable_index(0), new_val);
   186             return apply_hmi_value(this.get_variable_index(index), new_val);
   187         }
   187         }
   188 
   188 
   189         new_hmi_value(index, value, oldval) {
   189         new_hmi_value(index, value, oldval) {
   190             // TODO avoid searching, store index at sub()
   190             // TODO avoid searching, store index at sub()
   191             for(let i = 0; i < this.indexes.length; i++) {
   191             for(let i = 0; i < this.indexes.length; i++) {