I need a way to ask if a cell exists for more dynamic layouts.

This commit is contained in:
Zed A. Shaw 2026-04-04 14:50:15 -04:00
parent aff0fb839c
commit 25e3935170
3 changed files with 6 additions and 1 deletions

View file

@ -51,6 +51,10 @@ namespace guecs {
return $ents_name.at(gui_id);
}
bool UI::contains(const string& name) {
return $name_ents.contains(name);
}
Entity UI::entity(const string& name) {
assert($name_ents.contains(name) &&
"GUECS entity does not exist. Mispelled cell name?");