Dump resources to more GNUish formats
In the same run, the old resource file is moved to the cpp-source directory
@ -92,5 +92,3 @@ def main(script, *args):
|
|||||||
initAudio()
|
initAudio()
|
||||||
# menu()
|
# menu()
|
||||||
# getStorage().flush()
|
# getStorage().flush()
|
||||||
|
|
||||||
resources.dump()
|
|
||||||
|
@ -60,9 +60,6 @@ class Messages(object):
|
|||||||
"message": Formatter(data, msgOffset),
|
"message": Formatter(data, msgOffset),
|
||||||
}
|
}
|
||||||
|
|
||||||
print("{}: {}".format(name, self.__messages[name]['message'].getMessage()))
|
|
||||||
|
|
||||||
offset += sz + 4
|
offset += sz + 4
|
||||||
|
|
||||||
|
|
||||||
msg = Messages()
|
msg = Messages()
|
||||||
|
@ -216,10 +216,4 @@ class ResourcesCollection:
|
|||||||
for resource in self.__groups[group]:
|
for resource in self.__groups[group]:
|
||||||
func(resource)
|
func(resource)
|
||||||
|
|
||||||
def dump(self):
|
|
||||||
for name, resource in self.__resources.items():
|
|
||||||
for variant in resource.variants:
|
|
||||||
with open('resources/' + name, 'wb') as f:
|
|
||||||
f.write(variant.getData())
|
|
||||||
|
|
||||||
resources = None
|
resources = None
|
||||||
|
117
po/einstein.pot
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
msgid "rulesText"
|
||||||
|
msgstr ""\n\nThe game goal is to open all cards in square of 6x6 cards. When\nevery card is open, field looks like this:\n\n$opensquare.bmp$\n\nEvery row of square contains cards of one type only. For example,\nfirst row contains arabic digits, second - letters, third - rome digits,\nfouths - dices, fifth - geometric figures, sixs - mathematic symbols.\n\nUse logic and open cards with method of exclusion. If card doesn't\nopened, cell contains every possible cards. For example, \n\n$closed.bmp$\n\nmeans that this cell may contain every rome digit with exception of \nIII (because card with III image is absent). To open card click on\nsmall image with left mouse button. To exclude card click with right\nmouse button.\n\nUse tips to solve this puzzle. There is two types of tips:\nhorizontal and vertical. Vertical tips located at screen bottom.\nFor example, vertical tip\n\n$verthint.bmp$\n\nmeans that letter 'B' and '+' sign located in the same column.\n\nHorizontal tips located at the right side of the puzzle square.\nThere is few type of horizontal tips. First type of horizontal\ntip says that two cards located at neighbour columns, but it is\nunknown, which one is at the right side and thich is at the left:\n\n$hornearhint.bmp$\n\nSecond tip type means that one cards is at the left of another.\nIt says nothing about distance between that cards. They may be\nneighbour columns or at the opposite sides of puzzle field:\n\n$horposhint.bmp$\n\nThe last type of tip means that one card is located between\ntwo another cards:\n\n$horbetweenhint.bmp$\n\nAll three cards must be located in neighbour columns, central\ncard is always between other two, but it is unknown, which card is located\nat the right side and which at the left.\n\nIf you no longer need some tip, remove it by right mouse button click.\nYou can always see removed tips by pressing 'Switch' button.\n\n\n""
|
||||||
|
|
||||||
|
msgid "about"
|
||||||
|
msgstr "'About'"
|
||||||
|
|
||||||
|
msgid "anonymous"
|
||||||
|
msgstr "'Anonymous'"
|
||||||
|
|
||||||
|
msgid "cancel"
|
||||||
|
msgstr "'Cancel'"
|
||||||
|
|
||||||
|
msgid "close"
|
||||||
|
msgstr "'Close'"
|
||||||
|
|
||||||
|
msgid "copyright"
|
||||||
|
msgstr "'Copyright (c) 2003-2005 Flowix Games'"
|
||||||
|
|
||||||
|
msgid "einsteinFlowix"
|
||||||
|
msgstr "'Einstein puzzle by Flowix Games'"
|
||||||
|
|
||||||
|
msgid "einsteinPuzzle"
|
||||||
|
msgstr "'Einstein Puzzle'"
|
||||||
|
|
||||||
|
msgid "empty"
|
||||||
|
msgstr "'-- Empty Slot --'"
|
||||||
|
|
||||||
|
msgid "enableSound"
|
||||||
|
msgstr "'Enable sound'"
|
||||||
|
|
||||||
|
msgid "enterGame"
|
||||||
|
msgstr "'Enter game name:'"
|
||||||
|
|
||||||
|
msgid "enterName"
|
||||||
|
msgstr "'Enter your name:'"
|
||||||
|
|
||||||
|
msgid "exit"
|
||||||
|
msgstr "'Exit'"
|
||||||
|
|
||||||
|
msgid "expired"
|
||||||
|
msgstr "'This beta is expired. Please download update from http://games.flowix.com'"
|
||||||
|
|
||||||
|
msgid "fullscreen"
|
||||||
|
msgstr "'Run in fullscreen mode'"
|
||||||
|
|
||||||
|
msgid "help"
|
||||||
|
msgstr "'Help'"
|
||||||
|
|
||||||
|
msgid "iddqd"
|
||||||
|
msgstr "'IT IS NOT DOOM, LUKE!'"
|
||||||
|
|
||||||
|
msgid "loadGame"
|
||||||
|
msgstr "'Load Game'"
|
||||||
|
|
||||||
|
msgid "loading"
|
||||||
|
msgstr "'Loading.... Please wait....'"
|
||||||
|
|
||||||
|
msgid "loose"
|
||||||
|
msgstr "'YOU HAVE LOST'"
|
||||||
|
|
||||||
|
msgid "newGame"
|
||||||
|
msgstr "'Start New Game'"
|
||||||
|
|
||||||
|
msgid "next"
|
||||||
|
msgstr "'Next'"
|
||||||
|
|
||||||
|
msgid "niceCursor"
|
||||||
|
msgstr "'Nice cursor'"
|
||||||
|
|
||||||
|
msgid "ok"
|
||||||
|
msgstr "'OK'"
|
||||||
|
|
||||||
|
msgid "options"
|
||||||
|
msgstr "'Options'"
|
||||||
|
|
||||||
|
msgid "pause"
|
||||||
|
msgstr "'Pause'"
|
||||||
|
|
||||||
|
msgid "paused"
|
||||||
|
msgstr "'GAME PAUSED'"
|
||||||
|
|
||||||
|
msgid "prev"
|
||||||
|
msgstr "'Prev'"
|
||||||
|
|
||||||
|
msgid "rules"
|
||||||
|
msgstr "'Game Rules'"
|
||||||
|
|
||||||
|
msgid "save"
|
||||||
|
msgstr "'Save'"
|
||||||
|
|
||||||
|
msgid "saveError"
|
||||||
|
msgstr "'Error saving game'"
|
||||||
|
|
||||||
|
msgid "saveGame"
|
||||||
|
msgstr "'Save Game'"
|
||||||
|
|
||||||
|
msgid "startNew"
|
||||||
|
msgstr "'New game'"
|
||||||
|
|
||||||
|
msgid "switch"
|
||||||
|
msgstr "'Switch'"
|
||||||
|
|
||||||
|
msgid "topScores"
|
||||||
|
msgstr "'Hall Of Fame'"
|
||||||
|
|
||||||
|
msgid "tryAgain"
|
||||||
|
msgstr "'Try again'"
|
||||||
|
|
||||||
|
msgid "version"
|
||||||
|
msgstr "'version 2.0'"
|
||||||
|
|
||||||
|
msgid "volume"
|
||||||
|
msgstr "'Volume:'"
|
||||||
|
|
||||||
|
msgid "won"
|
||||||
|
msgstr "'CONGRATULATIONS, YOU HAVE WON!'"
|
||||||
|
|
BIN
resources/A1.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/A2.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/A3.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
resources/A4.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
resources/A5.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
resources/A6.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
resources/B1.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/B2.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
resources/B3.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
resources/B4.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
resources/B5.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
resources/B6.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
resources/C1.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/C2.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/C3.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
resources/C4.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/C5.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
resources/C6.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/D1.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/D2.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
resources/D3.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
resources/D4.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
resources/D5.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
resources/D6.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/E1.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/E2.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/E3.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/E4.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/E5.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/E6.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/F1.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/F2.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
resources/F3.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/F4.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/F5.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/F6.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
resources/a1.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
resources/a2.png
Normal file
After Width: | Height: | Size: 821 B |
BIN
resources/a3.png
Normal file
After Width: | Height: | Size: 844 B |
BIN
resources/a4.png
Normal file
After Width: | Height: | Size: 802 B |
BIN
resources/a5.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
resources/a6.png
Normal file
After Width: | Height: | Size: 842 B |
BIN
resources/applause.ogg
Normal file
BIN
resources/b1.png
Normal file
After Width: | Height: | Size: 818 B |
BIN
resources/b2.png
Normal file
After Width: | Height: | Size: 802 B |
BIN
resources/b3.png
Normal file
After Width: | Height: | Size: 843 B |
BIN
resources/b4.png
Normal file
After Width: | Height: | Size: 811 B |
BIN
resources/b5.png
Normal file
After Width: | Height: | Size: 770 B |
BIN
resources/b6.png
Normal file
After Width: | Height: | Size: 776 B |
BIN
resources/betwarr.png
Normal file
After Width: | Height: | Size: 359 B |
BIN
resources/blue.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
resources/btn.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
resources/c1.png
Normal file
After Width: | Height: | Size: 738 B |
BIN
resources/c2.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
resources/c3.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
resources/c4.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
resources/c5.png
Normal file
After Width: | Height: | Size: 822 B |
BIN
resources/c6.png
Normal file
After Width: | Height: | Size: 818 B |
BIN
resources/click.ogg
Normal file
BIN
resources/closed.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
resources/cursor.png
Normal file
After Width: | Height: | Size: 828 B |
BIN
resources/d1.png
Normal file
After Width: | Height: | Size: 785 B |
BIN
resources/d2.png
Normal file
After Width: | Height: | Size: 811 B |
BIN
resources/d3.png
Normal file
After Width: | Height: | Size: 832 B |
BIN
resources/d4.png
Normal file
After Width: | Height: | Size: 852 B |
BIN
resources/d5.png
Normal file
After Width: | Height: | Size: 853 B |
BIN
resources/d6.png
Normal file
After Width: | Height: | Size: 900 B |
BIN
resources/darkpattern.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
resources/e1.png
Normal file
After Width: | Height: | Size: 720 B |
BIN
resources/e2.png
Normal file
After Width: | Height: | Size: 724 B |
BIN
resources/e3.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
resources/e4.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
resources/e5.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
resources/e6.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
resources/f1.png
Normal file
After Width: | Height: | Size: 735 B |
BIN
resources/f2.png
Normal file
After Width: | Height: | Size: 736 B |
BIN
resources/f3.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
resources/f4.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
resources/f5.png
Normal file
After Width: | Height: | Size: 731 B |
BIN
resources/f6.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
resources/glasbk2.ogg
Normal file
BIN
resources/greenpattern.png
Normal file
After Width: | Height: | Size: 933 B |
BIN
resources/hint-near.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/hint-side.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
resources/hint-tile.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
resources/horbetweenhint.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
resources/hornearhint.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
resources/horposhint.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
resources/laser.ogg
Normal file
BIN
resources/laudcn2.ttf
Normal file
BIN
resources/luximb.ttf
Normal file
BIN
resources/marble1.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
resources/nova.png
Normal file
After Width: | Height: | Size: 232 KiB |
BIN
resources/nova.ttf
Normal file
BIN
resources/opensquare.png
Normal file
After Width: | Height: | Size: 47 KiB |