Subversion Repositories Projects

Rev

Rev 242 | Rev 252 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 242 Rev 245
Line 883... Line 883...
883
                    //symbol_left+=         g.getFont().stringWidth("88,8V");//;
883
                    //symbol_left+=         g.getFont().stringWidth("88,8V");//;
Line 884... Line 884...
884
 
884
 
885
                    symbol_paint(g,symbol_left,6,0);
885
                    symbol_paint(g,symbol_left,6,0);
Line 886... Line 886...
886
                    symbol_left+=5*(symbols_img_tile_width)/4;
886
                    symbol_left+=5*(symbols_img_tile_width)/4;
887
 
-
 
888
                    symbol_paint(g,symbol_left,(mk.SenderOkay())/100,1);
887
 
889
                    symbol_left+=(symbols_img_tile_width);
888
                    if (mk.SenderOkay()!=0)
890
 
889
                        {
Line -... Line 890...
-
 
890
                            symbol_paint(g,symbol_left,(mk.SenderOkay())/100,1);
-
 
891
                            symbol_left+=(symbols_img_tile_width);
-
 
892
 
891
                    symbol_paint(g,symbol_left,(mk.SenderOkay()/10)%10,1);
893
                            symbol_paint(g,symbol_left,(mk.SenderOkay()/10)%10,1);
892
                    symbol_left+=(symbols_img_tile_width);
894
                            symbol_left+=(symbols_img_tile_width);
Line 893... Line 895...
893
 
895
                        }
Line 1030... Line 1032...
1030
                    break;
1032
                    break;
Line 1031... Line 1033...
1031
 
1033
 
1032
                case STATEID_DATABUFF:
1034
                case STATEID_DATABUFF:
Line -... Line 1035...
-
 
1035
                    g.setFont(f2);
1033
                    g.setFont(f2);
1036
 
Line 1034... Line 1037...
1034
 
1037
                    int lines2paint=(((canvas_height-y_off)/spacer1));
1035
                    y_off=canvas_height-spacer1;
1038
                    y_off=canvas_height-spacer1;
Line 1036... Line 1039...
1036
 
1039
 
1037
                    for (int pos_y=0;pos_y<(((canvas_height-spacer1)/spacer1));pos_y++)
1040
                    for (int pos_y=0;pos_y<lines2paint;pos_y++)
