示例#1
0
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;
}
示例#2
0
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);
}