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

Method GetDisplayName

Source/Objects/group.cpp:303–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void Group::GetDisplayName(char* buf, int buf_size) {
304 if (GetName().empty()) {
305 FormatString(buf, buf_size, "%d, Group with %d children", GetID(), children.size());
306 } else {
307 FormatString(buf, buf_size, "%s, Group with %d children", GetName().c_str(), children.size());
308 }
309}
310
311void Group::SetEnabled(bool val) {
312 enabled_ = val;

Callers 7

UnlinkObjectMethod · 0.45
GetDisplayNameFunction · 0.45
PrintConnectionsFunction · 0.45
DrawObjectInfoFlatFunction · 0.45
DrawImGuiFunction · 0.45

Calls 4

FormatStringFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected