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
David Vierra
1ef0e6cb54
Capture -W warnings to logging module
2015-09-14 13:07:09 -10:00
David Vierra
2d4df57cb3
Pin numpy version to <1.10.0
...
Numpy 1.10 changes casting rules for in-place operations, and I don't feel like adapting to that yet.
2015-09-14 12:42:08 -10:00
David Vierra
cb7f7f6b70
Fix typo in drawBox
2015-09-14 12:38:06 -10:00
David Vierra
9b770c2b42
Remove usage of glPushClientAttrib
2015-09-14 12:29:25 -10:00
David Vierra
3526f6c7d0
Brush modes are now instantiated by BrushTool instead of globally.
2015-09-10 20:04:18 -10:00
David Vierra
2a290d3c97
Cleanup
2015-09-10 19:25:34 -10:00
David Vierra
e1a6c51a2b
Added repeat count to Clone tool
2015-09-10 16:27:22 -10:00
David Vierra
10ce7746a9
showProgress is now able to combine multiple iterable tasks into one progress bar
2015-09-10 16:27:05 -10:00
David Vierra
c7b009b59c
rescaleProgress now deals with two-element and non-tuple yields
2015-09-10 16:26:36 -10:00
David Vierra
800ab23427
Move rescaleProgress+enumProgress to mceditlib.util.progress
2015-09-10 15:49:17 -10:00