Commit Graph

2385 Commits

Author SHA1 Message Date
617286dd27 Don't let the SceneTreeDock add the root node buttons more than once. 2022-11-20 23:47:20 +01:00
13c45b16fa Add PaintProject Node instead of PaintCanvas when using the SceneTreeDock's root node button as intended. 2022-11-20 23:40:42 +01:00
41f130d9fd Re-extracted the class docs. 2022-11-20 23:27:04 +01:00
73a1c176b4 List all classes in the paint modules's config. 2022-11-20 23:26:31 +01:00
9dda076070 Moved the PaintEditorPlugin under the editor folder in the paint module. 2022-11-20 23:18:31 +01:00
6c0008a912 Added custom Paint, Web, and Mesh (MDI) nodes to the SceneTreeDock. 2022-11-20 23:16:20 +01:00
a286c2ecd9 Now custom nodes can be added to the SceneTreeDock's create root node page. 2022-11-20 23:15:42 +01:00
b823759397 Now PaintVisualGrid and PaintCanvasBackground inherits from PaintNode. 2022-11-20 21:42:04 +01:00
c0da82ab92 Also removed PaintSelectionBox. 2022-11-20 21:38:55 +01:00
1d7ad33407 Renamed on_paint_node_selected to set_paint_node in PaintCustomPropertyInspectors. 2022-11-20 21:23:00 +01:00
8c98ec9883 Removed now unneeded images from the paint module. 2022-11-20 21:19:53 +01:00
ff1dbced6d Removed PaintCanvasOutline and PaintColorGrid aswell. 2022-11-20 21:17:41 +01:00
5c9aa754d7 Removed most of the deprecated classes from the paint module. 2022-11-20 21:11:40 +01:00
0539b70aee Ported the PaintInspectorPlugin. 2022-11-20 21:01:54 +01:00
7a9ed010d1 Added a new pixel resize tool to PaintToolsPropertyInspector. 2022-11-20 20:49:30 +01:00
07299fdbf6 Removed the button properties from PaintProject. 2022-11-20 20:07:31 +01:00
1354b15817 Added Add Paint Visual Grid and Add Paint Canvas Background buttons to the PaintProjectToolsPropertyInspector. 2022-11-20 20:06:10 +01:00
eea5cf4e20 Added set colors as default button to PaintProjectToolsPropertyInspector. 2022-11-20 20:00:24 +01:00
98ac4b9265 Implemented export and export as tools for the PaintProjectToolsPropertyInspector. 2022-11-20 19:49:45 +01:00
b2cbd6e759 Cleanups to PaintToolsPropertyInspector. 2022-11-20 19:49:21 +01:00
73dc6be1da Added export and import tool to the PaintToolsPropertyInspector. 2022-11-20 18:57:11 +01:00
fede24767d New icon for the pastecut tool in PaintToolsPropertyInspector. 2022-11-20 17:40:27 +01:00
9fcf3b8532 PaintEditorPlugin now won't send input events to the active PaintNode, if CanvasItemEditor's currently selcted tool isn't TOOL_SELECT. 2022-11-20 16:04:39 +01:00
5514c64c86 Removed unneeded ScrollContainer form PaintProjectToolsPropertyInspector. 2022-11-20 15:59:38 +01:00
6ad8f67551 Fix warning. 2022-11-20 02:55:12 +01:00
fcdce8336c Cleaned up my original prototype render_paint_node implementation. Now it's fast. 2022-11-20 02:44:27 +01:00
240bfa8ed5 Rewrote render_paint_node now it works without leaving pixels out, but it is an extermely inefficient implementation. It will be reworked soon. 2022-11-20 02:35:02 +01:00
5aa98e8955 Added Brenzenham's line algorithm found in the TileMapEditorPlugin to Geometry, and it's binder class. 2022-11-20 02:33:40 +01:00
e5fd8cd2b5 Added the ability for PaintNode rendering to skip evaluating certain PaintNode's childrens. 2022-11-19 23:19:41 +01:00
9141997c87 Changed the prefix of the image saving related helpers from save to render. 2022-11-19 23:12:06 +01:00
fb4aa87663 Initial image rendering implementation for PaintNodes. 2022-11-19 23:06:56 +01:00
4eec1ffcb4 Implemented serialization for PaintCanvas image data. 2022-11-19 20:43:40 +01:00
4f06946cf5 Centralize LZ4 usage. 2022-11-19 19:51:29 +01:00
7328a5126a Added a new lz4 module. 2022-11-19 19:39:50 +01:00
f1bda28b11 Cleaned up PaintNode resize notifications. Also now PaintCanvas allocates and resizes it's internal images properly. 2022-11-19 19:26:19 +01:00
b7d93e4525 Added clear() helper method to Image. 2022-11-19 19:25:04 +01:00
629ec81669 Added a new PaintProjectToolsPropertyInspector class. 2022-11-19 15:41:52 +01:00
be9493a25a Structural setup for saving images for PaintProjects. 2022-11-19 13:45:14 +01:00
cebc26f3ce Also handle NOTIFICATION_PAINT_NODE_RESIZED in PaintVisualGrid and PaintCanvasBackground. Note that they won't yet get that notification. 2022-11-19 13:21:05 +01:00
50cf64b7f1 Added a few notifications to PaintNodes. 2022-11-19 13:17:30 +01:00
9f8f6cb3b4 Now PaintCanvasBackground and PaintVisualGrid will automatically size themselves to a parent PaintNode if they can. 2022-11-19 13:16:54 +01:00
17842720a5 Added helper methods to PaintProject for creating PaintCanvasBackground and PaintVisualGrid. 2022-11-19 12:22:10 +01:00
71a455687d Cleaned up PaintVisualGrid. 2022-11-19 02:31:39 +01:00
d7ccaff144 More cleanups to PaintCanvasBackground. 2022-11-19 02:31:02 +01:00
5c38af1d1a Reworked PaintCanvasBackground. Now it draws it's pattern using canvas draw commands. 2022-11-19 02:20:52 +01:00
5a78997c83 Now PaintNodes can draw their outlines. 2022-11-19 01:23:33 +01:00
af1018bae6 Don't update the preview when the mouse is not over a PaintCanvas. 2022-11-19 00:21:15 +01:00
dc4ded8bd8 Now the undo and redo buttons in PaintToolsPropertyInspector actually work. 2022-11-18 23:50:05 +01:00
120e59baba Ported the logic to PaintCanvas from the experimental project. 2022-11-18 23:47:37 +01:00
4060eeccc7 Now _forward_canvas_gui_input() in PaintNode is a virtual, as it should have been. 2022-11-18 23:47:05 +01:00