mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
Add "Hide tile values" checkbox and support it.
This commit is contained in:
parent
9bb510bfd7
commit
9565744473
3 changed files with 19 additions and 14 deletions
|
@ -72,7 +72,7 @@ adjustForChoice( CePrefsDlgState* state )
|
||||||
HWND hDlg = state->dlgHdr.hDlg;
|
HWND hDlg = state->dlgHdr.hDlg;
|
||||||
XP_U16 goesWithGlobal[] = {IDC_CHECKCOLORPLAYED, IDC_LEFTYCHECK,
|
XP_U16 goesWithGlobal[] = {IDC_CHECKCOLORPLAYED, IDC_LEFTYCHECK,
|
||||||
IDC_CHECKSHOWCURSOR, IDC_CHECKROBOTSCORES,
|
IDC_CHECKSHOWCURSOR, IDC_CHECKROBOTSCORES,
|
||||||
IDC_PREFCOLORS
|
IDC_HIDETILEVALUES, IDC_PREFCOLORS
|
||||||
#ifdef ALLOW_CHOOSE_FONTS
|
#ifdef ALLOW_CHOOSE_FONTS
|
||||||
,IDC_PREFFONTS
|
,IDC_PREFFONTS
|
||||||
#endif
|
#endif
|
||||||
|
@ -195,6 +195,7 @@ loadControlsFromState( CePrefsDlgState* pState )
|
||||||
|
|
||||||
ceSetChecked( hDlg, IDC_CHECKSHOWCURSOR, prefsPrefs->cp.showBoardArrow );
|
ceSetChecked( hDlg, IDC_CHECKSHOWCURSOR, prefsPrefs->cp.showBoardArrow );
|
||||||
ceSetChecked( hDlg, IDC_CHECKROBOTSCORES, prefsPrefs->cp.showRobotScores );
|
ceSetChecked( hDlg, IDC_CHECKROBOTSCORES, prefsPrefs->cp.showRobotScores );
|
||||||
|
ceSetChecked( hDlg, IDC_HIDETILEVALUES, prefsPrefs->cp.hideTileValues );
|
||||||
|
|
||||||
#ifdef FEATURE_TRAY_EDIT
|
#ifdef FEATURE_TRAY_EDIT
|
||||||
ceSetChecked( hDlg, IDC_PICKTILES, prefsPrefs->gp.allowPickTiles );
|
ceSetChecked( hDlg, IDC_PICKTILES, prefsPrefs->gp.allowPickTiles );
|
||||||
|
@ -245,6 +246,7 @@ ceControlsToPrefs( CePrefsDlgState* state )
|
||||||
|
|
||||||
prefsPrefs->cp.showBoardArrow = ceGetChecked( hDlg, IDC_CHECKSHOWCURSOR );
|
prefsPrefs->cp.showBoardArrow = ceGetChecked( hDlg, IDC_CHECKSHOWCURSOR );
|
||||||
prefsPrefs->cp.showRobotScores = ceGetChecked( hDlg, IDC_CHECKROBOTSCORES );
|
prefsPrefs->cp.showRobotScores = ceGetChecked( hDlg, IDC_CHECKROBOTSCORES );
|
||||||
|
prefsPrefs->cp.hideTileValues = ceGetChecked( hDlg, IDC_HIDETILEVALUES );
|
||||||
prefsPrefs->gp.timerEnabled = ceGetChecked( hDlg, TIMER_CHECK );
|
prefsPrefs->gp.timerEnabled = ceGetChecked( hDlg, TIMER_CHECK );
|
||||||
|
|
||||||
if ( prefsPrefs->gp.timerEnabled ) {
|
if ( prefsPrefs->gp.timerEnabled ) {
|
||||||
|
|
|
@ -69,18 +69,19 @@
|
||||||
#define IDC_CHECKHINTSOK 1041
|
#define IDC_CHECKHINTSOK 1041
|
||||||
#define IDC_CHECKSHOWCURSOR 1042
|
#define IDC_CHECKSHOWCURSOR 1042
|
||||||
#define IDC_CHECKROBOTSCORES 1043
|
#define IDC_CHECKROBOTSCORES 1043
|
||||||
#define IDC_PREFCOLORS 1044
|
#define IDC_HIDETILEVALUES 1044
|
||||||
#define IDC_PREFFONTS 1100
|
#define IDC_PREFCOLORS 1045
|
||||||
#define PHONIES_LABEL 1045
|
#define IDC_PREFFONTS 1046
|
||||||
#define IDC_ROLECOMBO 1046
|
#define PHONIES_LABEL 1048
|
||||||
#define GIJUGGLE_BUTTON 1048
|
#define IDC_ROLECOMBO 1049
|
||||||
#define IDC_TOTAL_LABEL 1049
|
#define GIJUGGLE_BUTTON 1050
|
||||||
#define IDC_REMOTE_LABEL 1050
|
#define IDC_TOTAL_LABEL 1051
|
||||||
#define IDC_PICKTILES 1051
|
#define IDC_REMOTE_LABEL 1052
|
||||||
#define IDC_BPICK 1052
|
#define IDC_PICKTILES 1053
|
||||||
#define IDC_PICKMSG 1053
|
#define IDC_BPICK 1054
|
||||||
|
#define IDC_PICKMSG 1055
|
||||||
#ifdef FEATURE_TRAY_EDIT
|
#ifdef FEATURE_TRAY_EDIT
|
||||||
# define IDC_CPICK 1054
|
# define IDC_CPICK 1100
|
||||||
# define IDC_BACKUP 1056
|
# define IDC_BACKUP 1056
|
||||||
#endif
|
#endif
|
||||||
#ifdef XWFEATURE_SEARCHLIMIT
|
#ifdef XWFEATURE_SEARCHLIMIT
|
||||||
|
|
|
@ -564,9 +564,11 @@ BEGIN
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW3,80,PREFS_ROW_HT
|
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW3,80,PREFS_ROW_HT
|
||||||
CONTROL "Explain robot scores",IDC_CHECKROBOTSCORES,"Button",
|
CONTROL "Explain robot scores",IDC_CHECKROBOTSCORES,"Button",
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW4,80,PREFS_ROW_HT
|
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW4,80,PREFS_ROW_HT
|
||||||
PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,PR_ROW5,60,12
|
CONTROL "Hide tile values",IDC_HIDETILEVALUES,"Button",
|
||||||
|
BS_AUTOCHECKBOX | WS_TABSTOP,8,PR_ROW5,80,PREFS_ROW_HT
|
||||||
|
PUSHBUTTON "Edit colors...",IDC_PREFCOLORS,8,PR_ROW6,60,12
|
||||||
#ifdef ALLOW_CHOOSE_FONTS
|
#ifdef ALLOW_CHOOSE_FONTS
|
||||||
PUSHBUTTON "Choose font...",IDC_PREFFONTS,8,PR_ROW6,60,12
|
PUSHBUTTON "Choose font...",IDC_PREFFONTS,8,PR_ROW7,60,12
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Per game */
|
/* Per game */
|
||||||
|
|
Loading…
Reference in a new issue