14,7 → 14,7 |
|
public class DUBwiseSettings |
extends org.ligi.ufo.ParamsClass |
implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions |
implements org.ligi.ufo.DUBwiseDefinitions,DUBwiseUIDefinitions,org.ligi.ufo.DUBwiseLangDefs |
{ |
// name/handle for the recordStore to memorize some stuff |
private final static String RECORD_STORE_NAME="DUBSETT_V4"; |
23,8 → 23,6 |
//holds id of actual skin |
public byte act_skin=SKINID_DARK; |
|
|
|
public int key_back; |
public int key_fullscreen; |
public int key_clear; |
94,11 → 92,20 |
public final static int SETTINGS_POS_VOICEVOLUME=12; |
public final static int SETTINGS_POS_VOICEDELAY=13; |
public final static int SETTINGS_POS_BITFIELD2=14; |
public final static int SETTINGS_POS_LANG=15; |
|
|
public void field2setting(int pos,int val) |
{ |
|
|
if (pos==SETTINGS_POS_LANG) |
{ |
canvas.act_lang=(byte)val; |
canvas.load_strings(); |
} |
|
|
if (pos==SETTINGS_POS_SKIN) |
{ |
act_skin=(byte)val; |
215,21 → 222,23 |
|
/* end of all settings hold here */ |
|
public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" }; |
// public String[] _tab_names={"User Interface","GPS","Keycontrol","Special Keys","Graph","Voice","Other" }; |
|
public String[][] _field_names={ { "Skin","Fullscreen","Scroll Background" |
|
public int[] _tab_stringids={STRINGID_USERINTERFACE,STRINGID_GPS,STRINGID_KEYCONTROL,STRINGID_SPECIALKEYS,STRINGID_GRAPH,STRINGID_VOICE,STRINGID_OTHER}; |
public String[][] _field_names={ { "Language","Skin","Fullscreen","Scroll Background" |
//#if devicecontrol=="on" |
,"Permanent Light" |
//#endif |
} , {"GPS Format","Speed Format"},{"Nick","Roll","Gier","Gas Increase","Height Increase"},{"Back to Main-Menu","Fullscreen","Clear"},{"Legend","Scale-Grid"},{"Volts Output","Delay in Seconds","Volume"},{"Sound","Vibra","Remote Cam Stick","Always Reload Params","Expert-Mode"} }; |
|
public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"}} ; |
public int[][] _field_positions={ {SETTINGS_POS_SKIN,8,9 |
public String[][] _choice_strings={ { "Dark","Light" } , {"km/h","mp/h","cm/s"},{"decimal","min sec"},{"English","Deutsch"} } ; |
public int[][] _field_positions={ {SETTINGS_POS_LANG,SETTINGS_POS_SKIN,8,9 |
//#if devicecontrol=="on" |
,13 |
//#endif |
} , {2,3} , {4,5,6,7,8} , {9,10,11},{SETTINGS_POS_BITFIELD1*8 +6,SETTINGS_POS_BITFIELD1*8 +7} ,{SETTINGS_POS_BITFIELD2*8+0,SETTINGS_POS_VOICEDELAY,SETTINGS_POS_VOICEVOLUME }, {10,11,12,SETTINGS_POS_BITFIELD2*8+1,12}}; |
public int[][] _field_types={ {PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH |
public int[][] _field_types={ {PARAMTYPE_CHOICE+3,PARAMTYPE_CHOICE+0,PARAMTYPE_BITSWITCH,PARAMTYPE_BITSWITCH |
//#if devicecontrol=="on" |
,PARAMTYPE_BITSWITCH |
//#endif |
259,8 → 268,9 |
|
public void load() |
{ |
tab_stringids=_tab_stringids; |
|
tab_names=_tab_names; |
// tab_names=_tab_names; |
field_names=_field_names; |
field_positions=_field_positions; |
field_types=_field_types; |