MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / make_visible

Method make_visible

modules/gridmap/editor/grid_map_editor_plugin.cpp:1804–1823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804void 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
1825GridMap *GridMapEditorPlugin::get_current_grid_map() const {
1826 ERR_FAIL_NULL_V(grid_map_editor, nullptr);

Callers

nothing calls this directly

Calls 10

_on_tool_mode_changedMethod · 0.80
make_item_visibleMethod · 0.80
set_processMethod · 0.80
get_pressed_buttonMethod · 0.45
set_pressedMethod · 0.45
showMethod · 0.45
hideMethod · 0.45
is_visible_in_treeMethod · 0.45
hide_bottom_panelMethod · 0.45

Tested by

no test coverage detected