Subversion Repositories Projects

Rev

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

Rev 220 Rev 221
Line 21... Line 21...
21
 
21
 
22
    /* all settings hold here */
22
    /* all settings hold here */
23
    //holds id of actual skin
23
    //holds id of actual skin
Line -... Line 24...
-
 
24
    public byte act_skin=SKINID_DARK;
-
 
25
 
-
 
26
 
-
 
27
 
-
 
28
    public int key_back;
-
 
29
    public int key_fullscreen;
-
 
30
    public int key_clear;
-
 
31
 
24
    public byte act_skin=SKINID_DARK;
32
    public int remote_cam_stick;
25
 
33
 
Line 26... Line 34...
26
    public String connection_name="";
34
    public String connection_name="";
27
    public String connection_url="";
35
    public String connection_url="";
Line 56... Line 64...
56
    {
64
    {
Line 57... Line 65...
57
       
65
       
58
        if (pos==0)
66
        if (pos==0)
59
            {
67
            {
60
                act_skin=(byte)val;
68
                act_skin=(byte)val;
61
                canvas.load_images();
69
                canvas.load_skin_images();
Line 62... Line 70...
62
            }
70
            }
63
 
71
 
64
        if ((pos==1)&&((val&1)==1)&&(!fullscreen))
72
        if ((pos==1)&&((val&1)==1)&&(!fullscreen))
Line 74... Line 82...
74
            }
82
            }
Line 75... Line 83...
75
 
83
 
76
        if ((pos==1)&&((val&2)==2)&&(!do_scrollbg))
84
        if ((pos==1)&&((val&2)==2)&&(!do_scrollbg))
77
            {
85
            {
78
                do_scrollbg=true;
86
                do_scrollbg=true;
79
                canvas.load_images();
87
                canvas.load_skin_images();
Line 80... Line 88...
80
            }
88
            }
81
 
89
 
82
        if ((pos==1)&&((val&2)==0)&&(do_scrollbg))
90
        if ((pos==1)&&((val&2)==0)&&(do_scrollbg))
83
            {
91
            {
84
                do_scrollbg=false;
92
                do_scrollbg=false;
Line 85... Line 93...
85
                canvas.load_images();
93
                canvas.load_skin_images();
86
            }
94
            }
Line 112... Line 120...
112
        if (pos==7)
120
        if (pos==7)
113
            default_extern_control[EXTERN_CONTROL_GAS]=(byte)val;          
121
            default_extern_control[EXTERN_CONTROL_GAS]=(byte)val;          
Line 114... Line 122...
114
 
122
 
115
        if (pos==8)
123
        if (pos==8)
-
 
124
            default_extern_control[EXTERN_CONTROL_HIGHT]=(byte)val;        
-
 
125
 
-
 
126
 
-
 
127
        if (pos==9)
-
 
128
            key_back=val;          
-
 
129
 
-
 
130
        if (pos==10)
-
 
131
            key_fullscreen=val;
-
 
132
 
-
 
133
        if (pos==11)
-
 
134
            key_clear=val;
-
 
135
 
-
 
136
        if (pos==12)
116
            default_extern_control[EXTERN_CONTROL_HIGHT]=(byte)val;        
137
            remote_cam_stick=val;
Line 117... Line 138...
117
    }
138
    }
Line 128... Line 149...
128
 
149
 
Line 129... Line 150...
129
    /* end of all settings hold here */
150
    /* end of all settings hold here */
Line 130... Line 151...
130
 
151
 
Line 131... Line 152...
131
    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Other" };
152
    public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Other" };
132
 
153
 
133
    public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background" } , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back","Fullscreen","Clear"},{"Sound","Vibra","Expert-Mode"} };
154
    public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background" } , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back","Fullscreen","Clear"},{"Sound","Vibra","Remote Cam Stick","Expert-Mode"} };
134
 
155
 
Line 135... Line 156...
135
    public String[][] _choice_strings={ { "Dark","Light" } , {"mp/h","km/h","cm/s"},{"decimal","min sec"}} ;
156
    public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ;
136
    public int[][] _field_positions={ {0,8,9} , {2,3} , {4,5,6,7,8} , {13,14,15}, {10,11,12}};
157
    public int[][] _field_positions={ {0,8,9} , {2,3} , {4,5,6,7,8} , {9,10,11}, {10,11,12,12}};
Line 149... Line 170...
149
        settings_field[5]=42; // roll
170
        settings_field[5]=42; // roll
150
        settings_field[6]=42; // gier
171
        settings_field[6]=42; // gier
151
        settings_field[7]=1; // fas
172
        settings_field[7]=1; // fas
152
        settings_field[8]=1; // hight
173
        settings_field[8]=1; // hight
Line -... Line 174...
-
 
174
 
-
 
175
 
-
 
176
        settings_field[9]=-4242; //  no key
-
 
177
        settings_field[10]=-4242; // no key
-
 
178
        settings_field[11]=-4242; // no key
153
 
179
 
Line 154... Line 180...
154
    }
180
    }
155
       
181