Moved the creation of the file panel to after the coordinates are set.
Previously it was constructed before the location was set but the event handlers were bound after the location was set.
The texture was sometimes being generated in a different thread (the one that generated the chunk) leading to an error.
Moved the texture acquisition step into the draw function so it will always be called from the main thread.
Moved the resource pack class into TriMesh
The previous changes meant that events listening for camera change were not bound when the camera position was set.
This manually sets them on the renderer as well as the camera.
Reading into OpenGL I found some issues with how we were doing things.
OpenGL functions cannot be called until the window is shown which might be the reason some users are getting errors.
Created a function that runs the first time the window is shown. Moved all the initial OpenGL state setting into this function. Enable is run once this function is done.
Other OpenGL initialisation is moved into the drawing functions which are run after the window is shown for the first time.
Long error messages could flow off the end of the traceback dialog.
This goes back to the TextCtrl (not sure why I was using the ExpandoTextCtrl) which has scrolling enabled by default.
These scripts call the main function.
This should allow users to just type `amulet_map_editor` in the console instead of having to have the python prefix
This adds a config file that the stale bot needs to run.
It will only mark tickets as stale if they have the "state: more information needed" label.
7 days after having that tag with no activity the "state: stale" label will be added and the default message written.
14 days after that with no activity the issue will be closed.
* Refactored the select box entries
Moved all the logic into a function so it isn't duplicated six times
* Added return to the validator special characters
This allows enter to be processed by the window
* Fixed some issues with the validators
* Stop copy events propagating to the menu
If coping in a UI element catch the copy so it does not propagate to the menu and cause a selection copy.
There are issues doing the same with delete, cut and paste so these are suppressed for now.
* Reformatted
* Revert "Stop copy events propagating to the menu"
This reverts commit b9d15ae74ff2e54843604568bf4586e80dd3aea8.
* Refactored int validator
* Added a UI element to view and set the camera speed
The camera speed value was hidden before and could only be set with the mouse wheel.
This adds a UI element to view and set the movement speed.
* Fixed speed multiplier bug
The speed in the popup was showing blocks per tick not blocks per second
This moves the actual operation to a new thread so that the UI does not lock up when an operation takes a long time to run.
This applies to function operations and generator operations but only the latter will display estimated time like before.
Also added the ability to cancel operations.
Modified the save logic to use the new operation running system.
Depreciated the old show_loading_dialog function. I don't know if third party code still uses this.