예제 #1
0
Control* FindControlNamed(const ParsedMui& muiInfo, const char* name) {
    for (size_t i = 0; i < muiInfo.allControls.size(); i++) {
        Control* c = muiInfo.allControls.at(i);
        if (c->IsNamed(name))
            return c;
    }
    return nullptr;
}
예제 #2
0
Control *FindControlNamed(const ParsedMui& muiInfo, const char *name)
{
    for (size_t i = 0; i < muiInfo.allControls.Count(); i++) {
        Control *c = muiInfo.allControls.At(i);
        if (c->IsNamed(name))
            return c;
    }
    return NULL;
}