ShapeGroupRect* UIUnit::getRect() { ShapeGroupRect *dir = new ShapeGroupRect(); FRect *rect = new FRect(this->scaledWidth-2, this->scaledHeight-2, ubvec4(99, 0xFF, 0, 0xFF)); rect->setPosition(this->globalx+1, this->globaly+1); dir->addChild(rect); return dir; }
void UIUnit::getRect(ShapeGroupRect *dir) { FRect *rect = new FRect(this->scaledWidth-2, this->scaledHeight-2, ubvec4(22, 0xFF, 0, 0xFF)); rect->setPosition(this->globalx+1, this->globaly+1); dir->addChild(rect); }