1038
                        {
1041
                        {
Line 1332... Line 1335...
1332
                    y_off+=spacer1;
1335
                    y_off+=spacer1;
1333
                    g.drawString( " rc:"+mk.stats.stick_data_count+" params:"+mk.stats.params_data_count + " GPS:"+mk.stats.navi_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
1336
                    g.drawString( " rc:"+mk.stats.stick_data_count+" params:"+mk.stats.params_data_count + " GPS:"+mk.stats.navi_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
1334
                    y_off+=spacer1;
1337
                    y_off+=spacer1;
1335
                    g.drawString( " debug_names:" + mk.stats.debug_names_count + " angles:" + mk.stats.angle_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
1338
                    g.drawString( " debug_names:" + mk.stats.debug_names_count + " angles:" + mk.stats.angle_data_count ,0,y_off,Graphics.TOP | Graphics.LEFT);
Line 1336... Line -...
1336
 
-
 
-
 
1339
 
1337
 
1340
                    y_off+=spacer1;
Line 1338... Line 1341...
1338
                    g.drawString( " other:"+mk.stats.other_data_count,0,y_off,Graphics.TOP | Graphics.LEFT);
1341
                    g.drawString( " other:"+mk.stats.other_data_count,0,y_off,Graphics.TOP | Graphics.LEFT);
1339
 
1342
 
1340
                    y_off+=spacer1+3;
1343
                    y_off+=spacer1+3;
Line 1472... Line 1475...
1472
 
1475
 
Line 1473... Line 1476...
1473
 
1476
 
1474
 
1477
 
1475
                    break;
1478
                    break;
1476
 
1479
 
Line 1477... Line 1480...
1477
                case STATEID_FLIGHTVIEW:
1480
                case STATEID_LCD:
Line 1638... Line 1641...
1638
                lcd_lines=new String[2];
1641
                lcd_lines=new String[2];
1639
                lcd_lines[0]=act_input_str;
1642
                lcd_lines[0]=act_input_str;
1640
                lcd_lines[1]="^";
1643
                lcd_lines[1]="^";
Line 1641... Line 1644...
1641
               
1644
               
1642
                break;
1645
                break;
1643
            case STATEID_FLIGHTVIEW:
1646
            case STATEID_LCD:
1644
                mk.user_intent=USER_INTENT_LCD;
1647
                mk.user_intent=USER_INTENT_LCD;
1645
                break;
1648
                break;
Line 1646... Line 1649...
1646
            case STATEID_RESET_PARAMS:
1649
            case STATEID_RESET_PARAMS:
Line 2014... Line 2017...
2014
            case ACTIONID_KEYCONTROL:
2017
            case ACTIONID_KEYCONTROL:
2015
                chg_state(STATEID_KEYCONTROL);
2018
                chg_state(STATEID_KEYCONTROL);
2016
                break;
2019
                break;
Line 2017... Line 2020...
2017
                               
2020
                               
2018
            case ACTIONID_LCD :
2021
            case ACTIONID_LCD :
2019
                chg_state(STATEID_FLIGHTVIEW);
2022
                chg_state(STATEID_LCD);
Line 2020... Line 2023...
2020
                break;
2023
                break;
Line 2151... Line 2154...
2151
                case STATEID_EDIT_PARAMS:              
2154
                case STATEID_EDIT_PARAMS:              
2152
                    params_editor.pointer_press(pointer_x,(pointer_y-(canvas_height-lcd_img.getHeight()*lcd_lines.length))/lcd_img.getHeight()) ;
2155
                    params_editor.pointer_press(pointer_x,(pointer_y-(canvas_height-lcd_img.getHeight()*lcd_lines.length))/lcd_img.getHeight()) ;
Line 2153... Line 2156...
2153
 
2156
 
Line -... Line 2157...
-
 
2157
                    break;
-
 
2158
 
-
 
2159
                case STATEID_LCD:
-
 
2160
                    if (pointer_x<(canvas_width/2))
-
 
2161
                        keyPressed(getKeyCode(LEFT));
-
 
2162
                    else
2154
                    break;
2163
                        keyPressed(getKeyCode(RIGHT));
2155
 
2164
                    break;
2156
                case STATEID_PARAM_MENU:
2165
                case STATEID_PARAM_MENU:
2157
                case STATEID_CONN_DETAILS:
2166
                case STATEID_CONN_DETAILS:
2158
                case STATEID_HANDLE_PARAMS:
2167
                case STATEID_HANDLE_PARAMS:
Line 2165... Line 2174...
2165
       
2174
       
2166
 
2175
 
2167
                    //      if (pointer_y>canvas_height-lcd_img.getHeight()*menu_items.length)
2176
                    //      if (pointer_y>canvas_height-lcd_img.getHeight()*menu_items.length)
2168
                    //  {                       
2177
                    //  {                       
2169
                    if (lcd_lines.length>max_lines)
2178
                    if (lcd_lines.length>max_lines)
2170
                        act_menu_select=(pointer_y-(canvas_height-lcd_img.getHeight()*max_lines))/lcd_img.getHeight() ;
2179
                        act_menu_select=(pointer_y-(canvas_height-lcd_img.getHeight()*max_lines))/lcd_img.getHeight() +lcd_off ;
2171
                        else
2180
                        else
2172
                        act_menu_select=(pointer_y-(canvas_height-lcd_img.getHeight()*lcd_lines.length))/lcd_img.getHeight() ;
2181
                        act_menu_select=(pointer_y-(canvas_height-lcd_img.getHeight()*lcd_lines.length))/lcd_img.getHeight() ;
2173
                    keyPressed(getKeyCode(FIRE));
2182
                    keyPressed(getKeyCode(FIRE));
Line 2593... Line 2602...
2593
 
2602
 
2594
            case STATEID_EDIT_PARAMS:
2603
            case STATEID_EDIT_PARAMS:
2595
                params_editor.keypress(keyCode,getGameAction (keyCode)) ;
2604
                params_editor.keypress(keyCode,getGameAction (keyCode)) ;
Line 2596... Line 2605...
2596
                break;
2605
                break;
Line 2597... Line 2606...
2597
 
2606
 
2598
            case STATEID_FLIGHTVIEW:
2607
            case STATEID_LCD:
2599
 
2608
 
2600
                if ((keyCode >= this.KEY_NUM0) && (keyCode <= this.KEY_NUM9))              
2609
                if ((keyCode >= this.KEY_NUM0) && (keyCode <= this.KEY_NUM9))