mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
add hints-allowed to set of defaults for new games
This commit is contained in:
parent
a64778308b
commit
067bef3e26
5 changed files with 15 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
<string name="key_proxy_port">key_proxy_port</string>
|
<string name="key_proxy_port">key_proxy_port</string>
|
||||||
<string name="key_sms_port">key_sms_port</string>
|
<string name="key_sms_port">key_sms_port</string>
|
||||||
<string name="key_dict_host">key_dict_host2</string>
|
<string name="key_dict_host">key_dict_host2</string>
|
||||||
|
<string name="key_init_hintsallowed">key_init_hintsallowed</string>
|
||||||
<string name="key_board_size">key_board_size</string>
|
<string name="key_board_size">key_board_size</string>
|
||||||
<string name="key_initial_player_minutes">key_initial_player_minutes</string>
|
<string name="key_initial_player_minutes">key_initial_player_minutes</string>
|
||||||
<string name="key_default_dict">key_default_dict</string>
|
<string name="key_default_dict">key_default_dict</string>
|
||||||
|
|
|
@ -198,6 +198,7 @@
|
||||||
open them without it.</string>
|
open them without it.</string>
|
||||||
|
|
||||||
<string name="hints_allowed">Allow hints</string>
|
<string name="hints_allowed">Allow hints</string>
|
||||||
|
<string name="hints_allowed_sum">Enable the hint feature</string>
|
||||||
<string name="progress_title">Searching for moves</string>
|
<string name="progress_title">Searching for moves</string>
|
||||||
<string name="use_timer">Enable game timer</string>
|
<string name="use_timer">Enable game timer</string>
|
||||||
<string name="color_tiles">Color tiles</string>
|
<string name="color_tiles">Color tiles</string>
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
android:defaultValue="CollegeEng_2to8"
|
android:defaultValue="CollegeEng_2to8"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<CheckBoxPreference android:key="@string/key_init_hintsallowed"
|
||||||
|
android:title="@string/hints_allowed"
|
||||||
|
android:summary="@string/hints_allowed_sum"
|
||||||
|
android:defaultValue="true"
|
||||||
|
/>
|
||||||
|
|
||||||
<ListPreference android:key="@string/key_default_phonies"
|
<ListPreference android:key="@string/key_default_phonies"
|
||||||
android:title="@string/default_phonies"
|
android:title="@string/default_phonies"
|
||||||
android:entries="@array/phony_names"
|
android:entries="@array/phony_names"
|
||||||
|
|
|
@ -237,6 +237,12 @@ public class CommonPrefs {
|
||||||
false );
|
false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean getDefaultHintsAllowed( Context context )
|
||||||
|
{
|
||||||
|
return getPrefsBoolean( context, R.string.key_init_hintsallowed,
|
||||||
|
true );
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean getHideTitleBar( Context context )
|
public static boolean getHideTitleBar( Context context )
|
||||||
{
|
{
|
||||||
return getPrefsBoolean( context, R.string.key_hide_title, true );
|
return getPrefsBoolean( context, R.string.key_hide_title, true );
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class CurGameInfo {
|
||||||
: DeviceRole.SERVER_STANDALONE;
|
: DeviceRole.SERVER_STANDALONE;
|
||||||
dictName = CommonPrefs.getDefaultDict( context );
|
dictName = CommonPrefs.getDefaultDict( context );
|
||||||
dictLang = DictLangCache.getLangCode( context, dictName );
|
dictLang = DictLangCache.getLangCode( context, dictName );
|
||||||
hintsNotAllowed = false;
|
hintsNotAllowed = !CommonPrefs.getDefaultHintsAllowed( context );
|
||||||
phoniesAction = CommonPrefs.getDefaultPhonies( context );
|
phoniesAction = CommonPrefs.getDefaultPhonies( context );
|
||||||
timerEnabled = CommonPrefs.getDefaultTimerEnabled( context );
|
timerEnabled = CommonPrefs.getDefaultTimerEnabled( context );
|
||||||
allowPickTiles = false;
|
allowPickTiles = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue