# HG changeset patch # User cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1244476802 0 # Node ID 51cc05d862f2adf7ccdd1e65ff90238e2f640e7b # Parent 10b5f7f36dd42da84dab840b90e2c3d1d338c4b3 Merged editor_rewrite branch to trunk. This contains changes that may break compatibility against existing clients. For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch diff -r 10b5f7f36dd4 -r 51cc05d862f2 build/linux2-config-dist.py --- a/build/linux2-config-dist.py Wed Jun 03 19:29:52 2009 +0000 +++ b/build/linux2-config-dist.py Mon Jun 08 16:00:02 2009 +0000 @@ -24,6 +24,7 @@ context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41', 'boost_filesystem-mt']) context.checkSimpleLib(['boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41', 'boost_regex-mt']) context.checkSimpleLib(['png'], 'png.h'); + context.checkSimpleLib(['xcursor']); if context.env['opengl']: # linking explicitly against libstdc++ to work around Segfault_in_cxa_allocate_exception issue: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception diff -r 10b5f7f36dd4 -r 51cc05d862f2 clients/editor/__init__.py --- a/clients/editor/__init__.py Wed Jun 03 19:29:52 2009 +0000 +++ b/clients/editor/__init__.py Mon Jun 08 16:00:02 2009 +0000 @@ -1,6 +1,3 @@ # coding: utf-8 -from fifedit import Fifedit -from selection import Selection - -__all__ = [ 'fifedit', 'selection', 'plugins' ] +__all__ = [ 'plugins', 'scripts' ] diff -r 10b5f7f36dd4 -r 51cc05d862f2 clients/editor/fifedit.py --- a/clients/editor/fifedit.py Wed Jun 03 19:29:52 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -# coding: utf-8 - -import fife -import pychan -import pychan.widgets as widgets - -class Fifedit(): - """ - Fifedit is the editor tool. It is designed to be embedded in clients, most notably the editor. - Fifedit is a plugin system for editing tools. See L{registerPlugin}. - """ - def __init__(self, engine): - pychan.init(engine,debug=False) - self.gui = pychan.loadXML('gui/rootpanel.xml') - eventMap = { - 'quitButton' : self.quit - } - self.gui.mapEvents(eventMap) - self.gui.show() - - self.active = True - - # To create a plugin, just define menu_items with string keys and function values. - # The key will be displayed on the Editor menu, and the value will be called when the key is clicked. - def registerPlugin(self, plugin): - plugin.install(self.gui) - - def quit(self): - self.gui.hide() - self.active = False diff -r 10b5f7f36dd4 -r 51cc05d862f2 clients/editor/gui/cameraedit.xml --- a/clients/editor/gui/cameraedit.xml Wed Jun 03 19:29:52 2009 +0000 +++ b/clients/editor/gui/cameraedit.xml Mon Jun 08 16:00:02 2009 +0000 @@ -1,40 +1,40 @@ - - + + - - - - - - - -