Example #1
0
void WidgetLabel::enableHighlight() {
	Graphics::Aurora::Highlightable *highlightable = getTextHighlightableComponent();
	if (highlightable) {
		highlightable->setHighlightable(true);
		highlightable->setHighlightDelta(0, 0, 0, .05);
		highlightable->setHighlightLowerBound(1, 1, 0, .2);
		highlightable->setHighlightUpperBound(1, 1, 0, 1);
	}
}
Example #2
0
void WidgetButton::setStaticHighlight() {
	Graphics::Aurora::Highlightable *highlightable = getQuadHighlightableComponent();
	if (highlightable)
		highlightable->setHighlightLowerBound(1.0f, 1.0f, 0.0f, 1.0f);
}