saveas
This commit is contained in:
1 parent
7446070620
commit
957cdceea2
29 files changed
+60
-22
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ For those who have some python experience as well, you can:
|
||||
* Find `gui.kv` and add a button near the others:
|
||||
```
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-<lang>.png'
|
||||
icon: 'img/flags/flag-<lang>.png'
|
||||
on_press: app.language = '<lang>'
|
||||
```
|
||||
* The language should now show up in the app.
|
||||
|
||||
@@ -24,15 +24,15 @@
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="https://github.com/sanderland/katrain/blob/master/README.md"><img alt="English" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-uk.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=de&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="German" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-de.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=fr&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="French" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-fr.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=es&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Spanish" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-es.png" width=50></a>
|
||||
<a href="https://github.com/sanderland/katrain/blob/master/README.md"><img alt="English" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-uk.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=de&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="German" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-de.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=fr&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="French" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-fr.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=es&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Spanish" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-es.png" width=50></a>
|
||||
<br/>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ru&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Russian" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-ru.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=zh-CN&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Chinese" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-cn.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ko&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Korean" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-ko.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ja&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Japanese" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flaticon/flag-jp.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ru&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Russian" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-ru.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=zh-CN&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Chinese" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-cn.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ko&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Korean" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-ko.png" width=50></a>
|
||||
<a href="https://translate.google.com/translate?sl=en&tl=ja&u=https%3A%2F%2Fgithub.com%2Fsanderland%2Fkatrain%2Fblob%2Fmaster%2FREADME.md"><img alt="Japanese" src="https://github.com/sanderland/katrain/blob/master/katrain/img/flags/flag-jp.png" width=50></a>
|
||||
|
||||
</td>
|
||||
</table>
|
||||
|
||||
+16
-11
@@ -947,7 +947,12 @@
|
||||
text: i18n._('menu:save')
|
||||
icon: 'img/Save-Game.png'
|
||||
shortcut: 'Ctrl-S'
|
||||
on_action: root.katrain("output-sgf")
|
||||
on_action: root.katrain("save-game")
|
||||
MainMenuItem:
|
||||
text: i18n._('menu:save-as')
|
||||
icon: 'img/Save-Game.png'
|
||||
shortcut: 'Ctrl-Shift-S'
|
||||
on_action: root.katrain("save-game-as")
|
||||
MainMenuItem:
|
||||
text: i18n._('menu:load')
|
||||
icon: 'img/Load-Game.png'
|
||||
@@ -980,28 +985,28 @@
|
||||
height: 1.5 * root.item_height
|
||||
padding: CP_PADDING, 0
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-uk.png'
|
||||
icon: 'img/flags/flag-uk.png'
|
||||
on_press: app.language = 'en'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-de.png'
|
||||
icon: 'img/flags/flag-de.png'
|
||||
on_press: app.language = 'de'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-fr.png'
|
||||
icon: 'img/flags/flag-fr.png'
|
||||
on_press: app.language = 'fr'
|
||||
# LangButton:
|
||||
# icon: 'img/flags/flag-es.png'
|
||||
# on_press: app.language = 'es'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-es.png'
|
||||
on_press: app.language = 'es'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-ru.png'
|
||||
icon: 'img/flags/flag-ru.png'
|
||||
on_press: app.language = 'ru'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-cn.png'
|
||||
icon: 'img/flags/flag-cn.png'
|
||||
on_press: app.language = 'cn'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-ko.png'
|
||||
icon: 'img/flags/flag-ko.png'
|
||||
on_press: app.language = 'ko'
|
||||
LangButton:
|
||||
icon: 'img/flaticon/flag-jp.png'
|
||||
icon: 'img/flags/flag-jp.png'
|
||||
on_press: app.language = 'jp'
|
||||
BoxLayout:
|
||||
size_hint: 1,None
|
||||
|
||||
@@ -94,7 +94,9 @@ class BadukPanWidget(Widget):
|
||||
near_move = [
|
||||
(pv, node)
|
||||
for move, pv, node in self.active_pv_moves
|
||||
if abs(rel_pos[0] - self.gridpos_x[move[0]]) < self.grid_size / 2
|
||||
if move[0] < len(self.gridpos_x)
|
||||
and move[1] < len(self.gridpos_y)
|
||||
and abs(rel_pos[0] - self.gridpos_x[move[0]]) < self.grid_size / 2
|
||||
and abs(rel_pos[1] - self.gridpos_y[move[1]]) < self.grid_size / 2
|
||||
]
|
||||
if near_move:
|
||||
|
||||
Binary file not shown.
@@ -723,3 +723,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "Cache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -770,3 +770,7 @@ msgid "cache analysis to sgf"
|
||||
msgstr ""
|
||||
"cache analysis to sgf\n"
|
||||
"(larger files, only compatible with KaTrain)"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -16,6 +16,9 @@ msgstr "New Game"
|
||||
msgid "menu:save"
|
||||
msgstr "Save Game"
|
||||
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
|
||||
msgid "menu:load"
|
||||
msgstr "Load Game"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -783,3 +783,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "Cache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -809,3 +809,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "Cache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -762,3 +762,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "Cache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -737,3 +737,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "ache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
Binary file not shown.
@@ -771,3 +771,7 @@ msgstr "Show stats if more than ... visits"
|
||||
#. TODO - analysis option
|
||||
msgid "cache analysis to sgf"
|
||||
msgstr "Cache analysis in SGF"
|
||||
|
||||
#. TODO
|
||||
msgid "menu:save-as"
|
||||
msgstr "Save Game As..."
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -21,7 +21,7 @@ include_data_files("katrain/models")
|
||||
include_data_files("katrain/fonts")
|
||||
include_data_files("katrain/sounds")
|
||||
include_data_files("katrain/img/")
|
||||
include_data_files("katrain/img/flaticon")
|
||||
include_data_files("katrain/img/flags")
|
||||
include_data_files("katrain/i18n")
|
||||
|
||||
print(packages, package_data)
|
||||
|
||||
Reference in new issue
Block a user