complete cards/game

This commit is contained in:
2024-04-07 14:08:57 +03:00
parent 24acb4ecd1
commit 857613a01d
10 changed files with 257 additions and 29 deletions

View File

@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="MemoryCardsSetupScene" parent="GtkApplicationWindow">
<property name="title">Memory cards setup</property>
<template class="MemoryCardsGameScene" parent="GtkApplicationWindow">
<property name="title">Memory cards game</property>
<child>
<object class="GtkBox" id="content">
<property name="orientation">horizontal</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkButton" id="edit_button">
<property name="label">Edit cards</property>
</object>
<object class="CardDisplay" id="card_display"></object>
</child>
<child>
<object class="GtkButton" id="start_button">
<property name="label">start game</property>
<object class="GtkLabel" id="stats_label">
<property name="label">Correct|Incorrect: 0|0</property>
</object>
</child>
</object>

View File

@@ -6,14 +6,15 @@
<file compressed="true" preprocess="xml-stripblanks">cards/edit/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">cards/setup/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">cards/new/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">cards/game/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">guessing/game/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">guessing/setup/ui.xml</file>
<!-- <file compressed="true" preprocess="xml-stripblanks">cards/game/ui.xml</file> -->
<file compressed="true" preprocess="xml-stripblanks">widgets/labled_switch/template.ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">widgets/card_entry/template.ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">widgets/card_display/template.ui.xml</file>
</gresource>
</gresources>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CardDisplay" parent="GtkWidget">
<child>
<object class="GtkPicture" id="picture">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_CENTER</property>
</object>
</child>
<child>
<object class="GtkEntry" id="answer_entry">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_START</property>
<property name="placeholder-text">Type kana that picture means</property>
</object>
</child>
</template>
</interface>