Commit Graph

601 Commits

Author SHA1 Message Date
faffbadf36 Handle comments at after code lines better. 2022-06-03 17:33:30 +02:00
6341759d8e Put class variables to the bottom of the class. 2022-06-03 17:26:07 +02:00
bb178cfa54 CamelCase classes. 2022-06-03 17:18:47 +02:00
caf1fb1a39 Also handle setget. 2022-06-03 17:10:10 +02:00
4322dcbbcb Implemented method transformations. 2022-06-03 17:07:35 +02:00
653dc83e1c Split export keywords to new lines. 2022-06-03 15:07:39 +02:00
fcee8a2f39 Also generate a constructor, destructor, and _bind_methods. 2022-06-03 15:00:43 +02:00
2bf79007a2 Header generation. 2022-06-03 14:56:25 +02:00
b7522472cd Mostly class related improvements to the parser. 2022-06-03 13:58:19 +02:00
e44bf42190 Parse scope data. 2022-06-03 13:19:31 +02:00
aaf2ca9c2e Fix scope parsing of the converter plugin, and make printing parsed data better. 2022-06-03 12:45:03 +02:00
d803ecf2cd Started working on a new simple addon, that should help with porting gdscript (my addons -> my codestyle) to cpp in the future. I'm not planning on doing anything fancy, just something relatively simple that would do most of the trivial, but tedious stuff. 2022-06-03 01:25:50 +02:00
0425f14df0 Updated the engine, and removed the mesh data resource addon, as the engine now has it built in. 2022-04-14 14:12:11 +02:00
dbb28005c5 Removed the color palette addon, as I never really ended up using it. 2022-04-10 20:43:43 +02:00
f0b6dfa434 Updated the engine. I added Vector2i, Vector3i, Rect2i, PoolVector2i, PoolVector3i, and StringName support for variants. Also smaller improvements, and backports. 2022-03-22 02:14:33 +01:00
99b786e5a5 add_slot in ResourcePropertyList.gd will now return the expected index. 2022-03-09 18:31:54 +01:00
c6fbc8cf9b The int properties for the world editor's ui now also use a HBoxContainer. 2022-03-09 18:10:03 +01:00
953be13a66 Now the world generator addon's float properties use a hbox container, and their label is set to expand fill. 2022-03-09 18:06:21 +01:00
d252a2e977 Set up a base ocean layer for the world. 2022-03-08 18:21:59 +01:00
ecdfb65aa7 Implement selecting the edited resource on clicking it's button in the world generator addon's EditorResourceWidget. 2022-03-08 18:12:11 +01:00
45bb1ae8fa Also added undo redo support for the gradient editor when adding and removing colors. 2022-03-08 12:28:07 +01:00
7157df772c Also fixed the gradient editor popup thing. 2022-03-08 12:20:49 +01:00
48f5fbfcbb Also added undo redo support fro the gradient editor's interpolation type dropdown. 2022-03-08 12:12:14 +01:00
b17b7bb583 Added undo redo support form mat maker gd's gradient editor. This also fixes seamless color editing with it. 2022-03-08 12:08:30 +01:00
64c39c4444 Added a new WorldGenRaycast class, and now world generator will use this instead of a stack and stack index to make the data available to the generation methods. Also added local uv to it. 2022-02-19 10:41:33 +01:00
0fc1da3def Added warning message when a normal ends up being zero to mdr ed's generate normal. Also set a proper default in this case. 2022-02-14 14:50:33 +01:00
05ff25e41a Fix normal generation for mdr ed. 2022-02-14 14:19:37 +01:00
c2b76ea2f4 Re-enable the changed event before returning early in uv_unwrap(). 2022-02-13 16:42:53 +01:00
cf5dcf4512 Fix the undo redo action's name for unmark seam. 2022-02-13 16:39:42 +01:00
fa1a945319 Fix face deletion in mdr'es when more that one face is selected. 2022-02-13 16:14:34 +01:00
24d0e671ef Implemented rotation for the uv editor. 2022-02-13 13:45:33 +01:00
05f1c2c365 Implemented horizontal and vertical mirroring for the uv editor. 2022-02-13 12:57:18 +01:00
8ae0b5b236 Set up events for the new buttons. 2022-02-13 00:34:45 +01:00
a0a090ace9 Implement uv rect selection for mdr ed. 2022-02-12 23:37:19 +01:00
e729a31803 Added mirror and rotation buttons to the uv editor. They are not yet implemented. 2022-02-12 22:59:36 +01:00
e44e4c1366 Fixed godoxel's save file dialog. 2022-02-12 22:22:40 +01:00
926922572f Moved the world_generator folder under scripts. 2022-02-12 20:06:13 +01:00
ae3558d270 Moved the entity classes folder. 2022-02-12 19:26:05 +01:00
39d97244e4 Fix typo. 2022-02-12 16:52:19 +01:00
c31098cad8 Check whether the current mesh data instance is still ok, and unset if it gets freed in mdr ed's plugin. This can happen in the editor while messing around with scenes. 2022-02-12 14:35:56 +01:00
0707a9fa84 Fix normal (re)generation in mdr ed. 2022-02-11 19:25:27 +01:00
7e05bda987 Added a flip face action to mdr ed. 2022-02-11 17:29:37 +01:00
232aae5726 Updated the modules to the latest. I changed the Terra and Terraman class prefixes to Terrain. 2022-02-08 14:44:37 +01:00
3e4038a8ee Set clip content to true for godoxel's canvas's container again. I probably forgot to commit this the last time. 2022-01-31 14:40:42 +01:00
0d4a4347f4 Added the module root to the data manager as a selectable fodler. 2022-01-28 18:42:33 +01:00
61cfc92beb Fix created face's orientation when only 3 verts are selected. 2022-01-28 13:58:17 +01:00
f080b6041e Fix typo. 2022-01-28 13:23:26 +01:00
fd0486ff7e Now pivot points also work for scaling. 2022-01-28 13:16:17 +01:00
15404a82d9 Now pivot points work for rotation. 2022-01-28 13:14:24 +01:00
aa70306e6b Improved mdr'eds tranlate action by a lot. Also work on pivot point support. 2022-01-28 13:12:10 +01:00
410d48d0fa Remove unused code, and added a helper method. 2022-01-28 11:01:03 +01:00
f1a8188dfa Proper rotation implementation. 2022-01-28 10:57:43 +01:00
43b70b854e Lots of improvements to translate and scale. Initial (bad for now) rotation implementation. 2022-01-28 10:25:47 +01:00
d2beb36e2c Make sure to only apply a drag operation to a vertex only once. 2022-01-28 10:08:05 +01:00
ce1c408bc2 Implemented the clean mesh action. 2022-01-27 20:34:49 +01:00
38f6c15f36 Now the new edges are automatically selected after an extrude. 2022-01-27 19:32:43 +01:00
53f01ae370 Use the new delaunay triangulation for the add face action in case more than 3 verts are selected. 2022-01-27 19:26:47 +01:00
bb8eebfc0b Remove stray print. 2022-01-27 17:34:24 +01:00
b2c3f6c4e7 Handles can be dragged properly again without them sticking to the mouse pointer. 2022-01-27 17:25:42 +01:00
1c6c2a6931 Hide the vertex split operation for now as it's not implemented. 2022-01-27 17:12:34 +01:00
7622f36b44 Decreased them by a little. 2022-01-27 17:09:33 +01:00
dca6a0c960 Now mdr ed's handle markers have a fixed size. 2022-01-27 17:08:46 +01:00
e75b44089c Fix typo. 2022-01-27 17:04:04 +01:00
20276b77c7 Now every normal calculation in the mdred_mesh_utils.gd is done via hand instead of via the surface tool. This actually fixed the extrude algorithm. 2022-01-27 17:01:40 +01:00
0cd86b089c Added back the extrude button to mdr ed's sidebar, and implemented an extrude algorithm. I have high hopes for it, however it does not work at the moment, because SurfaceTool messes up the order of the triangles in the mesh after a normal generation, which I will fix soon. 2022-01-27 16:39:23 +01:00
fb044323a3 Made Godoxel's plugin return Paint as plugin name instead of Godoxel, as it looks better as a window tab name at the top of the editor. 2022-01-26 22:25:37 +01:00
78f97c94ea Now the history tab will try to fall back to use the resource name property if the text name property cannot be found. 2022-01-26 22:17:19 +01:00
da9b6703c9 Fix the resource pane. now it will properly show the folder entries. 2022-01-26 22:12:41 +01:00
9f1d06c7f8 Now clicking the fodler entries will again pass the relevant informations to the resource panel. 2022-01-26 22:09:47 +01:00
1ee8220992 Check whether the confirmed signal is already connected in the add folder dialog. 2022-01-26 21:14:30 +01:00
8b486e156b Now in data manager;s fodler tab each selected module will have an add folder button. Also implemented it. 2022-01-26 21:13:08 +01:00
d8f93baeba Now when a module is toggled on in the data manager, it will add entries to to folder tab, based on what folders are available in it. 2022-01-26 20:38:09 +01:00
33ea23e3c3 Added a modules tab to the data manager's main panel. Also made it collect all the modules in the project. 2022-01-26 20:21:35 +01:00
58d707c695 Check whether the the on_visibility changes signal is connected before attempting to connect it in data manager's main panel. 2022-01-26 19:40:36 +01:00
cdd8d73686 Now the data manager plugin's main scene uses the new settings class instead of the old json. It should work, but It's not yet setup correctly for the current directory / project structure though. 2022-01-26 19:37:46 +01:00
d4220bbbbb Mostly ported the old settings json for the data manager. 2022-01-26 19:17:59 +01:00
77111d0ee0 Implement a folders array for the data managers's settings resource similar to how the json used to be. 2022-01-26 18:58:49 +01:00
357900e87e Create the settings file with the .tres extension so it's not saved as binary. 2022-01-26 18:57:16 +01:00
965ecd5f18 Added a new settings resource class to the data manager addon, and made the plugin load and save it to a central folder. 2022-01-26 18:17:09 +01:00
3db96fec68 Brought in code from the DataManager singleton (which maybe should be renamed) to the data manager addon. Also disabled the addon's panel's _ready() for now, and enabled it. 2022-01-26 18:04:30 +01:00
1ab2e6bd62 Also change it's name in it's cfg file. 2022-01-26 17:29:50 +01:00
0c096227e0 Change the data manager plugin's name to "Data". 2022-01-26 17:29:17 +01:00
9afecbc546 Fix paths. 2022-01-26 17:23:27 +01:00
644d5f22dc Renamed the module manager addon to data manager. 2022-01-26 17:20:44 +01:00
a9c36ff8b6 Only zoom with the scroll wheen when over the canvas. 2022-01-25 19:18:36 +01:00
f6de6a0a8a The tools should not be extended vertically. 2022-01-25 19:16:52 +01:00
2174b218d5 Changed Godoxel's middle section's root node's type to HBoxContainer and changed the left and right panel's type to PanelContainer. 2022-01-25 19:13:58 +01:00
20029bfec2 Changed the "NoBCViewportsnotworking26181" node in Godoxel to HBoxcontainer. This makes the the ui slimmer and more responsive. 2022-01-25 19:10:46 +01:00
bbde564348 Godoxel's navbar is now a HBoxcontainer instead of a normal container. 2022-01-25 19:07:52 +01:00
625f36b4b8 Now in godoxel you won't be able to draw behind other controls. 2022-01-25 19:02:14 +01:00
c8337cc505 Fix typo. 2022-01-25 18:15:38 +01:00
f465df60ee Added a HSeparator under the select all button. 2022-01-25 18:15:03 +01:00
72fec658ac Fix handle selection types when the mesh data instance is not at origin. 2022-01-25 18:11:52 +01:00
06f1785695 Implemented handle selection types. 2022-01-25 18:01:55 +01:00
0cf7be7fc7 Removed handle normals. 2022-01-25 15:53:59 +01:00
78993c214f Implemented handle normal calculation, and facing checks based on them for clicking. This doesn't work well, so it will be removed, but committing it because the normal calculations might come in handy later,. 2022-01-25 15:52:51 +01:00
a5cb7ab767 More setup and smaller fixes. 2022-01-25 15:21:20 +01:00
af604f845e Added handle selection types to mdi ed's sidebar, and set up events for them. 2022-01-25 14:47:18 +01:00
0d45bd0f97 Moved the selection codes to their own methods. 2022-01-25 14:34:53 +01:00
f71d65be85 Also make rect based selection work when dragging from right to left adn/or from down to up. 2022-01-25 14:24:14 +01:00