| 1802 | } |
| 1803 | |
| 1804 | void GridMapEditorPlugin::make_visible(bool p_visible) { |
| 1805 | ERR_FAIL_NULL(grid_map_editor); |
| 1806 | if (p_visible) { |
| 1807 | BaseButton *button = grid_map_editor->mode_buttons_group->get_pressed_button(); |
| 1808 | if (button == nullptr) { |
| 1809 | grid_map_editor->select_mode_button->set_pressed(true); |
| 1810 | } |
| 1811 | grid_map_editor->_on_tool_mode_changed(); |
| 1812 | panel_button->show(); |
| 1813 | EditorNode::get_bottom_panel()->make_item_visible(grid_map_editor); |
| 1814 | grid_map_editor->set_process(true); |
| 1815 | } else { |
| 1816 | grid_map_editor->_show_viewports_transform_gizmo(true); |
| 1817 | panel_button->hide(); |
| 1818 | if (grid_map_editor->is_visible_in_tree()) { |
| 1819 | EditorNode::get_bottom_panel()->hide_bottom_panel(); |
| 1820 | } |
| 1821 | grid_map_editor->set_process(false); |
| 1822 | } |
| 1823 | } |
| 1824 | |
| 1825 | GridMap *GridMapEditorPlugin::get_current_grid_map() const { |
| 1826 | ERR_FAIL_NULL_V(grid_map_editor, nullptr); |
nothing calls this directly
no test coverage detected