Commit f19793f7 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Change the front page

parent d161b134
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot 0.4.2.83-ebdc-dirty\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2019-12-29 18:51+0100\n"
"POT-Creation-Date: 2019-12-29 19:00+0100\n"
"PO-Revision-Date: 2019-12-15 16:50+0100\n"
"Last-Translator: Vivien Kraus <vivien@planete-kraus.eu>\n"
"Language-Team: French\n"
......@@ -541,7 +541,7 @@ msgstr ""
"Erreur : l'en-tête ARFF installé (%s/features-header.txt) n'est pas "
"compatible avec cette version (%s).\n"
#: src/tarot-app/gui/window.vala:193
#: src/tarot-app/gui/window.vala:190
msgid ""
"If you find that the AI is too weak, send me your game files at "
"vivien@planete-kraus.eu :)"
......@@ -549,16 +549,16 @@ msgstr ""
"Si vous trouvez que l'IA est trop faible, envoyez-moi vos fichiers de partie "
"à vivien@planete-kraus.eu :)"
#: src/tarot-app/gui/window.vala:194
#: src/tarot-app/gui/window.vala:191
msgid "Copyright © 2019 Vivien Kraus"
msgstr "Copyright © 2019 Vivien Kraus"
#: src/tarot-app/gui/window.vala:285
#: src/tarot-app/gui/window.vala:282
#, c-format
msgid "Error: could not log the game: %s\n"
msgstr "Erreur : impossible d'enregistrer la partie : %s\n"
#: src/tarot-app/gui/window.vala:391
#: src/tarot-app/gui/window.vala:388
#, c-format
msgid "Error: could not run explorer.exe: %s\n"
msgstr "Erreur : impossible d'exécuter explorer.exe : %s\n"
......@@ -1494,7 +1494,7 @@ msgstr "Tarot"
msgid "page0"
msgstr "page0"
#: src/tarot-app/gui/window.ui:102
#: src/tarot-app/gui/window.ui:93
msgid "3 players"
msgstr "3 joueurs"
......@@ -1502,19 +1502,11 @@ msgstr "3 joueurs"
msgid "4 players"
msgstr "4 joueurs"
#: src/tarot-app/gui/window.ui:136
#: src/tarot-app/gui/window.ui:139
msgid "5 players"
msgstr "5 joueurs"
#: src/tarot-app/gui/window.ui:157
msgid "Call:"
msgstr "Appel :"
#: src/tarot-app/gui/window.ui:220
msgid "page1"
msgstr "page1"
#: src/tarot-app/gui/window.ui:254
#: src/tarot-app/gui/window.ui:192
msgid "Game files"
msgstr "Fichiers de parties"
......@@ -1656,6 +1648,12 @@ msgstr ""
#~ msgid "Vivien Kraus"
#~ msgstr "Vivien Kraus"
#~ msgid "Call:"
#~ msgstr "Appel :"
#~ msgid "page1"
#~ msgstr "page1"
#~ msgid "Error: the MCTS parameter should be a number, not '%s'.\n"
#~ msgstr "Erreur : le paramètre MCTS doit être un nombre, et pas « %s ».\n"
......
......@@ -14,11 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
.label_call {
padding-left: 1em;
padding-right: 1em;
}
.variant_call_switch {
margin-right: 1em;
.best_variant {
font-weight: bold;
}
......@@ -76,154 +76,92 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</packing>
</child>
<child>
<object class="GtkBox" id="page_select_players">
<object class="GtkListBox" id="page_select_players">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="selection_mode">none</property>
<child>
<object class="GtkSeparator">
<object class="GtkListBoxRow">
<property name="width_request">100</property>
<property name="height_request">80</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<property name="can_focus">True</property>
<property name="selectable">False</property>
<child>
<object class="GtkButton" id="variant_3p">
<object class="GtkButton">
<property name="label" translatable="yes">3 players</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
<signal name="clicked" handler="new_game_3p" swapped="no"/>
<style>
<class name="button_variant"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<property name="width_request">100</property>
<property name="height_request">80</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="selectable">False</property>
<signal name="activate" handler="new_game_4p" swapped="no"/>
<child>
<object class="GtkButton" id="variant_4p">
<object class="GtkButton">
<property name="label" translatable="yes">4 players</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
<signal name="clicked" handler="new_game_4p" swapped="no"/>
<style>
<class name="button_variant"/>
<class name="best_variant"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="variant_5p">
<property name="label" translatable="yes">5 players</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="new_game_5p" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel" id="label_call">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Call:</property>
<style>
<class name="label_call"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="variant_call">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="valign">center</property>
<property name="active">True</property>
<style>
<class name="variant_call_switch"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkSeparator">
<object class="GtkListBoxRow">
<property name="width_request">100</property>
<property name="height_request">80</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="can_focus">True</property>
<property name="selectable">False</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">5 players</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
<signal name="clicked" handler="new_game_5p" swapped="no"/>
<style>
<class name="button_variant"/>
</style>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="name">page1</property>
<property name="title" translatable="yes">page1</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</template>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-open</property>
</object>
<object class="GtkPopoverMenu" id="menu_popover">
<property name="can_focus">False</property>
<property name="relative_to">menu_button</property>
......@@ -272,9 +210,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</packing>
</child>
</object>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-open</property>
</object>
</interface>
......@@ -121,10 +121,7 @@ namespace Tarot {
private Tarot.Widget tarot_widget;
[GtkChild]
private Gtk.Box page_select_players;
[GtkChild]
private Gtk.Switch variant_call;
private Gtk.ListBox page_select_players;
[GtkChild]
private Gtk.Button button_new_game;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment