gnome-chess/data/org.gnome.chess.gschema.xml
Johan Manuel ba128dd084 Add option to alternate between black and white
Add the option 'Alternate' in 'Play as' in the preferences menu.
When selected, the player will play as the opposite color he played the
last time when starting a new game.

https://bugzilla.gnome.org/show_bug.cgi?id=747411
2015-04-15 10:58:27 +05:30

122 lines
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<enum id="org.gnome.chess.MoveFormat">
<value value="0" nick="human"/>
<value value="1" nick="san"/>
<value value="2" nick="fan"/>
<value value="3" nick="lan"/>
</enum>
<enum id="org.gnome.chess.PlayAs">
<value value="0" nick="white"/>
<value value="1" nick="black"/>
<value value="2" nick="alternate"/>
</enum>
<enum id="org.gnome.chess.BoardSide">
<value value="0" nick="white"/>
<value value="1" nick="black"/>
<value value="2" nick="human"/>
<value value="3" nick="current"/>
</enum>
<enum id="org.gnome.chess.Difficulty">
<value value="0" nick="easy"/>
<value value="1" nick="normal"/>
<value value="2" nick="hard"/>
</enum>
<enum id="org.gnome.chess.ClockType">
<value value="0" nick="simple"/>
<value value="1" nick="fischer"/>
<value value="2" nick="bronstein"/>
</enum>
<schema id="org.gnome.chess" path="/org/gnome/chess/" gettext-domain="gnome-chess">
<key name="width" type="i">
<default>700</default>
<summary>The width of the window</summary>
<description>The width of the main window in pixels.</description>
</key>
<key name="height" type="i">
<default>550</default>
<summary>The height of the window</summary>
<description>The height of the main window in pixels.</description>
</key>
<key name="maximized" type="b">
<default>false</default>
<summary>A flag to enable maximized mode</summary>
<description>A flag to enable maximized mode</description>
</key>
<key name="piece-theme" type="s">
<default>'simple'</default>
<summary>The piece theme to use</summary>
<description>The piece theme to use</description>
</key>
<key name="show-move-hints" type="b">
<default>true</default>
<summary>A flag to enable move hints</summary>
<description>A flag to enable move hints</description>
</key>
<key name="show-numbering" type="b">
<default>false</default>
<summary>A flag to enable board numbering</summary>
<description>A flag to enable board numbering</description>
</key>
<key name="save-directory" type="s">
<default>''</default>
<summary>The directory to open the save game dialog in</summary>
<description>The directory to open the save game dialog in</description>
</key>
<key name="load-directory" type="s">
<default>''</default>
<summary>The directory to open the load game dialog in</summary>
<description>The directory to open the load game dialog in</description>
</key>
<key name="move-format" enum="org.gnome.chess.MoveFormat">
<default>'human'</default>
<summary>The format to display moves in</summary>
<description>The format to display moves in</description>
</key>
<key name="board-side" enum="org.gnome.chess.BoardSide">
<default>'human'</default>
<summary>The side of the board that is in the foreground</summary>
<description>The side of the board that is in the foreground</description>
</key>
<key name="duration" type="i">
<default>0</default>
<summary>The duration of a game in seconds (0 for no limit)</summary>
<description>The duration of a game in seconds (0 for no limit)</description>
</key>
<key name="clock-type" enum="org.gnome.chess.ClockType">
<default>'simple'</default>
<summary>The type of clock (simple/fischer/bronstein)</summary>
<description>The type of clock (simple/fischer/bronstein)</description>
</key>
<key name="timer-increment" type="i">
<default>1</default>
<summary>The timer increment set corresponding to clock type (1 second minimum)</summary>
<description>The timer increment set corresponding to clock type (1 second minimum)</description>
</key>
<key name="play-as" enum="org.gnome.chess.PlayAs">
<default>'white'</default>
<summary>The board side to play as</summary>
<description>The board side to play as</description>
</key>
<key name="last-played-as" enum="org.gnome.chess.PlayAs">
<default>'white'</default>
<summary>The last side the player played as</summary>
<description>This is needed when play-as is set to alternate. This should only be set to black or white.</description>
</key>
<key name="opponent" type="s">
<default>''</default>
<summary>The opponent player</summary>
<description>Can be 'human' (play against another human player), '' (use the first available chess engine) or the name of a specific engine to play against</description>
</key>
<key name="difficulty" enum="org.gnome.chess.Difficulty">
<default>'easy'</default>
<summary>Difficulty of the opponent chess engine</summary>
<description>Difficulty of the opponent chess engine</description>
</key>
</schema>
</schemalist>