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

Change the front page

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