| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*************************************************************************/ | 
					
						
							|  |  |  | /*  grid_map_editor_plugin.h                                             */ | 
					
						
							|  |  |  | /*************************************************************************/ | 
					
						
							|  |  |  | /*                       This file is part of:                           */ | 
					
						
							|  |  |  | /*                           GODOT ENGINE                                */ | 
					
						
							| 
									
										
										
										
											2017-08-27 14:16:55 +02:00
										 |  |  | /*                      https://godotengine.org                          */ | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*************************************************************************/ | 
					
						
							| 
									
										
										
										
											2022-01-03 21:27:34 +01:00
										 |  |  | /* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur.                 */ | 
					
						
							|  |  |  | /* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md).   */ | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* Permission is hereby granted, free of charge, to any person obtaining */ | 
					
						
							|  |  |  | /* a copy of this software and associated documentation files (the       */ | 
					
						
							|  |  |  | /* "Software"), to deal in the Software without restriction, including   */ | 
					
						
							|  |  |  | /* without limitation the rights to use, copy, modify, merge, publish,   */ | 
					
						
							|  |  |  | /* distribute, sublicense, and/or sell copies of the Software, and to    */ | 
					
						
							|  |  |  | /* permit persons to whom the Software is furnished to do so, subject to */ | 
					
						
							|  |  |  | /* the following conditions:                                             */ | 
					
						
							|  |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* The above copyright notice and this permission notice shall be        */ | 
					
						
							|  |  |  | /* included in all copies or substantial portions of the Software.       */ | 
					
						
							|  |  |  | /*                                                                       */ | 
					
						
							|  |  |  | /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       */ | 
					
						
							|  |  |  | /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    */ | 
					
						
							|  |  |  | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ | 
					
						
							|  |  |  | /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  */ | 
					
						
							|  |  |  | /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,  */ | 
					
						
							|  |  |  | /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */ | 
					
						
							|  |  |  | /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */ | 
					
						
							|  |  |  | /*************************************************************************/ | 
					
						
							| 
									
										
										
										
											2018-01-05 00:50:27 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | #ifndef GRID_MAP_EDITOR_PLUGIN_H
 | 
					
						
							|  |  |  | #define GRID_MAP_EDITOR_PLUGIN_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-28 14:10:28 +02:00
										 |  |  | #ifdef TOOLS_ENABLED
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "../grid_map.h"
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | #include "editor/editor_plugin.h"
 | 
					
						
							| 
									
										
										
										
											2022-11-11 20:12:48 +01:00
										 |  |  | #include "scene/gui/box_container.h"
 | 
					
						
							| 
									
										
										
										
											2022-02-12 02:46:22 +01:00
										 |  |  | #include "scene/gui/item_list.h"
 | 
					
						
							|  |  |  | #include "scene/gui/slider.h"
 | 
					
						
							|  |  |  | #include "scene/gui/spin_box.h"
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-11 20:12:48 +01:00
										 |  |  | class ConfirmationDialog; | 
					
						
							|  |  |  | class MenuButton; | 
					
						
							| 
									
										
										
										
											2020-03-26 18:49:16 -03:00
										 |  |  | class Node3DEditorPlugin; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | class GridMapEditor : public VBoxContainer { | 
					
						
							| 
									
										
										
										
											2017-01-02 23:03:46 -03:00
										 |  |  | 	GDCLASS(GridMapEditor, VBoxContainer); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	enum { | 
					
						
							|  |  |  | 		GRID_CURSOR_SIZE = 50 | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	enum InputAction { | 
					
						
							|  |  |  | 		INPUT_NONE, | 
					
						
							|  |  |  | 		INPUT_PAINT, | 
					
						
							|  |  |  | 		INPUT_ERASE, | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		INPUT_PICK, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		INPUT_SELECT, | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		INPUT_PASTE, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-22 10:05:03 -03:00
										 |  |  | 	enum DisplayMode { | 
					
						
							|  |  |  | 		DISPLAY_THUMBNAIL, | 
					
						
							|  |  |  | 		DISPLAY_LIST | 
					
						
							|  |  |  | 	}; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 	InputAction input_action = INPUT_NONE; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Panel *panel = nullptr; | 
					
						
							|  |  |  | 	MenuButton *options = nullptr; | 
					
						
							|  |  |  | 	SpinBox *floor = nullptr; | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 	double accumulated_floor_delta = 0.0; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Button *mode_thumbnail = nullptr; | 
					
						
							|  |  |  | 	Button *mode_list = nullptr; | 
					
						
							|  |  |  | 	LineEdit *search_box = nullptr; | 
					
						
							|  |  |  | 	HSlider *size_slider = nullptr; | 
					
						
							|  |  |  | 	HBoxContainer *spatial_editor_hb = nullptr; | 
					
						
							|  |  |  | 	ConfirmationDialog *settings_dialog = nullptr; | 
					
						
							|  |  |  | 	VBoxContainer *settings_vbc = nullptr; | 
					
						
							|  |  |  | 	SpinBox *settings_pick_distance = nullptr; | 
					
						
							|  |  |  | 	Label *spin_box_label = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	struct SetItem { | 
					
						
							| 
									
										
										
										
											2020-06-29 04:52:01 -04:00
										 |  |  | 		Vector3i position; | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 		int new_value = 0; | 
					
						
							|  |  |  | 		int new_orientation = 0; | 
					
						
							|  |  |  | 		int old_value = 0; | 
					
						
							|  |  |  | 		int old_orientation = 0; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	List<SetItem> set_items; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-26 22:54:29 +02:00
										 |  |  | 	GridMap *node = nullptr; | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	MeshLibrary *last_mesh_library = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-17 01:08:21 -04:00
										 |  |  | 	Transform3D grid_xform; | 
					
						
							|  |  |  | 	Transform3D edit_grid_xform; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	Vector3::Axis edit_axis; | 
					
						
							|  |  |  | 	int edit_floor[3]; | 
					
						
							|  |  |  | 	Vector3 grid_ofs; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	RID grid[3]; | 
					
						
							|  |  |  | 	RID grid_instance[3]; | 
					
						
							|  |  |  | 	RID cursor_instance; | 
					
						
							|  |  |  | 	RID selection_mesh; | 
					
						
							|  |  |  | 	RID selection_instance; | 
					
						
							| 
									
										
										
										
											2017-08-27 16:00:59 -03:00
										 |  |  | 	RID selection_level_mesh[3]; | 
					
						
							|  |  |  | 	RID selection_level_instance[3]; | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 	RID paste_mesh; | 
					
						
							|  |  |  | 	RID paste_instance; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	struct ClipboardItem { | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 		int cell_item = 0; | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		Vector3 grid_offset; | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 		int orientation = 0; | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		RID instance; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	List<ClipboardItem> clipboard_items; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-15 01:01:52 -03:00
										 |  |  | 	Ref<StandardMaterial3D> indicator_mat; | 
					
						
							|  |  |  | 	Ref<StandardMaterial3D> inner_mat; | 
					
						
							|  |  |  | 	Ref<StandardMaterial3D> outer_mat; | 
					
						
							|  |  |  | 	Ref<StandardMaterial3D> selection_floor_mat; | 
					
						
							| 
									
										
										
										
											2015-04-20 19:38:02 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 	bool updating = false; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	struct Selection { | 
					
						
							|  |  |  | 		Vector3 click; | 
					
						
							|  |  |  | 		Vector3 current; | 
					
						
							|  |  |  | 		Vector3 begin; | 
					
						
							|  |  |  | 		Vector3 end; | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 		bool active = false; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	} selection; | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 	Selection last_selection; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	struct PasteIndicator { | 
					
						
							|  |  |  | 		Vector3 click; | 
					
						
							|  |  |  | 		Vector3 current; | 
					
						
							|  |  |  | 		Vector3 begin; | 
					
						
							|  |  |  | 		Vector3 end; | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 		int orientation = 0; | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 	PasteIndicator paste_indicator; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 	bool cursor_visible = false; | 
					
						
							| 
									
										
										
										
											2020-10-17 01:08:21 -04:00
										 |  |  | 	Transform3D cursor_transform; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	Vector3 cursor_origin; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-08 10:57:18 +01:00
										 |  |  | 	int display_mode = DISPLAY_THUMBNAIL; | 
					
						
							|  |  |  | 	int selected_palette = -1; | 
					
						
							|  |  |  | 	int cursor_rot = 0; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	enum Menu { | 
					
						
							|  |  |  | 		MENU_OPTION_NEXT_LEVEL, | 
					
						
							|  |  |  | 		MENU_OPTION_PREV_LEVEL, | 
					
						
							|  |  |  | 		MENU_OPTION_LOCK_VIEW, | 
					
						
							|  |  |  | 		MENU_OPTION_X_AXIS, | 
					
						
							|  |  |  | 		MENU_OPTION_Y_AXIS, | 
					
						
							|  |  |  | 		MENU_OPTION_Z_AXIS, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_ROTATE_Y, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_ROTATE_X, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_ROTATE_Z, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_BACK_ROTATE_Y, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_BACK_ROTATE_X, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_BACK_ROTATE_Z, | 
					
						
							|  |  |  | 		MENU_OPTION_CURSOR_CLEAR_ROTATION, | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		MENU_OPTION_PASTE_SELECTS, | 
					
						
							| 
									
										
										
										
											2016-08-21 03:34:39 +02:00
										 |  |  | 		MENU_OPTION_SELECTION_DUPLICATE, | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 		MENU_OPTION_SELECTION_CUT, | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 		MENU_OPTION_SELECTION_CLEAR, | 
					
						
							| 
									
										
										
										
											2018-02-23 09:27:39 +01:00
										 |  |  | 		MENU_OPTION_SELECTION_FILL, | 
					
						
							| 
									
										
										
										
											2015-07-09 20:51:49 -06:00
										 |  |  | 		MENU_OPTION_GRIDMAP_SETTINGS | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	Node3DEditorPlugin *spatial_editor = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	struct AreaDisplay { | 
					
						
							|  |  |  | 		RID mesh; | 
					
						
							|  |  |  | 		RID instance; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	ItemList *mesh_library_palette = nullptr; | 
					
						
							|  |  |  | 	Label *info_message = nullptr; | 
					
						
							| 
									
										
										
										
											2019-09-04 02:20:57 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-19 01:15:39 +02:00
										 |  |  | 	void update_grid(); // Change which and where the grid is displayed
 | 
					
						
							|  |  |  | 	void _draw_grids(const Vector3 &cell_size); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _configure(); | 
					
						
							|  |  |  | 	void _menu_option(int); | 
					
						
							| 
									
										
										
										
											2018-08-22 03:10:54 -03:00
										 |  |  | 	void update_palette(); | 
					
						
							| 
									
										
										
										
											2015-06-22 10:05:03 -03:00
										 |  |  | 	void _set_display_mode(int p_mode); | 
					
						
							|  |  |  | 	void _item_selected_cbk(int idx); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _update_cursor_transform(); | 
					
						
							|  |  |  | 	void _update_cursor_instance(); | 
					
						
							| 
									
										
										
										
											2022-08-29 11:04:31 +02:00
										 |  |  | 	void _update_theme(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-26 16:17:59 +02:00
										 |  |  | 	void _text_changed(const String &p_text); | 
					
						
							|  |  |  | 	void _sbox_input(const Ref<InputEvent> &p_ie); | 
					
						
							| 
									
										
										
										
											2019-11-27 20:06:06 +01:00
										 |  |  | 	void _mesh_library_palette_input(const Ref<InputEvent> &p_ie); | 
					
						
							| 
									
										
										
										
											2019-02-26 16:17:59 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _icon_size_changed(float p_value); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-28 11:09:36 +01:00
										 |  |  | 	void _clear_clipboard_data(); | 
					
						
							|  |  |  | 	void _set_clipboard_data(); | 
					
						
							|  |  |  | 	void _update_paste_indicator(); | 
					
						
							|  |  |  | 	void _do_paste(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	void _update_selection_transform(); | 
					
						
							|  |  |  | 	void _validate_selection(); | 
					
						
							| 
									
										
										
										
											2019-07-10 11:54:12 +02:00
										 |  |  | 	void _set_selection(bool p_active, const Vector3 &p_begin = Vector3(), const Vector3 &p_end = Vector3()); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _floor_changed(float p_value); | 
					
						
							| 
									
										
										
										
											2019-05-08 17:42:08 +02:00
										 |  |  | 	void _floor_mouse_exited(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void _delete_selection(); | 
					
						
							| 
									
										
										
										
											2018-02-23 09:27:39 +01:00
										 |  |  | 	void _fill_selection(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-26 18:49:16 -03:00
										 |  |  | 	bool do_input_action(Camera3D *p_camera, const Point2 &p_point, bool p_click); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	friend class GridMapEditorPlugin; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  | 	void _notification(int p_what); | 
					
						
							|  |  |  | 	void _node_removed(Node *p_node); | 
					
						
							|  |  |  | 	static void _bind_methods(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-05 16:44:50 +01:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2021-02-04 17:20:26 +09:00
										 |  |  | 	EditorPlugin::AfterGUIInput forward_spatial_input_event(Camera3D *p_camera, const Ref<InputEvent> &p_event); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void edit(GridMap *p_gridmap); | 
					
						
							| 
									
										
										
										
											2022-01-27 10:36:51 +01:00
										 |  |  | 	GridMapEditor(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~GridMapEditor(); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class GridMapEditorPlugin : public EditorPlugin { | 
					
						
							| 
									
										
										
										
											2017-01-02 23:03:46 -03:00
										 |  |  | 	GDCLASS(GridMapEditorPlugin, EditorPlugin); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:06:57 +02:00
										 |  |  | 	GridMapEditor *grid_map_editor = nullptr; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-21 01:35:48 -03:00
										 |  |  | protected: | 
					
						
							|  |  |  | 	void _notification(int p_what); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | public: | 
					
						
							| 
									
										
										
										
											2022-09-08 18:38:33 +02:00
										 |  |  | 	virtual EditorPlugin::AfterGUIInput forward_3d_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event) override { return grid_map_editor->forward_spatial_input_event(p_camera, p_event); } | 
					
						
							| 
									
										
										
										
											2020-07-10 11:34:39 +01:00
										 |  |  | 	virtual String get_name() const override { return "GridMap"; } | 
					
						
							|  |  |  | 	bool has_main_screen() const override { return false; } | 
					
						
							|  |  |  | 	virtual void edit(Object *p_object) override; | 
					
						
							|  |  |  | 	virtual bool handles(Object *p_object) const override; | 
					
						
							|  |  |  | 	virtual void make_visible(bool p_visible) override; | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-14 17:59:06 +01:00
										 |  |  | 	GridMapEditorPlugin(); | 
					
						
							| 
									
										
										
										
											2014-02-09 22:10:30 -03:00
										 |  |  | 	~GridMapEditorPlugin(); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-28 14:10:28 +02:00
										 |  |  | #endif // TOOLS_ENABLED
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // GRID_MAP_EDITOR_PLUGIN_H
 |