Rev 255 | Rev 266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 255 | Rev 258 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | 68 | ||
69 | public void refresh_lcd() |
69 | public void refresh_lcd() |
Line 70... | Line 70... | ||
70 | { |
70 | { |
71 | 71 | ||
Line 72... | Line 72... | ||
72 | try { |
72 | try { |
73 | act_lcd_lines=edit_source.field_names[act_tab].length*2+2; |
73 | act_lcd_lines=edit_source.field_stringids[act_tab].length*2+2; |
Line 74... | Line 74... | ||
74 | 74 | ||
Line 75... | Line 75... | ||
75 | for ( int i=0;i<act_lcd_lines;i++) |
75 | for ( int i=0;i<act_lcd_lines;i++) |
76 | lcd_lines[i]=""; |
76 | lcd_lines[i]=""; |
77 | 77 | ||
Line 78... | Line 78... | ||
78 | 78 | ||
79 | 79 | ||
80 | // lcd_lines[0]=(act_tab==0?" ":"< ") + edit_source.tab_stringids[act_tab] + (act_tab==(edit_source.tab_stringids.length-1)?" ":" >"); |
80 | // lcd_lines[0]=(act_tab==0?" ":"< ") + edit_source.tab_stringids[act_tab] + (act_tab==(edit_source.tab_stringids.length-1)?" ":" >"); |
81 | 81 | ||
82 | for (int i=0;i<edit_source.field_names[act_tab].length;i++) |
82 | for (int i=0;i<edit_source.field_stringids[act_tab].length;i++) |
Line 83... | Line 83... | ||
83 | { |
83 | { |
84 | lcd_lines[2*i]=edit_source.field_names[act_tab][i]; |
84 | lcd_lines[2*i]=canvas.l(edit_source.field_stringids[act_tab][i]); |
Line 115... | Line 115... | ||
115 | break; |
115 | break; |
Line 116... | Line 116... | ||
116 | 116 | ||
117 | 117 | ||
118 | case PARAMTYPE_KEY: |
118 | case PARAMTYPE_KEY: |
119 | if (edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])==-4242) |
119 | if (edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])==-4242) |
120 | lcd_lines[1+2*i]="none"; |
120 | lcd_lines[1+2*i]=canvas.l(STRINGID_NONE_ASSIGNED); |
121 | else |
121 | else |
122 | lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]); |
122 | lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]); |
123 | break; |
123 | break; |
124 | case PARAMTYPE_STICK: |
124 | case PARAMTYPE_STICK: |
Line 125... | Line 125... | ||
125 | lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]); |
125 | lcd_lines[1+2*i]=" "+edit_source.get_field_from_act(edit_source.field_positions[act_tab][i]); |
126 | break; |
126 | break; |
127 | 127 | ||
Line 128... | Line 128... | ||
128 | default: |
128 | default: |
Line 129... | Line 129... | ||
129 | lcd_lines[1+2*i]=" "+edit_source.choice_strings[edit_source.field_types[act_tab][i]-PARAMTYPE_CHOICE][edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])]; |
129 | lcd_lines[1+2*i]=" "+canvas.l(edit_source.choice_stringids[edit_source.field_types[act_tab][i]-PARAMTYPE_CHOICE][edit_source.get_field_from_act(edit_source.field_positions[act_tab][i])]); |
Line 289... | Line 289... | ||
289 | case PARAMTYPE_STICK: |
289 | case PARAMTYPE_STICK: |
290 | edit_source.field_from_act_add_min_max(edit_source.field_positions[act_tab][act_pos],1,0,10); |
290 | edit_source.field_from_act_add_min_max(edit_source.field_positions[act_tab][act_pos],1,0,10); |
291 | break; |
291 | break; |
Line 292... | Line 292... | ||
292 | 292 | ||
293 | default: |
293 | default: |
294 | edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_strings[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length); |
294 | edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_stringids[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length); |
295 | break; |
295 | break; |
296 | } |
296 | } |
Line 297... | Line 297... | ||
297 | break; |
297 | break; |
Line 310... | Line 310... | ||
310 | break; |
310 | break; |
311 | case PARAMTYPE_STICK: |
311 | case PARAMTYPE_STICK: |
312 | edit_source.field_from_act_add_min_max(edit_source.field_positions[act_tab][act_pos],-1,0,10); |
312 | edit_source.field_from_act_add_min_max(edit_source.field_positions[act_tab][act_pos],-1,0,10); |
313 | break; |
313 | break; |
314 | default: |
314 | default: |
315 | edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_strings[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length); |
315 | edit_source.field_from_act_add_mod(edit_source.field_positions[act_tab][act_pos],1,edit_source.choice_stringids[edit_source.field_types[act_tab][act_pos]-PARAMTYPE_CHOICE].length); |
316 | break; |
316 | break; |
317 | } |
317 | } |
Line 318... | Line 318... | ||
318 | 318 |