I need a way to ask if a cell exists for more dynamic layouts.
This commit is contained in:
parent
aff0fb839c
commit
25e3935170
3 changed files with 6 additions and 1 deletions
|
|
@ -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?");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue