Skip to content

Commit

Permalink
Add 4 in a row graphics preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsPIRI committed Jan 29, 2020
1 parent 1c41da6 commit 322e8fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ public class SettingFragment extends PreferenceFragment {
private static final List<List<?>> rulePresets = asList(emptyList(), asList(3, 3, 3, false), asList(15, 15, 5, false),
asList(19, 19, 5, false), asList(7, 6, 4, true));
private static final String[] ruleKeys = {"horSize", "verSize", "winStreak", "enableGravity"};
private static final List<List<?>> graphicPresets = asList(emptyList(), asList("0", "0", 0xFF000000, 0xFFFFFFFF, 0xFF0000FF, 0xFFFF0000),
asList("1", "1", 0xFF000000, 0xFFB69B4C, 0xFF000000, 0xFFFFFFFF));
private static final List<List<?>> graphicPresets = asList(emptyList(),
asList("0", "0", 0xFF000000, 0xFFFFFFFF, 0xFF0000FF, 0xFFFF0000),
asList("1", "1", 0xFF000000, 0xFFB69B4C, 0xFF000000, 0xFFFFFFFF),
asList("1", "2", 0xFFEEEEFF, 0xFF0000EE, 0xFFEEEE00, 0xFFEE0000));
private static final String[] graphicKeys = {"symbols", "lineType", "lineColor", "backgroundColor", "xColor", "oColor"};
@Override public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<item>@string/none_preset</item>
<item>@string/tictactoe</item>
<item>@string/go</item>
<item>@string/fourInRow</item>
</string-array>
<string-array translatable="false" name="symbolsIds">
<item>@string/xsAndOs</item>
Expand Down

0 comments on commit 322e8fe

Please sign in to comment.