summaryrefslogtreecommitdiffstats
path: root/modules/gridmap/editor/grid_map_editor_plugin.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-06-21 12:47:17 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-09-12 15:34:49 +0200
commitdd6443193cbf249c686105c20481283ec63a5f45 (patch)
tree06fa152dd04aab2b28f2d4135c08195a488c2a21 /modules/gridmap/editor/grid_map_editor_plugin.cpp
parent83d54ab2ad476ae265b323c2b88f4623b922f4c6 (diff)
downloadredot-engine-dd6443193cbf249c686105c20481283ec63a5f45.tar.gz
[Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Diffstat (limited to 'modules/gridmap/editor/grid_map_editor_plugin.cpp')
-rw-r--r--modules/gridmap/editor/grid_map_editor_plugin.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp
index 6b010335e6..1c658b9e9b 100644
--- a/modules/gridmap/editor/grid_map_editor_plugin.cpp
+++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp
@@ -1199,7 +1199,7 @@ GridMapEditor::GridMapEditor() {
ED_SHORTCUT("grid_map/clear_selection", TTR("Clear Selection"), Key::KEY_DELETE);
ED_SHORTCUT("grid_map/fill_selection", TTR("Fill Selection"), KeyModifierMask::CTRL + Key::F);
- int mw = EDITOR_DEF("editors/grid_map/palette_min_width", 230);
+ int mw = EDITOR_GET("editors/grid_map/palette_min_width");
Control *ec = memnew(Control);
ec->set_custom_minimum_size(Size2(mw, 0) * EDSCALE);
add_child(ec);
@@ -1309,8 +1309,6 @@ GridMapEditor::GridMapEditor() {
size_slider->connect(SceneStringName(value_changed), callable_mp(this, &GridMapEditor::_icon_size_changed));
add_child(size_slider);
- EDITOR_DEF("editors/grid_map/preview_size", 64);
-
mesh_library_palette = memnew(ItemList);
mesh_library_palette->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
add_child(mesh_library_palette);
@@ -1533,9 +1531,6 @@ void GridMapEditorPlugin::make_visible(bool p_visible) {
}
GridMapEditorPlugin::GridMapEditorPlugin() {
- EDITOR_DEF("editors/grid_map/editor_side", 1);
- EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "editors/grid_map/editor_side", PROPERTY_HINT_ENUM, "Left,Right"));
-
grid_map_editor = memnew(GridMapEditor);
switch ((int)EDITOR_GET("editors/grid_map/editor_side")) {
case 0: { // Left.