MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetTypeVisible

Method SetTypeVisible

Source/Editors/map_editor.cpp:2855–2860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2853}
2854
2855void MapEditor::SetTypeVisible(EntityType type, bool visible) {
2856 type_visible_.SetTypeEnabled(type, visible);
2857 for (auto obj : scenegraph_->objects_) {
2858 obj->editor_visible = type_visible_.IsTypeEnabled(obj->GetType());
2859 }
2860}
2861
2862int MapEditor::DuplicateObject(const Object* obj) {
2863 EntityDescription desc;

Callers 1

DrawImGuiFunction · 0.80

Calls 3

SetTypeEnabledMethod · 0.45
IsTypeEnabledMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected