908 Commits

Author SHA1 Message Date
David Vierra
ee699a1674 WorldEditor.importSchematic[Iter] now accepts either a schematic or a dimension 2015-10-01 00:01:13 -10:00
David Vierra
e814841844 Create a SchematicWorldView and a displaySchematic function
SchematicWorldView is a world view variant with specialized controls for orbiting a world from a fixed distance and center point, and zooming in and out on this world.

displaySchematic can be used, even from non-GUI code, to open a window displaying a single world.
2015-09-29 11:24:53 -10:00
David Vierra
bcbf61f82c Fix logic for deciding if a cell needs a light update.
When a light-emitting block is replaced with one that emits less light, and the light drawn into the block from neighbors is greater than the light emitted by the new block, the drawn light should be considered the new light rather than the block's brightness.
2015-09-28 21:02:54 -10:00
David Vierra
eb6facc20c Collect more stats in relight/with_cython and add some comments 2015-09-28 20:58:57 -10:00
David Vierra
7c58091558 Cache absent sections' coords in RelightCtx and handle ValueError from uncreatable sections. 2015-09-28 20:58:16 -10:00
David Vierra
16d3aa19fa Add more logging info to block_copy relights, and skip empty lists 2015-09-28 20:56:36 -10:00
David Vierra
c162faa262 Skip SkyLight update for Nether and End dimensions 2015-09-28 20:52:24 -10:00
David Vierra
32c1c44465 Kill dead code in relight_test.py 2015-09-28 20:51:44 -10:00
David Vierra
a8169378b1 Better handling of named/unknown BlockTypeSets in SchematicFileAdapter 2015-09-28 10:52:15 -10:00
David Vierra
41d5214bb9 Demote lightmap logger to DEBUG 2015-09-23 01:27:06 -10:00
David Vierra
9ef15e0890 Rework test suite to use pytest fixtures in conftest.py 2015-09-22 16:38:06 -10:00
David Vierra
fd98d50c4e Add report options for py.test 2015-09-22 11:25:24 -10:00
David Vierra
45c5e713ee Add Quit button to error dialog 2015-09-21 11:14:47 -10:00
David Vierra
8ccc71780a Implement "Restart MCEdit" button on error dialog 2015-09-21 09:45:47 -10:00
David Vierra
a4106ad018 Fix misplaced import in main.py
This was causing OpenGL.GL to be loaded too early
2015-09-20 01:01:40 -10:00
David Vierra
c1d6484db4 Cleanup 2015-09-17 20:40:37 -10:00
David Vierra
39a113dab9 Error reporting dialog can (finally) upload error reports to Pastebin. 2015-09-17 20:40:32 -10:00
David Vierra
e11787a4fa centerWidgetInScreen now centers the widget on the screen containing its parent widget. 2015-09-17 20:40:02 -10:00
David Vierra
abcc812e80 Show error reporting dialog on all unhandled exceptions. 2015-09-17 20:39:43 -10:00
David Vierra
83cf434426 Put ShapeWidget in a neat GroupBox with the shape's name in the caption. 2015-09-17 15:54:21 -10:00
David Vierra
4758e6f7dd Add brush shape icons 2015-09-17 03:26:11 -10:00
David Vierra
29c960925c Use QSignalMapper instead of function closures for inventory slots. 2015-09-16 22:06:21 -10:00
David Vierra
17d7afaba2 showProgress no longer shows immediately and no longer processes events
Not processing events means "Cancel" is broken, but it was already broken anyway.
Processing events before the modal dialog is shown can cause edits to occur while the level is saved. (Oops.)
2015-09-16 20:54:41 -10:00
David Vierra
779c84af74 Handle invalid meta values when getting item names
A warning is emitted and a placeholder name is returned.
2015-09-16 20:53:30 -10:00
David Vierra
bfeb5c7e94 Inventory editor now allows items to be dragged from the item list 2015-09-16 20:53:02 -10:00
David Vierra
0775308066 Cleanup 2015-09-16 05:30:15 -10:00
David Vierra
0bf29a721b Touch up history icon 2015-09-16 04:21:29 -10:00
David Vierra
78ce5128fb Add create argument to getChunks 2015-09-16 04:20:39 -10:00
David Vierra
eaff7efa52 Add option to copyBlocks for replacing unknown blocks with a specific block ID 2015-09-15 20:41:25 -10:00
David Vierra
9967550ed9 Fix brush mode always resetting to "Biome" 2015-09-15 01:39:46 -10:00
David Vierra
6690a1cad5 Brutal solution to making sure EditorSession gets dealloc'd.
Brutal.
2015-09-15 01:28:22 -10:00
David Vierra
a658f2f9bf Make some more dockwidgets fade to transparent 2015-09-15 01:27:25 -10:00
David Vierra
047978ea52 DON'T EVER capture self in a closure like this!
When a Qt signal is connected to a function that closes over any references, the GC can't ever detect this cycle: self -> some QObject -> Signal handler wrapper -> function with closure -> self.

ALWAYS use QSignalMapper instead of doing this crap!
2015-09-15 01:12:22 -10:00
David Vierra
8f481911c0 Touch up some more icons. 2015-09-15 01:08:44 -10:00
David Vierra
dbb9f5871f Version/Resource Pack buttons reorganize when toolbar labels are off. 2015-09-15 00:14:43 -10:00
David Vierra
e9ec1e7d2f Remove logger. 2015-09-15 00:13:59 -10:00
David Vierra
9da20b153f Add some new icons, touch up some existing icons 2015-09-14 23:53:33 -10:00
David Vierra
bde6ab2df8 MCEDockWidget has an optional fade in/out when mouse enters/leaves. 2015-09-14 23:01:50 -10:00
David Vierra
b6dc6ffe14 Don't show debug windows in the panels toolbar. 2015-09-14 23:01:25 -10:00
David Vierra
01bb815ebd Create custom QDockWidget subclass 2015-09-14 22:19:20 -10:00
David Vierra
affdddfb6c Add icons for "Toolbar Text" and "History" 2015-09-14 22:19:00 -10:00
David Vierra
0d49345f29 Changing the time of day also changes the sky color. 2015-09-14 18:01:25 -10:00
David Vierra
b236de9611 Add setDayTime function to SkyNode
TODO: Stars?
2015-09-14 18:00:43 -10:00
David Vierra
dfe7c2f145 NBT edits only create edit commands when the value is actually changed. 2015-09-14 17:53:07 -10:00
David Vierra
659826b702 Fix chunk inspector widgets causing edit commands on load. 2015-09-14 17:50:42 -10:00
David Vierra
3f32fe0ec1 Numpy warning: Fix float division result used for shape of unpacked data. 2015-09-14 17:47:23 -10:00
David Vierra
c804a5e945 Add button to toggle toolbar text 2015-09-14 16:51:39 -10:00
David Vierra
48e71161f0 Changing resource pack/minecraft version displays a (static) progress window. 2015-09-14 15:34:34 -10:00
David Vierra
0d5a50e691 Numpy warning: Explicitly use 'unsafe' casting when scaling uint8 colors. 2015-09-14 13:07:50 -10:00
David Vierra
fc4f89d2d7 Numpy warning: Fix float result of division used for array shape 2015-09-14 13:07:33 -10:00