340 Commits

Author SHA1 Message Date
David Vierra
0b6bf64ab9 Get version number from git or _version.py (created by build system)
Display version number in title bar and about box.
2015-04-10 11:11:31 -10:00
David Vierra
c487fc7bdf Fix blockpicker selecting multiple blocks while searching in single select mode
Need to figure out the lag when searching by ID
2015-04-03 16:24:21 -10:00
David Vierra
1b7e709e9e Dimension changing is barely working.
Still need to connect a few things to dimensionChanged, such as the inspector, and figure out what's wrong with the minimap
2015-04-03 16:23:44 -10:00
David Vierra
bb87a8740d Catch ValueError when getting string form of LastPlayed time, to catch times before 1970 2015-04-03 07:51:37 -10:00
David Vierra
49f7ce5f6e Restore "indiscriminate" option to flood fill
xxx add an API for telling flood fill that two block IDs are the same block in indiscriminate mode (e.g. grass and dirt)
2015-04-03 04:58:12 -10:00
David Vierra
554137d591 Fix copy-paste(?) bug in revisionhistory.copyToFolder 2015-04-03 04:57:25 -10:00
David Vierra
ff4424f743 Deque does not support slice assignment
too much numpy...
2015-04-03 04:56:52 -10:00
David Vierra
0053f7e94a Fix KeyError in region position cache, add set() as default value 2015-04-03 04:50:50 -10:00
David Vierra
5cbdd3a735 ResourceLoader wraps BadZipfile in an IOError so the try/catch around editor creation can catch it
I'm so bad at error handling.
2015-04-02 11:39:32 -10:00
David Vierra
d184ff07c1 Basic MultiMC integration
MultiMC installs can be configured in the same window as MC installs.
Saves folders of instances from all MMC installs are added to the "Folder" popup.
Also, the StackedWidget uses a blank widget to hide error messages and/or white GL widgets during world changes
2015-04-02 11:38:44 -10:00
David Vierra
c1d5d0befa lru_cache: Fix key being added to queue even when user_function raises an exception
Also change try/catch to get(key, sentinel) because exceptions are more expensive and misses are common for my use-case
2015-04-01 22:14:01 -10:00
David Vierra
694e39b0c9 lru_cache: Fix key being added to queue even when user_function raises an exception
Also change try/catch to get(key, sentinel) because exceptions are more expensive and misses are common for my use-case
2015-04-01 17:17:56 -10:00
David Vierra
c7a744d5ca Some fixes to MCInstallDialog after previous work
MCInstallGroup gains addInstall and removeInstall
Use the new "json" option type for options
2015-04-01 01:42:09 -10:00
David Vierra
b592cc4a3f Show progress dialog while opening a world. 2015-04-01 00:56:02 -10:00
David Vierra
2001e8e656 Fix duplicate items in version and resource pack lists after configuring installs 2015-04-01 00:28:00 -10:00
David Vierra
187949945c Move minecraftinstall.py globals into a singleton 2015-03-31 23:24:40 -10:00
David Vierra
4ef93f0641 Dumped map colors for all block states. Shows colors of wool and stained clay in minimap correctly. 2015-03-30 17:04:55 -10:00
David Vierra
43e73ae9b8 cachefuncs now iterate their keys instead of values 2015-03-30 15:57:52 -10:00
David Vierra
11d1301f32 invalidLayers is a set. Don't replace it with something else. 2015-03-30 15:55:35 -10:00
David Vierra
3c72a69679 cachefuncs now do nothing if asked to decache a non-cached key 2015-03-30 15:55:09 -10:00
David Vierra
9a73b1395b Chunk meshes now return SceneNodes instead of VertexArrayBuffers
This will allow them to return their own rendering commands instead of being limited to using VertexNodes.
2015-03-30 13:33:00 -10:00
David Vierra
ae7a9e1b84 Restore TileTicks accessor and renderer 2015-03-30 11:40:56 -10:00
David Vierra
ba53617acf Entities, TileEntities etc can now be toggled on and off
Restored another MCEdit1 feature!
2015-03-30 11:39:12 -10:00
David Vierra
88d7f61666 Fix handling of boolean typed settings 2015-03-29 23:55:54 -10:00
David Vierra
a58ea0775b Push reopened recent files to the top of the list. 2015-03-29 21:52:01 -10:00
David Vierra
121fd9929d Fix dumb bug in adding recent file 2015-03-29 21:10:05 -10:00
David Vierra
3fc4644f98 lru_cache: Remove key from self.queue on decache 2015-03-29 18:47:15 -10:00
David Vierra
c59d48caf6 Start working on show/hide view layers
These small commits are mostly for testing the buildbot scheduler.
2015-03-29 11:17:57 -10:00
David Vierra
69e39bdc3f Bring camera's near plane closer, to match minecraft's 2015-03-29 07:17:13 -10:00
David Vierra
cf6c724575 Exclude some IPython assets and modules from ipy spec. Finally exclude Tkinter for real. 2015-03-29 07:16:44 -10:00
David Vierra
85605ab0c0 Exclude secondary cython outputs from pyi spec 2015-03-29 07:16:05 -10:00
David Vierra
6b8cfad0b7 zmq/libzmq.pyd can't find MSVCR90.dll because it isn't in the same directory as itself or in the current directory.
Just chdir to the pyinstaller temp dir until I fix the libzmq linkage in pyinstaller. Every other pyd is in the same directory as MSVCR.
2015-03-26 05:55:19 -10:00
David Vierra
cfb71df84d Remove hard-coded 'pathex' from mcedit2.spec - if setup.py develop is run, then these modules will be on the search path with built .pyds.
xxx make sure `setup.py develop` is run before `pyinstaller mcedit2.spec`
2015-03-26 04:00:02 -10:00
David Vierra
09cc768bfc Fix item clicks in NBT widget not using the sort/filter proxy. 2015-03-23 21:55:03 -10:00
David Vierra
52674af7ac Inspector handles edits properly (find something better than the editMade signal. NBTCompoundRef?) 2015-03-23 21:54:37 -10:00
David Vierra
00c06831d5 Fix type errors in _matchTag, fix walkNBT not actually recursing, fix copy-paste error in targetTileEntityIDs 2015-03-23 21:53:58 -10:00
David Vierra
28839b6d96 WorldList no longer reloads the world if the selected world is clicked again 2015-03-22 18:36:29 -10:00
David Vierra
eec86d3489 Fix a stupid bug in removing clients
It was removing all clients except the one...
2015-03-22 18:35:24 -10:00
David Vierra
b224392395 Cache block ID and property .jsons, assuming they won't ever change since they are packaged with the app.
The editor can amend a newly-created BlockTypeSet later for user-configured blocks, etc...
2015-03-22 18:12:56 -10:00
David Vierra
2aa6cd05f5 Add "Recent Worlds" popup to world list widget 2015-03-22 18:11:56 -10:00
David Vierra
818aebd410 Row and Column accept numeric values as specifying fixed-width spacers 2015-03-22 16:59:38 -10:00
David Vierra
1b29350f36 Move RecentFilesSetting to appsettings.py, change MCESettingsOption to accept "json" as a type.
RecentFilesSetting now has a default value
2015-03-22 16:59:16 -10:00
David Vierra
d3e1f4c9c8 Render the world list in WorldListWidget using a list view with an item delegate
I'm getting the hang of this model-view-delegate thing (again)!
2015-03-21 16:18:53 -10:00
David Vierra
effde4d394 Remove duplicate exceptions 2015-03-21 16:17:14 -10:00
David Vierra
048bc03d96 Fix worldlist editing the wrong world because its selection index is cleared when it closes 2015-03-19 20:31:01 -10:00
David Vierra
c3dbb9817a levelbase.py -> fakechunklevel.py 2015-03-19 20:25:45 -10:00
David Vierra
30ad14e172 Remove dead code 2015-03-19 20:24:34 -10:00
David Vierra
5477bd51a5 Re-add blocktype conversion. Store block IDs in schematic files.
This allows proper transfer of mod-added blocks (not items) between worlds saved by MinecraftForge 1.7. Items require (intricate) special handling, since they can be literally anywhere. As an added bonus, when items are handled correctly, items can be transferred between Minecraft 1.7 and 1.8, since 1.7 uses numeric item IDs while 1.8 uses textual ones.

Only block IDs are converted. In the past, block meta conversion was needed for Pocket Edition worlds (wool specifically) but since block IDs in MCPE are converging on PC edition IDs this may not be needed. In any case, we'll burn the MCPE bridge when we come to it.
2015-03-19 19:39:15 -10:00
David Vierra
34285d3dc9 Fix [Tile]Entities not getting exported to schematics
Because nobody was really sure where they were being stored.
2015-03-19 17:03:18 -10:00
David Vierra
31dc9d49bb Fix asterisk error when passing positions to BoundingBox constructor.
Why did this go undetected for so long!?
2015-03-19 17:01:52 -10:00