127 Commits

Author SHA1 Message Date
David Vierra
c40e29077e Move selection drag and resize logic into a BoxHandleNode class for reuse 2015-01-23 00:57:40 -10:00
David Vierra
3db1cbb9ec BlockTypeButton doesn't expand vertically by default, like a regular button 2015-01-22 15:05:30 -10:00
David Vierra
97d94530c1 Combine a spin box and a slider into a SpinSlider widget. Use it in the brush tool. 2015-01-22 15:05:11 -10:00
David Vierra
07cdd46816 Fix crash when tool has no cursorNode 2015-01-22 14:51:49 -10:00
David Vierra
93bd771575 Double clicking a pending import zooms to its center 2015-01-21 23:31:28 -10:00
David Vierra
1878917b12 Move tool allows multiple pending imports 2015-01-21 17:48:18 -10:00
David Vierra
883907ace5 Fix ObjectInspector's reload not working when a missing object reappears 2015-01-21 17:47:13 -10:00
David Vierra
f57196537b Encapsulate pending import info, preparing for multiple imports 2015-01-21 15:35:04 -10:00
David Vierra
b4de6e2ac9 Change error handler to actually crash. 2015-01-21 14:43:37 -10:00
David Vierra
abe03a4301 Begin work on schematic browser 2015-01-21 14:26:39 -10:00
David Vierra
3d64f30df7 Remove stray log from viewAction work 2015-01-20 10:41:52 -10:00
David Vierra
54c4ffa8a1 Profile augmentEvent 2015-01-20 10:41:22 -10:00
David Vierra
7c46cfa7dd Force view redraw when center pos changes
Updates minimap when turning camera
2015-01-20 10:41:09 -10:00
David Vierra
66e941e1d5 Fix zero division in profilerui 2015-01-20 10:40:43 -10:00
David Vierra
ecd796df04 Reduce distance rayCast advances through chunks from 2000 to a more reasonable maxDistance * 4
Reduces lag when aiming at the sky
2015-01-20 10:40:33 -10:00
David Vierra
d94c07d8d4 Unify view actions to accept either mouse or keyboard bindings. Bindings are now saved to settings.
To do: Mouse wheel bindings, get rid of the second binding popup
2015-01-20 01:10:03 -10:00
David Vierra
908cdb3521 Event focus set on world view when session is opened. 2015-01-20 01:08:20 -10:00
David Vierra
31af4169b9 Put log file in user data folder 2015-01-19 23:04:10 -10:00
David Vierra
fe7e841c16 Put data folder in ./ instead of ./src/mcedit when running from source (xxx work on this) 2015-01-19 23:03:52 -10:00
David Vierra
49e88faec6 Disable tool shortcuts. Find out why they override view controls. 2015-01-13 15:41:32 -10:00
David Vierra
a1e3f48f58 Camera view has WASD controls (again) 2015-01-13 15:39:54 -10:00
David Vierra
474b7b18e1 WorldView doesn't update if centerPoint is called with the same value 2015-01-13 15:39:33 -10:00
David Vierra
a9744659c6 WorldView accepts keyboard focus 2015-01-13 15:39:21 -10:00
David Vierra
814fbfcfa4 More work on worldview keybinding editor - accepts keypresses including lone modifier keys 2015-01-13 15:38:41 -10:00
David Vierra
e2c81bec72 Add keypress action handlers to worldview 2015-01-13 15:37:00 -10:00
David Vierra
0f0c6a4536 Keep profiler enabled for now 2015-01-12 15:59:16 -10:00
David Vierra
73806f9fc0 SelectionScene is transparent again, now excludes air blocks using a composed selection 2015-01-12 01:04:32 -10:00
David Vierra
fb2ddf388c WorldView mouseover handles ChunkNotPresent more sensibly 2015-01-12 01:04:31 -10:00
David Vierra
cc8f475e2a ChunkGroupNode now implements containsChunkNode 2015-01-12 01:04:31 -10:00
David Vierra
72619a8483 readChunk now propagates ChunkNotPresent correctly 2015-01-12 01:04:30 -10:00
David Vierra
a1c6e32e64 Move chunkPositions and sectionPositions to SelectionBox
Now requires min/max cx/cy/cz to be implemented by subclasses
2015-01-12 01:04:30 -10:00
David Vierra
ecec87c7d0 VertexRenderNode no longer assumes anything about the enable state of GL_TEXTURE_2D on GL_TEXTURE0.
It still assumes GL_TEXTURE1 is enabled if lightcoords are present.
2015-01-12 01:04:30 -10:00
David Vierra
aeac1b1883 Camera view skips chunks outside the view distance (chunks that would be offered because the minimap loaded them) 2015-01-12 01:04:29 -10:00
David Vierra
ff17731cf8 iterateChunks has a radius parameter, not diameter 2015-01-12 01:04:29 -10:00
David Vierra
494c992fda Increase camera view distance, ensure view distance changes update the scene 2015-01-12 01:04:28 -10:00
David Vierra
3d8e524186 Add benchmark for SelectionScene 2015-01-12 01:04:28 -10:00
David Vierra
52b7261837 Add a few more profiler calls 2015-01-12 01:04:27 -10:00
David Vierra
8ad5823f06 Profiler widget shows time not taken by children in a "self" column, instead of as an (other) node.
Zero div error in ProfilerWidget
2015-01-12 01:04:24 -10:00
David Vierra
dbfdd44047 Render small selections immediately 2015-01-11 01:30:32 -10:00
David Vierra
641f0b338b Don't stupidly recalculate renderType lookup table for each section 2015-01-11 01:30:14 -10:00
David Vierra
af1b889f93 Profiler widget has alternating colors 2015-01-11 01:29:11 -10:00
David Vierra
9b458c3369 Remove some dead code 2015-01-11 01:28:54 -10:00
David Vierra
50425f384f Fix error when changing shape with no selection 2015-01-11 01:27:47 -10:00
David Vierra
bc3b1861c0 ShapeWidget buttons now toggle exclusively 2015-01-11 01:27:19 -10:00
David Vierra
eab84b737d Whoops, ZeroBox is actually used 2015-01-11 01:21:02 -10:00
David Vierra
68ea8b823b BoundingBox -> mceditlib.selection 2015-01-10 12:14:28 -10:00
David Vierra
44f601a641 Select tool creates shaped selections.
Move brush shapes to mceditlib.selection
BrushShapeWidget -> mcedit2.widgets.shapewidget.ShapeWidget
New class SelectionScene renders selections as opaque white cubes
Change text of resize/deselect history commands
BoundingBox compares against None without crashing, has sensible repr again
2015-01-10 11:55:19 -10:00
David Vierra
78ae05608f VertexArrayBuffer correctly computes its element offsets instead of using the weird guesses in rendering.slices 2015-01-10 11:19:42 -10:00
David Vierra
b743217870 Clear undo block before saving, adjust comments 2015-01-09 18:14:46 -10:00
David Vierra
85cf1808e2 Add property list to player editor (xxx still needs undo, so does chunk property editor) 2015-01-09 00:27:59 -10:00