Commit Graph

75 Commits

Author SHA1 Message Date
50505035e8 Also implement edit buttons in the Zone editor tab. 2022-08-05 22:41:18 +02:00
8a3ac51e86 The edit buttons now work in Continent aswell. 2022-08-05 22:32:04 +02:00
f6eb7b0720 The edit button now works from World to Continent. 2022-08-05 22:20:29 +02:00
23195d3006 Set up signal chain for the edit requests. 2022-08-05 22:12:03 +02:00
e675512362 Added a new request_item_edit signal to the DataList. 2022-08-05 22:04:53 +02:00
e68b2733de Set the resource's new name using UndoRedo. 2022-08-05 21:57:41 +02:00
30be9d8e81 Removed the name edit dialog from the DataList. 2022-08-05 21:54:08 +02:00
4f2a13f1d4 Now the resource names are directly editable using the DataList tree in the world generator addon's ui. 2022-08-05 21:52:51 +02:00
ab2e4efaa6 Make them a bit bigger. 2022-08-05 21:31:44 +02:00
9145867ac4 Size newly added resources in the world editor properly. 2022-08-05 21:31:07 +02:00
69054c8fa5 Also handle if the y axis is bigger in the rect editor. 2022-08-05 21:23:05 +02:00
e250190e99 Small change to the previous commit. 2022-08-05 21:16:18 +02:00
06e025633e Now the world editor tries to center rects of the newly opened resources better. 2022-08-05 21:13:37 +02:00
b101213d84 Now the wortld generator addon's datalist popup will focus the line edit for changing the resource's name. Also it will accept enter as ok. 2022-08-05 19:55:58 +02:00
e9279f1ef7 World generator's resources now can also draw to the editor gui when actually edited. 2022-08-05 17:25:37 +02:00
4e8e860562 Now WorldGenBaseResources can draw additional graphics to the RectViewNodes. 2022-08-05 13:42:22 +02:00
2fbc7a2198 Now the editor_class is on top of the editor_additional_text in RectViewNodes. 2022-08-05 13:35:27 +02:00
6cf52d15a5 Added size indicators to the world generator addon's rect editors to show how big a chunk is at the current zoom level. 2022-08-05 01:21:08 +02:00
d53a157657 Set a usable initial zoom value in world generator's rect editors. 2022-08-05 00:56:01 +02:00
487b05fecb Added an another layer to the world generator addon. Now subzones contain subzone props. Reworked the old subzones into these. 2022-08-05 00:27:03 +02:00
4bea9618b2 Added min and max size support for the world generator addon. 2022-08-04 22:35:22 +02: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
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
c3a51582c4 Don't let world editor's property list's refresh get called muliple times in a frame. 2022-01-22 00:22:01 +01:00
42c91d88d9 Implement undo redo for world editor's property list checkboxes aswell. 2022-01-22 00:16:21 +01:00
994d9447f3 Added undo redo support for world generator's property list aswell. 2022-01-22 00:08:07 +01:00
f3c9129171 Implemented undo redo support for world generator's DataList. 2022-01-21 23:57:37 +01:00
be14831b47 Undo redo support for world generator's RectView. 2022-01-21 23:24:55 +01:00
181189f515 Now the world generator's editor plugin distributes the plugin itself to every class that will need it. 2022-01-21 22:58:14 +01:00
31ad20843f Remove a hseparator. 2021-12-27 22:26:08 +01:00
ef03b30dfe Now HSeparators can also be added to the property inspector. 2021-12-27 22:25:37 +01:00
cae4735ae2 Added separators to the property inspector. Also moved the content up above the new properties. 2021-12-27 22:22:07 +01:00
e13be6f3f5 Added a class and script property by default to the property inspector. 2021-12-27 22:20:09 +01:00
f9662ed967 Added a resource property. 2021-12-27 22:05:57 +01:00
e0cb83ffe2 Fix signal already connected errors. 2021-12-27 18:00:10 +01:00
ff2579bd04 Now RectView will also change / zoom the margins. 2021-12-27 17:58:33 +01:00
b45e197d69 Now RectView's zoom will resize everything, instead of just setting rect_scale. 2021-12-27 17:56:44 +01:00
0cbf540e30 RectViewNodes now convert between yup and ydown coordinate systems to store rect.position.ys. 2021-12-27 02:36:52 +01:00
8453518e8b Added a class selector to the world editor on add. 2021-12-26 18:52:23 +01:00
9cac983ff5 Added a new get_editor_class to the WoirldGeneratorBaseResource, and now the RectViewNode will also render it if it's not an empty string. 2021-12-26 18:50:09 +01:00
0a0f4ee865 The RectEditor now will only set a margin of max 50. 2021-12-26 13:10:15 +01:00
193ed69fef Also made the delete and duplicate buttons work for the zones editor and continent editor. 2021-12-26 00:28:32 +01:00
cc6669bb12 Implemented delete and duplicate buttons in world. Also made sure that the inspectors update properly after the edited resources change. 2021-12-26 00:25:30 +01:00
829b01b72f Set up proper drawing for RectViewNode. it grabs the required parameters from new methods in WorldGenBaseResource. 2021-12-26 00:03:17 +01:00
61b66b4109 Reduce the scale border's size to 5. 2021-12-25 23:41:50 +01:00
7b4f044f43 Fixed keeping zoom in RectView. 2021-12-25 23:34:33 +01:00
11aa1e1b6a Set up the rect property to expand horizontally. 2021-12-25 23:20:40 +01:00
a8dfb9a156 Fix label. 2021-12-25 23:14:51 +01:00