Initial mercurial import of simplui trunk.
Implement batch support for Labels and TextInputs.
Disable pyglet's gl error checking, to match kytten.
Fix batching for text.
Implemented multi-window support.
Add workaround to speed up label rendering.
Theme tweaks for themes/macos.
Separated responsibility of determine_size and _pref_size.
Replaced _pref_size tuple with the Size class.
Added Java-style flow layout.
Added setuptools/easy_install for 1.0.4 release.
Added tag release-1.0.4 for changeset 9c0c2df7e123
More blocks by textures

code edits + texture.png. allows for 64 blocks now.
boskee Merge

merged with boskee, will mod later.
(dont know how to do this on Windows, sorry)
Update main.py

Fixed "ZeroDivisionError: float division by zero" when minimized.
Traceback (most recent call last):
  File "MCMain.py", line 484, in <module>
    main()
  File "MCMain.py", line 481, in main
    pyglet.app.run()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 264, in run
    EventLoop().run()
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 63, in run
    self._timer_func(0, 0, timer, 0)
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 84, in _timer_func
    sleep_time = self.idle()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 193, in idle
    window.dispatch_event('on_draw')
  File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 1219, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python27\lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    return getattr(self, event_type)(*args)
  File "MCMain.py", line 434, in on_draw
    self.set_3d()
  File "MCMain.py", line 424, in set_3d
    gluPerspective(65.0, width / float(height), 0.1, 60.0)
ZeroDivisionError: float division by zero






C:\Documents and Settings\eduardo.portella\desktop>python MCMain.py
Traceback (most recent call last):
  File "MCMain.py", line 484, in <module>
    main()
  File "MCMain.py", line 481, in main
    pyglet.app.run()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 264, in run
    EventLoop().run()
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 63, in run
    self._timer_func(0, 0, timer, 0)
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 84, in _timer_func
    sleep_time = self.idle()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 193, in idle
    window.dispatch_event('on_draw')
  File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 1219, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python27\lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    return getattr(self, event_type)(*args)
  File "MCMain.py", line 434, in on_draw
    self.set_3d()
  File "MCMain.py", line 424, in set_3d
    gluPerspective(65.0, width / float(height), 0.1, 60.0)
ZeroDivisionError: float division by zero




C:\Documents and Settings\eduardo.portella\desktop>
Added sort function in inventory. All blank items in the list are currently moved to the end. It is currently sorting by item.id(), but it can be easily changed to sort by another parameter.
Added option to change quick slots sorting mode by pressing M key.
Add additional sorting modes.
more terrain options

options 1-3 now generate 1 block only worlds with the specified block,
new "4" does original terrain generation, change how hillheight works,
still does "overflow" against the wall though.  Merged code with
avelanarius codebase.
Merge commit 'cf28f043f27321f03c2cf798c94e75c2346eeb12'

Conflicts:
	main.py