mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
add new-feature alert for sub-7 trade option
This commit is contained in:
parent
b791d8eb99
commit
f05fea610c
2 changed files with 17 additions and 0 deletions
|
@ -80,6 +80,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
private CheckBox m_gameLockedCheck;
|
||||
private boolean m_isLocked;
|
||||
private boolean m_haveClosed;
|
||||
private boolean mSub7HintShown;
|
||||
|
||||
private CommsConnTypeSet m_conTypes;
|
||||
private Button m_addPlayerButton;
|
||||
|
@ -687,6 +688,20 @@ public class GameConfigDelegate extends DelegateBase
|
|||
setChecked( R.id.trade_sub_seven, m_gi.tradeSub7 );
|
||||
setChecked( R.id.pick_faceup, m_gi.allowPickTiles );
|
||||
|
||||
findViewById( R.id.trade_sub_seven )
|
||||
.setOnClickListener( new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick( View view ) {
|
||||
if ( !mSub7HintShown ) {
|
||||
mSub7HintShown = true;
|
||||
makeNotAgainBuilder( R.string.key_na_sub7new,
|
||||
R.string.sub_seven_allowed_sum )
|
||||
.setTitle( R.string.new_feature_title )
|
||||
.show();
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
setBoardsizeSpinner();
|
||||
|
||||
final int[] curSel = {-1};
|
||||
|
@ -838,6 +853,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
return handled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick( View view )
|
||||
{
|
||||
if ( isFinishing() ) {
|
||||
|
|
|
@ -167,6 +167,7 @@
|
|||
<string name="key_na_newFeatureFilter">key_na_newFeatureFilter</string>
|
||||
<string name="key_na_customXWD">key_na_customXWD</string>
|
||||
<string name="key_na_traysize">key_na_traysize</string>
|
||||
<string name="key_na_sub7new">key_na_sub7new</string>
|
||||
|
||||
<string name="key_na_dupstatus_host">key_na_dupstatus_host</string>
|
||||
<string name="key_na_dupstatus_guest">key_na_dupstatus_guest</string>
|
||||
|
|
Loading…
Reference in a new issue