showRatings pref WIP
parent
c159db1460
commit
84b126e9d4
|
@ -79,6 +79,10 @@ object pref {
|
|||
zenMode(),
|
||||
radios(form("display.zen"), booleanChoices)
|
||||
),
|
||||
setting(
|
||||
showPlayerRatings(),
|
||||
radios(form("display.ratings"), booleanChoices)
|
||||
),
|
||||
setting(
|
||||
displayBoardResizeHandle(),
|
||||
radios(form("display.resizeHandle"), translatedBoardResizeHandleChoices)
|
||||
|
|
|
@ -1573,6 +1573,7 @@ val `pgnPieceNotation` = new I18nKey("preferences:pgnPieceNotation")
|
|||
val `chessPieceSymbol` = new I18nKey("preferences:chessPieceSymbol")
|
||||
val `pgnLetter` = new I18nKey("preferences:pgnLetter")
|
||||
val `zenMode` = new I18nKey("preferences:zenMode")
|
||||
val `showPlayerRatings` = new I18nKey("preferences:showPlayerRatings")
|
||||
val `displayBoardResizeHandle` = new I18nKey("preferences:displayBoardResizeHandle")
|
||||
val `onlyOnInitialPosition` = new I18nKey("preferences:onlyOnInitialPosition")
|
||||
val `blindfoldChess` = new I18nKey("preferences:blindfoldChess")
|
||||
|
|
|
@ -36,6 +36,7 @@ case class Pref(
|
|||
insightShare: Int,
|
||||
keyboardMove: Int,
|
||||
zen: Int,
|
||||
ratings: Boolean,
|
||||
rookCastle: Int,
|
||||
moveEvent: Int,
|
||||
pieceNotation: Int,
|
||||
|
@ -447,6 +448,7 @@ object Pref {
|
|||
insightShare = InsightShare.FRIENDS,
|
||||
keyboardMove = KeyboardMove.NO,
|
||||
zen = Zen.NO,
|
||||
ratings = true,
|
||||
rookCastle = RookCastle.YES,
|
||||
moveEvent = MoveEvent.BOTH,
|
||||
pieceNotation = PieceNotation.SYMBOL,
|
||||
|
|
|
@ -27,6 +27,7 @@ object PrefForm {
|
|||
"replay" -> checkedNumber(Pref.Replay.choices),
|
||||
"pieceNotation" -> optional(booleanNumber),
|
||||
"zen" -> optional(booleanNumber),
|
||||
"ratings" -> optional(boolean),
|
||||
"resizeHandle" -> optional(checkedNumber(Pref.ResizeHandle.choices)),
|
||||
"blindfold" -> checkedNumber(Pref.Blindfold.choices)
|
||||
)(DisplayData.apply)(DisplayData.unapply),
|
||||
|
@ -65,6 +66,7 @@ object PrefForm {
|
|||
replay: Int,
|
||||
pieceNotation: Option[Int],
|
||||
zen: Option[Int],
|
||||
ratings: Option[Boolean],
|
||||
resizeHandle: Option[Int],
|
||||
blindfold: Int
|
||||
)
|
||||
|
@ -146,6 +148,7 @@ object PrefForm {
|
|||
captured = if (pref.captured) 1 else 0,
|
||||
blindfold = pref.blindfold,
|
||||
zen = pref.zen.some,
|
||||
ratings = pref.ratings.some,
|
||||
resizeHandle = pref.resizeHandle.some,
|
||||
pieceNotation = pref.pieceNotation.some
|
||||
),
|
||||
|
|
|
@ -46,6 +46,7 @@ private object PrefHandlers {
|
|||
insightShare = r.getD("insightShare", Pref.default.insightShare),
|
||||
keyboardMove = r.getD("keyboardMove", Pref.default.keyboardMove),
|
||||
zen = r.getD("zen", Pref.default.zen),
|
||||
ratings = r.getD("ratings", Pref.default.ratings),
|
||||
rookCastle = r.getD("rookCastle", Pref.default.rookCastle),
|
||||
pieceNotation = r.getD("pieceNotation", Pref.default.pieceNotation),
|
||||
resizeHandle = r.getD("resizeHandle", Pref.default.resizeHandle),
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<string name="chessPieceSymbol">Chess piece symbol</string>
|
||||
<string name="pgnLetter">Letter (K, Q, R, B, N)</string>
|
||||
<string name="zenMode" comment="zenMode This is not the religious meaning. Turning this option on takes away make elements of the user interface. Can also translate as 'Focus mode' as one example.">Zen mode</string>
|
||||
<string name="showPlayerRatings">Show player ratings</string>
|
||||
<string name="displayBoardResizeHandle">Show board resize handle</string>
|
||||
<string name="onlyOnInitialPosition">Only on initial position</string>
|
||||
<string name="blindfoldChess">Blindfold chess (invisible pieces)</string>
|
||||
|
|
Loading…
Reference in New Issue