[submodule "lib/pgfw"]
path = lib/pgfw
- url = makar:/var/www/git/pgfw/
+ url = frank@shampoo.ooo:/var/www/git/pgfw/
branch = master
from os import environ, execvp, chdir, getcwd
from os.path import exists, join, dirname
-from sys import version_info, argv, maxint
+from sys import version_info, argv
def can_import(module_name):
try:
Game.__init__(self)
mixer.init(44100, -16, self.CHANNEL_COUNT, 4096)
self.get_configuration().type_declarations.add("bool", "mouse", "resets")
+ self.get_configuration().type_declarations.add("bool", "editor", "enabled")
self.sound_effects = SoundEffects(self)
self.glyphs = Glyphs(self)
self.editor = Editor(self)
option_texts = self.MENU_OPTIONS
else:
option_texts = [self.MENU_OPTIONS[0], self.MENU_OPTIONS[2]]
+ if not self.get_configuration("editor", "enabled"):
+ option_texts = option_texts[:-1]
height = glyphs.get_tile(0).get_height() * len(option_texts) + \
self.MENU_MARGIN * (len(option_texts) - 1) + \
self.MENU_PADDING * 2 + 3
temp-directory = /tmp/
[editor]
+enabled = no
root-directory = resource/editor
levels-directory = levels
original-directory = original
-Subproject commit 717b2eb6860cc1a4804bc258a0b07c5013caf3d5
+Subproject commit e16edef965d4cab364f8defa47d0dfaa0c1b1941
app=[dict(script="OPEN-GAME", plist=plist)],
setup_requires=["py2app"],
options=dict(py2app=dict(arch="i386",)),
- data_files=["wisp", "resource", "lib", "config", "OFL.txt"])
+ data_files=["OPEN-GAME", "PictureProcessing.py", "resource", "lib", "config"])
elif platform == "win32":
from lib.pgfw.pgfw.SetupWin import SetupWin
SetupWin().setup()