• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen
18        xmlns:android="http://schemas.android.com/apk/res/android">
19
20	<PreferenceCategory
21            android:title="@string/preference_game_settings">
22
23       <CheckBoxPreference
24       			android:key="enableSound"
25                android:title="@string/preference_enable_sound"
26                android:summaryOn="@string/preference_enable_sound_summary"
27                android:summaryOff="@string/preference_enable_sound_summary"
28                android:defaultValue="true"
29                android:persistent="true"
30                />
31
32		<PreferenceScreen
33				android:key="controlConfigScreen"
34                android:title="@string/preference_configure_controls"
35                xmlns:replica="http://schemas.android.com/apk/res/com.replica.replicaisland">
36			<CheckBoxPreference
37       			android:key="enableClickAttack"
38                android:title="@string/preference_enable_click_attack"
39                android:summaryOn="@string/preference_enable_click_attack_summary"
40                android:summaryOff="@string/preference_enable_click_attack_summary"
41                android:defaultValue="true"
42                android:persistent="true"
43                />
44
45            <com.replica.replicaisland.KeyboardConfigDialogPreference
46       			android:key="keyconfig"
47                android:title="@string/preference_key_config"
48                android:summary="@string/preference_key_config_summary"
49                android:dialogLayout="@layout/key_config"
50                android:dialogTitle="@string/preference_key_config_dialog_title"
51                android:negativeButtonText="@string/preference_key_config_dialog_cancel"
52                android:positiveButtonText="@string/preference_key_config_dialog_ok"
53                replica:leftKey="keyLeft"
54                replica:rightKey="keyRight"
55                replica:jumpKey="keyJump"
56                replica:attackKey="keyAttack"
57                />
58
59           	<com.replica.replicaisland.SliderPreference
60                android:key="movementSensitivity"
61                android:defaultValue="100"
62                android:title="@string/preference_movement_sensitivity"
63                android:summary="@string/preference_movement_sensitivity_summary"
64                replica:maxText="@string/preference_movement_max"
65                replica:minText="@string/preference_movement_min"
66                android:persistent="true"/>
67
68            <CheckBoxPreference
69       			android:key="enableScreenControls"
70                android:title="@string/preference_enable_screen_controls"
71                android:summaryOn="@string/preference_enable_screen_controls_summary"
72                android:summaryOff="@string/preference_enable_screen_controls_summary"
73                android:defaultValue="false"
74                android:persistent="true"
75                android:disableDependentsState="true"
76                />
77
78            <CheckBoxPreference
79       			android:key="enableTiltControls"
80                android:title="@string/preference_enable_tilt_controls"
81                android:summaryOn="@string/preference_enable_tilt_controls_summary"
82                android:summaryOff="@string/preference_enable_tilt_controls_summary"
83                android:defaultValue="false"
84                android:persistent="true"
85                android:dependency="enableScreenControls"
86                />
87
88             <com.replica.replicaisland.SliderPreference
89                android:key="tiltSensitivity"
90                android:defaultValue="50"
91                android:title="@string/preference_tilt_sensitivity"
92                android:summary="@string/preference_tilt_sensitivity_summary"
93                replica:maxText="@string/preference_tilt_max"
94                replica:minText="@string/preference_tilt_min"
95                android:persistent="true"
96                android:dependency="enableTiltControls"/>
97
98        </PreferenceScreen>
99
100        <CheckBoxPreference
101       			android:key="safeMode"
102                android:title="@string/preference_safe_mode"
103                android:summaryOn="@string/preference_safe_mode_summary"
104                android:summaryOff="@string/preference_safe_mode_summary"
105                android:defaultValue="false"
106                android:persistent="true"
107                />
108
109    </PreferenceCategory>
110
111     <PreferenceCategory
112            android:title="@string/preference_save_game">
113
114       <com.replica.replicaisland.YesNoDialogPreference
115       			android:key="erasegame"
116                android:title="@string/preference_erase_save_game"
117                android:dialogMessage="@string/preference_erase_save_game_dialog"
118                android:dialogTitle="@string/preference_erase_save_game_dialog_title"
119                android:negativeButtonText="@string/preference_erase_save_game_dialog_cancel"
120                android:positiveButtonText="@string/preference_erase_save_game_dialog_ok"
121                />
122
123        <CheckBoxPreference
124       			android:key="enableStats"
125                android:title="@string/preference_enable_statistics"
126                android:summaryOn="@string/preference_enable_statistics_summary"
127                android:summaryOff="@string/preference_enable_statistics_summary"
128                android:defaultValue="true"
129                android:persistent="true"
130                />
131
132    </PreferenceCategory>
133
134
135    <PreferenceCategory
136            android:title="@string/preference_about">
137
138        <PreferenceScreen
139                android:title="@string/preference_visit_site">
140
141            <intent android:action="android.intent.action.VIEW"
142                    android:data="http://replicaisland.net" />
143
144        </PreferenceScreen>
145
146        <PreferenceScreen
147                android:title="@string/preference_misc">
148
149            <CheckBoxPreference
150       			android:key="enableDebug"
151                android:title="@string/preference_enable_debug"
152                android:summaryOn="@string/preference_enable_debug_summary"
153                android:summaryOff="@string/preference_enable_debug_summary"
154                android:defaultValue="false"
155                android:persistent="true"
156                />
157
158	        <Preference
159	                android:title="@string/preference_about_title"
160	                android:summary="@string/preference_about_summary"
161	                android:enabled="false"
162	                android:selectable="false" />
163
164	        <Preference
165	                android:title="@string/preference_thanks_title"
166	                android:summary="@string/preference_thanks_summary"
167	                android:enabled="false"
168	                android:selectable="false" />
169
170	        <Preference
171	                android:title="@string/preference_licence_title"
172	                android:summary="@string/preference_licence_summary"
173	                android:enabled="false"
174	                android:selectable="false" />
175		</PreferenceScreen>
176
177    </PreferenceCategory>
178
179</PreferenceScreen>
180